1$=jQuery(); 2(function($){ 3 if($('#verification-pop').length){ 4 $("#verification-pop").dialog({ 5 resizable: false, 6 height: "auto", 7 width: "auto", 8 maxWidth: 600, 9 modal: true, 10 fluid: true, 11 dialogClass: "verification", 12 buttons: { 13 "Resend Email": function() { 14 15 }, 16 "Close": function() { 17 $( this ).dialog( "close" ); 18 //location.reload(); 19 } 20 21 }, 22 create:function () { 23 resend_but = $(this).closest(".ui-dialog").find("#fail-ver").length; 24 console.log(resend_but); 25 if(resend_but){ 26 $(this).closest(".ui-dialog").find(".ui-button:first-child").addClass("resend-btn"); 27 }else{ 28 $(this).closest(".ui-dialog").find(".ui-button:first-child").remove(); 29 } 30 } 31 }); 32 } 33 if(location.hash && location.hash=='#map'){ 34 $('.show-map').click(); 35 } 36 $('.show-map').on('click',function(e){ 37 e.preventDefault(); 38 page_url = location.origin + location.pathname; 39 if(location.hash=='') 40 history.pushState(null,null,page_url + '#map'); 41 else 42 history.pushState(null,null,page_url); 43 44 }); 45 function copy(obj){ 46 var $temp = $("<div>"); 47 $("body").append($temp); 48 $temp.attr("contenteditable", true) 49 .html(obj.html()).select() 50 .on("focus", function() { document.execCommand('selectAll',false,null); }) 51 .focus(); 52 document.execCommand("copy"); 53 $temp.remove(); 54 } 55 56 $('.copy-but').on('click',function(e){ 57 e.preventDefault(); 58 $obj = $(this).closest('.wpb_wrapper').find('.wpb_text_column .wpb_wrapper'); 59 navigator.clipboard.writeText($obj.text()); 60 $(this).text('Copied to Clipboard!'); 61 }); 62 63 $('.copy-btn-d a').on('click',function(e){ 64 e.preventDefault(); 65 $obj = $(this).closest('div').prev('p'); 66 navigator.clipboard.writeText($obj.text()); 67 $(this).text('Copied to Clipboard!'); 68 }); 69 var lastScrollTop = 0; 70 $('#logo').attr('tabindex',-1); 71 $(window).on('scroll',function(){ 72 if($('body').hasClass('page-template-home')){ 73 ws = $(window).scrollTop(); 74 /*lt = $('.ai').offset().top; 75 if(lastScrollTop < ws && ws>=(100)){ 76 anim.setDirection(-1); 77 anim.play(); 78 }else if(lastScrollTop > ws){ 79 anim.setDirection(1); 80 anim.play(); 81 }*/ 82 83 b_end = $('#clw-date2').offset().top; 84 o = ws/b_end*2; 85 //$('.page-template-home #logo img').css('',o); 86 if(o){ 87 $('#logo').removeAttr('tabindex'); 88 }else{ 89 $('#logo').attr('tabindex',-1); 90 } 91 } 92 93 lastScrollTop = ws; 94 }); 95 $('.tribe-ce-register a').on('click',function(e){ 96 e.preventDefault(); 97 $('#viv-popup-reg').fadeIn(); 98 }); 99 $('#menu-right-menu > .every-link > a, .every-modal').on('click',function(e){ 100 e.preventDefault(); 101 console.log($(this).parent('li')); 102 if($(this).parent('li').hasClass('viv-vcp-megamenu') && window.innerWidth < 993) 103 return; 104 $('body').addClass('noscroll'); 105 $('#every-form').fadeIn(); 106 $('#email_address_0').focus(); 107 }); 108 109 $(document).on('click','#resend-ver,.resend-btn',function(){ 110 $('#load-zag').show(); 111 $.ajax({ 112 url:'/wp-admin/admin-ajax.php', 113 type:'post', 114 data:{action:'resend_ver_code',add_event:$('#add-event').val(),url:location.href}, 115 success:function(data){ 116 $('#aj-resp-resend-ver,#fail-ver').text(data); 117 $('#load-zag').hide(); 118 } 119 }); 120 }); 121 $('.add-event-form .start-date .ginput_container_date input').on('change',function(){ 122 if(!$('.add-event-form .end-date .ginput_container_date input').val()) 123 $('.add-event-form .end-date .ginput_container_date input').val($(this).val()); 124 }); 125 126 $(document).on('keydown', function(e){ 127 if( e.target.classList.contains('close')){ 128 if (e.keyCode == 13 || e.key == 'Enter') { 129 close_viv_popup(); 130 } 131 } 132 }); 133 134 const block = document.getElementById('menu_left'); 135 if(block){ 136 const originalParent = block.parentNode; 137 const targetParent = document.getElementById('main-menu-row'); 138 let moved = false; 139 140 function moveMenu() { 141 if (window.innerWidth < 992 && !moved) { 142 targetParent.prepend(block); 143 moved = true; 144 } else if (window.innerWidth >= 992 && moved) { 145 originalParent.appendChild(block); 146 moved = false; 147 } 148 } 149 150 window.addEventListener('resize', moveMenu); 151 window.addEventListener('DOMContentLoaded', moveMenu); 152 } 153 154 $('#menu-left-menu .viv-vcp-megamenu > a,#menu-right-menu .viv-vcp-megamenu > a').on('click', function(e) { 155 if (window.innerWidth < 992) { 156 e.preventDefault(); 157 $(this).closest('li').find('.viv-megamenu-content').slideToggle(); 158 } 159 }); 160 161})(jQuery); 162 163document.querySelectorAll(".add-event-form input[type=number]").forEach(element=>addEventListener('input', addLeadingZero)); 164 165function addLeadingZero(event) { 166 // get maxlength attr 167 const maxLength = parseInt(event.target.getAttribute("maxlength")) 168 // "0".repeat(maxLength) <-- create default pad with maxlength given 169 // append zero and slice last of attr maxlength value 170 const newValue = ("0".repeat(maxLength) + event.target.value.toString()).slice(-maxLength); 171 // change the value of input 172 event.target.value = newValue 173}
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.