1var myqrl = myqrl || {}; 2 3myqrl.setEqualBoxHeight = function () { 4 var tallest = 0; 5 6 $('.box').each(function () { 7 var thisHeight = $(this).height(); 8 if (thisHeight > tallest) { 9 tallest = thisHeight; 10 } 11 }); 12 13 $('.box').height(tallest + 10); 14}; 15 16myqrl.init = function () { 17 myqrl.initializeFancySelect(); 18 myqrl.initializeParallax(); 19 myqrl.initializeMobileNav($(window).width()); 20}; 21 22myqrl.initializeFancySelect = function () { 23 // Initialize Fancy Select Plugin on Language Dropdown 24 $('.languageSelect-select').fancySelect(); 25 $('.accountSelect-select').fancySelect(); 26}; 27 28myqrl.initializeParallax = function () { 29 var $win = $(window); 30 var $phone = $('.hero-wrap-hand'); 31 var $body = $('.hero-wrap-hd'); 32 var parallaxVal = 2.5; 33 var opacityVal = 1000; 34 35 $win.scroll(function () { 36 var yax = $win.scrollTop(); 37 38 $phone.css({ 39 'transform': 'translateY(' + yax / parallaxVal + 'px)', 40 '-webkit-transform': 'translateY(' + yax / parallaxVal + 'px)', 41 'opacity': 1 - (yax / opacityVal) 42 }); 43 44 $body.css({ 45 'transform': 'translateY(' + yax / parallaxVal + 'px)', 46 '-webkit-transform': 'translateY(' + yax / parallaxVal + 'px)', 47 'opacity': 1 - (yax / opacityVal) 48 }); 49 }); 50}; 51 52myqrl.initializeMobileNav = function (width) { 53 // Toggles Mobile Navigation on the dashboard 54 var toggle = $('.js-openMobileNav'); 55 var icon = toggle.children("i"); 56 var nav = $('.menuContainer'); 57 var body = $('.pageContainer'); 58 var open = function () { 59 nav.toggleClass('isOpen'); 60 body.toggleClass('isOpen'); 61 icon.toggleClass('fa-reorder'); 62 icon.toggleClass('fa-times'); 63 }; 64 65 if (width < 767) { 66 toggle.click(function (e) { 67 open(); 68 }); 69 } 70}; 71 72myqrl.validatecreateaccount = function () { 73 74 myqrl.showProcessing(); 75 76}; 77 78myqrl.showProcessing = function () { 79 $(".registerLoader").css("display", "inline-block"); 80 $(".errormsgs").css("display", "none"); 81}; 82 83myqrl.hideProcessing = function () { 84 $(".registerLoader").css("display", "none"); 85}; 86 87$(function () { 88 // Initialize myQ Responsive Javascript Object 89 myqrl.init(); 90}); 91 92 93$(window).on('load', function () { 94 myqrl.setEqualBoxHeight(); 95}); 96 97$(window).resize(_.debounce(function () { 98 $('.box').css("height", "auto"); 99 myqrl.setEqualBoxHeight(); 100}, 500));
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.