1/*! ========================================================= 2 * 3 * Material Kit Free - V1.1.0 4 * 5 * ========================================================= 6 * 7 * 8 * _oo0oo_ 9 * o8888888o 10 * 88" . "88 11 * (| -_- |) 12 * 0\ = /0 13 * ___/`---'\___ 14 * .' \\| |// '. 15 * / \\||| : |||// \ 16 * / _||||| -:- |||||- \ 17 * | | \\\ - /// | | 18 * | \_| ''\---/'' |_/ | 19 * \ .-\__ '-' ___/-. / 20 * ___'. .' /--.--\ `. .'___ 21 * ."" '< `.___\_<|>_/___.' >' "". 22 * | | : `- \`.;`\ _ /`;.`/ - ` : | | 23 * \ \ `_. \_ __\ /__ _/ .-` / / 24 * =====`-.____`.___ \_____/___.-`___.-'===== 25 * `=---=' 26 * 27 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 28 * 29 * Buddha Bless: "No Bugs" 30 * 31 * ========================================================= */ 32 33var transparent = true; 34 35var transparentDemo = true; 36var fixedTop = false; 37 38var navbar_initialized = false; 39 40$(document).ready(function(){ 41 42 // Init Material scripts for buttons ripples, inputs animations etc, more info on the next link https://github.com/FezVrasta/bootstrap-material-design#materialjs 43 $.material.init(); 44 45 // Activate the Tooltips 46 $('[data-toggle="tooltip"], [rel="tooltip"]').tooltip(); 47 48 // Activate Datepicker 49 if($('.datepicker').length != 0){ 50 $('.datepicker').datepicker({ 51 weekStart:1 52 }); 53 } 54 55 // Check if we have the class "navbar-color-on-scroll" then add the function to remove the class "navbar-transparent" so it will transform to a plain color. 56 if($('.navbar-color-on-scroll').length != 0){ 57 $(window).on('scroll', materialKit.checkScrollForTransparentNavbar) 58 } 59 60 // Activate Popovers 61 $('[data-toggle="popover"]').popover(); 62 63 // Active Carousel 64 $('.carousel').carousel({ 65 interval: 400000 66 }); 67 68}); 69 70materialKit = { 71 misc:{ 72 navbar_menu_visible: 0 73 }, 74 75 checkScrollForTransparentNavbar: debounce(function() { 76 if($(document).scrollTop() > 260 ) { 77 if(transparent) { 78 transparent = false; 79 $('.navbar-color-on-scroll').removeClass('navbar-transparent'); 80 } 81 } else { 82 if( !transparent ) { 83 transparent = true; 84 $('.navbar-color-on-scroll').addClass('navbar-transparent'); 85 } 86 } 87 }, 17), 88 89 initSliders: function(){ 90 // Sliders for demo purpose 91 $('#sliderRegular').noUiSlider({ 92 start: 40, 93 connect: "lower", 94 range: { 95 min: 0, 96 max: 100 97 } 98 }); 99 100 $('#sliderDouble').noUiSlider({ 101 start: [20, 60] , 102 connect: true, 103 range: { 104 min: 0, 105 max: 100 106 } 107 }); 108 } 109} 110 111 112var big_image; 113 114materialKitDemo = { 115 checkScrollForParallax: debounce(function(){ 116 var current_scroll = $(this).scrollTop(); 117 118 oVal = ($(window).scrollTop() / 3); 119 big_image.css({ 120 'transform':'translate3d(0,' + oVal +'px,0)', 121 '-webkit-transform':'translate3d(0,' + oVal +'px,0)', 122 '-ms-transform':'translate3d(0,' + oVal +'px,0)', 123 '-o-transform':'translate3d(0,' + oVal +'px,0)' 124 }); 125 126 }, 6) 127 128} 129// Returns a function, that, as long as it continues to be invoked, will not 130// be triggered. The function will be called after it stops being called for 131// N milliseconds. If `immediate` is passed, trigger the function on the 132// leading edge, instead of the trailing. 133 134function debounce(func, wait, immediate) { 135 var timeout; 136 return function() { 137 var context = this, args = arguments; 138 clearTimeout(timeout); 139 timeout = setTimeout(function() { 140 timeout = null;
141 if (!immediate) func.apply(context, args); 142 }, wait); 143 if (immediate && !timeout) func.apply(context, args); 144 }; 145};
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.