1 2$(document).ready(function() { 3 // AutoInit to reduce work adding each component 4 // Add each item before deploying 5 M.AutoInit(); 6 7 $('.sidenav').sidenav({ 8 edge: 'right', 9 draggable: true, 10 inDuration: 250, 11 outDuration: 200, 12 onOpenStart: null, 13 onOpenEnd: null, 14 onCloseStart: null, 15 onCloseEnd: null, 16 preventScrolling: true 17 }); 18 19 //$(".dropdown-trigger").dropdown({ 20 // hover: true, 21 // coverTrigger: false, 22 // alignment: 'left', 23 // constrainWidth: true 24 //}); 25 26 // console.log('test'); 27 $('.khda-datepicker').datepicker({ dateFormat: 'dd-mm-yyyy' }); 28 $('.khda-timepicker').timepicker(); 29 30 /* 31 if(sessionStorage.KHDA_IsBlackWhite == undefined) { 32 sessionStorage.KHDA_IsBlackWhite = false; 33 } 34 else if(sessionStorage.KHDA_IsBlackWhite == "false") { 35 $("#contrast_ratio").prev().prop("checked", false) 36 $("#contrast_ratio_mobile").prev().prop("checked", false) 37 $("#contrast_ratio, #contrast_ratio_mobile").parent().trigger("change"); 38 } 39 else { 40 $("#contrast_ratio").prev().prop("checked", true) 41 $("#contrast_ratio_mobile").prev().prop("checked", true) 42 $("#contrast_ratio, #contrast_ratio_mobile").parent().trigger("change"); 43 } 44 */ 45 if(sessionStorage.KHDA_BodyColorClass == undefined) { 46 sessionStorage.KHDA_BodyColorClass = "default-theme"; 47 } 48 else { 49 $('body').addClass(sessionStorage.KHDA_BodyColorClass); 50 } 51 $('#' + sessionStorage.KHDA_BodyColorClass).attr('checked', 'checked'); 52 $('#' + sessionStorage.KHDA_BodyColorClass + '_mobile').attr('checked', 'checked'); 53 54 if(sessionStorage.KHDA_IsLargeFont == undefined) { 55 sessionStorage.KHDA_IsLargeFont = false; 56 } 57 if(sessionStorage.KHDA_IsSmallFont == undefined) { 58 sessionStorage.KHDA_IsSmallFont = false; 59 } 60 /* 61 if(sessionStorage.KHDA_IsLargeFont == "false") { 62 $("#font_size").prev().prop("checked", false) 63 $("#font_size_mobile").prev().prop("checked", false) 64 $("#font_size, #font_size_mobile").parent().trigger("change"); 65 $("#font_size_mobile").parent().trigger("change"); 66 } 67 else { 68 69 $("#font_size").prev().prop("checked", true) 70 $("#font_size_mobile").prev().prop("checked", true) 71 $("#font_size, #font_size_mobile").parent().trigger("change"); 72 $("#font_size_mobile").parent().trigger("change"); 73 } 74 */ 75 if(sessionStorage.KHDA_IsLargeFont == "true") { 76 $('#incfont, #incfont_mobile').trigger('click'); 77 } 78 else if(sessionStorage.KHDA_IsSmallFont == "true") { 79 $('#decfont, #decfont_mobile').trigger('click'); 80 } 81 else { 82 $('#deffont, #deffont_mobile').trigger('click'); 83 } 84 85});
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.