1$(document).ready(function () { 2 var touch = $('#click-drop'); 3 var menu = $('#box-drop'); 4 var touchZone = $('.drop-zone'); 5 var textZone = $('.selectedZoneText'); 6 var menuZone = $('#zone-drop'); 7 var touchClose = $('.hid-vis'); 8 var zoneClose = $('.hid-zone'); 9 10 var mode = 'normal'; 11 12 function setMode(newMode) { 13 if (newMode === mode) 14 if (mode === 'normal') return; 15 else newMode = 'normal'; 16 if (mode === 'extend' || newMode === 'extend') menu.slideToggle(); 17 if (mode === 'zones' || newMode === 'zones') menuZone.slideToggle(); 18 mode = newMode; 19 } 20 21 $(touch).on('click', function (e) { 22 e.preventDefault(); 23 setMode('extend'); 24 }); 25 $(touchClose).on('click', function (e) { 26 e.preventDefault(); 27 setMode('normal'); 28 }); 29 30 $(window).resize(function () { 31 var w = $(window).width(); 32 if (w > 767 && menu.is(':hidden')) { 33 menu.removeAttr('style'); 34 } 35 }); 36 37 38 $(touchZone).on('click', function (e) { 39 e.preventDefault(); 40 setMode('zones'); 41 }); 42 $(textZone).on('click', function (e) { 43 e.preventDefault(); 44 setMode('zones'); 45 }); 46 $(zoneClose).on('click', function (e) { 47 e.preventDefault(); 48 setMode('normal'); 49 }); 50 51 $(window).resize(function () { 52 var w = $(window).width(); 53 if (w > 767 && menuZone.is(':hidden')) { 54 menuZone.removeAttr('style'); 55 } 56 }); 57}); 58$(window).load(function () { 59 60 $(".checkbox__box__scroll").mCustomScrollbar({ 61 theme: "dark-thin" 62 }); 63 64});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.