1$(".input-field").each(function() { 2 if($(this).val().length > 0) { 3 $(this).prev('.floating-form-label').addClass('focused'); 4 } 5 }); 6 function inputFocused() { 7 $(this).prev('.floating-form-label').addClass('focused'); 8 } 9 function inputBlurred() { 10 $this = $(this); 11 if ($this.attr('data-datepicker') == "true" || $this.attr('data-mask') != "") { 12 setTimeout(function() { 13 if($this.val().length < 1) { 14 $this.prev('.floating-form-label').removeClass('focused'); 15 } 16 }, 200); 17 } else { 18 if($this.val().length < 1) { 19 $this.prev('.floating-form-label').removeClass('focused'); 20 } 21 } 22 } 23 $(document).ready(function() { 24 $('.floating-form-label').click(function() { 25 $(this).next('input').focus(); 26 }); 27 var $input = $('input.input-field'); 28 $input.on("focus", inputFocused); 29 $input.on("blur", inputBlurred); 30 var $textarea = $('textarea.input-field'); 31 $textarea.on("focus", inputFocused); 32 $textarea.on("blur", inputBlurred); 33 $(".input-field").each(function() { 34 if($(this).val().length > 0) { 35 $(this).prev('.floating-form-label').addClass('focused'); 36 } 37 }); 38 }); 39 40 $(document).scroll(function() { 41 if ($(window).width() > 991) { 42 if ($(document).scrollTop() >= 200) { 43 $('.nav-link,.navbar,.logo-home-link,.nav-top,.nav-menu,.nav-container,.logo-home-link,.logo-home-link.menu').addClass('scrolled'); 44 } else { 45 $('.nav-link,.navbar,.logo-home-link,.nav-top,.nav-menu,.nav-container,.logo-home-link,.logo-home-link.menu').removeClass('scrolled'); 46 } 47 } else { 48 $('.nav-link,.navbar,.logo-home-link,.nav-top,.nav-menu,.nav-container,.logo-home-link,.logo-home-link.menu').removeClass('scrolled'); 49 } 50 }); 51 $(document).ready(function(){ 52 $(document).scroll(); 53 }); 54 55 $(document).ready(function() { 56 $("input, textarea").on({ 'touchstart' : function() { 57 zoomDisable(); 58 }}); 59 $("input, textarea").on({ 'touchend' : function() { 60 setTimeout(zoomEnable, 500); 61 }}); 62 }); 63 function zoomDisable(){ 64 $('head meta[name=viewport]').remove(); 65 $('head').prepend('<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />'); 66 } 67 function zoomEnable(){ 68 $('head meta[name=viewport]').remove(); 69 $('head').prepend('<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1" />'); 70 }
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.