1$(document).ready(function() { 2 window.addEventListener('scroll', function() { 3 var nav = document.querySelector('nav'); 4 var scrollPosition = window.scrollY; 5 6 if (scrollPosition > 10) { // Adjust the scroll position threshold as needed 7 nav.style.backgroundColor = '#FEDD2C'; 8 // $('.banner').fadeOut('slow',function() {$('.intro').show()}) 9 // $('.play').slideDown("slow") 10 // $('.play').addClass('playamina') 11 12 13 } 14 // else if(scrollPosition==0){ 15 // $('.banner').slideDown('slow') 16 // $('.play').hide() 17 // $('.play').remove('playamina') 18 // $('.intro').hide() 19 // } 20 else { 21 nav.style.backgroundColor = '#fff0'; 22 23 24 } 25 // s 26 27 }) 28 $('.mobile').click(function() { 29 30 31 $('.mobile_main').css('display', 'flex'); 32 33 // 34 }) 35 36 $('.close').click(function() { 37 38 39 40 $('.mobile_main').hide() 41 42 43 }) 44 $(window).resize(function() { 45 46 if ($(this).width() < 700) { 47 48 $('.play').hide(); 49 $('.intro').addClass('mobile-margin') 50 51 } else { 52 53 $('.play').show(); 54 $('.intro').removeClass('mobile-margin') 55 56 } 57 58 }); 59 document.querySelector('.contact1').addEventListener('click', postquery) 60 61 function postquery() { 62 $.ajax({ 63 type: "POST", 64 url: "/query/", 65 data: { 66 name: $('#name').val(), 67 email: $('#email').val(), 68 message: $('#message').val(), 69 csrfmiddlewaretoken: $("input[name=csrfmiddlewaretoken]").val(), 70 71 72 }, 73 success: function(data) { 74 if (data == 'true') { 75 76 $('.alert').show() 77 $('.mess-form').hide() 78 $('.footer-heading').hide() 79 } 80 81 } 82 }) 83 } 84 } 85 86 87);
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.