Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
StarSystem.getById( $(this).data('system') )
.setHangarState( this.checked )
.refreshIcons();
settings.save( 'systems' );
});
$('#sc-map-interface').on( 'change', '.user-system-avoid', function() {
StarSystem.getById( $(this).data('system') )
.setToBeAvoidedState( this.checked )
.refreshIcons();
settings.save( 'systems' );
map.route().rebuildCurrentRoute();
});
// Init the mousewheel plugin ("import" alone doesn't cut it)
jqueryMousewheel( $ );
/* jScrollPane */
$('#sc-map-interface').jScrollPane({
showArrows: false,
horizontalGutter: 6,
mouseWheelSpeed: 4,
});
this.oldWidth = 0;
this.oldHeight = 0;
renderer.resize();
resizeListener().listenTo( $('#sc-map-interface .sc-map-ui-padding')[ 0 ], element => {
const width = $(element).width();
const height = $(element).height();