1$(document).ready(function() { 2 $('#menu').show(); 3 // Target your .container, .wrapper, .post, etc. 4 $(".editable_content").fitVids(); 5 // Set the effect type 6 var effect = 'slide'; 7 // Set the options for the effect type chosen 8 var options = { direction: 'up' }; 9 // Set the duration 10 var duration = 250; 11 // Execute the effect on desired element 12 //$('.hide_message').delay(500).toggle(effect, options, duration); 13 $('#close_message').click(function() { 14 $('.message_wrapper').toggle(effect, options, duration); 15 }); 16 // FAQ TOGGLER 17 $('.toggle_faq').click(function(){ 18 $(this).toggleClass("active").next().slideToggle("fast"); 19 $('.toggle_faq').not(this).each(function(){ 20 $(this).removeClass("active").next().slideUp("fast"); 21 }); 22 }); 23 // MENU TOGGLER 24 $('div.menu_toggler:not(.open)').hide(); 25 $('.menu_toggle').click(function(){ 26 $(this).toggleClass("active").next().slideToggle("fast"); 27 }); 28 29 $('nav#menu').mmenu({}); 30 $("#datepicker").datepicker({ 31 yearRange: "-40:+0", 32 dateFormat: "M/dd/yy", 33 minDate: 0 34 }); 35 $("#datepicker2").datepicker({ 36 yearRange: "-40:+0", 37 dateFormat: "M/dd/yy", 38 minDate: 0 39 }); 40 41 // Hash links 42 var mmenu = $("nav#menu").data("mmenu"); 43 $('a[href*="#"]:not([href="#"]):not([href="#menu"]):not([class="mm-subopen"]):not([class="mm-subclose"])').click(function() { 44 mmenu.close(); 45 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 46 var target = $(this.hash); 47 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 48 if (target.length) { 49 $('html, body').animate({ 50 scrollTop: target.offset().top - 54 51 }, 1000); 52 return false; 53 } 54 } 55 }); 56 57 $('.menu_section_nav').click(function() { 58 $('.summary-content').slideToggle('fast'); 59 $('.summary-content').toggleClass('open') 60 }) 61 62 // Stackable Content Tables 63 $('.editable_content table').cardtable({ 64 myClass:'stackable-table' 65 }); 66 67 // VIDEO Gallery 68 $(document).swipebox({ selector: '.swipebox_video_gallery' }); 69 70 // FULL Gallery 71 $(document).swipebox({ selector: '.swipebox_full_gallery', hideBarsDelay : 0}); 72 73 // Initialize wow 74 new WOW().init(); 75}); 76 77//Confirms Deleting 78function confirm_delete(event){ 79 event.preventDefault(); // prevent form submit 80 var form = event.target; // storing the form 81 swal({ 82 title: 'Are you sure?', 83 text: "You won't be able to revert this!", 84 type: 'warning', 85 showCancelButton: true, 86 confirmButtonColor: '#3085d6', 87 cancelButtonColor: '#d33', 88 confirmButtonText: 'Yes, delete it!' 89 }).then((result) => { 90 if (result.value) { 91 form.submit(); 92 } else { 93 swal("Cancelled", "", "error"); 94 } 95 }); 96} 97 98// Language select 99$('.language span').on('click', function(){ 100 var lang = $(this).data('lang'); 101 $.ajax({ 102 url: "/includes/change-language.php", 103 type: "post", 104 data: { 105 language: lang 106 }, 107 success: function (response) { 108 window.location.reload(false); 109 }, 110 error: function (jqXHR, textStatus, errorThrown) { 111 console.log(textStatus, errorThrown); 112 } 113 }); 114}); 115 116$('.toggle').click(function(e) { 117 e.preventDefault(); 118 section = $(this).attr('href'); 119 $(".button_container").toggleClass('active'); 120 $('#overlay').toggleClass('open'); 121 $('html, body').animate({ 122 scrollTop: $('#' + section).offset().top 123 }, 1000); 124});
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.