1document.write("<script type='text/javascript' src='/hoteladmin/common/js/common.js'></script>"); 2 3$(function(){ 4 $('.menu-trigger').on('click',function(){ 5 6 if(!$(this).data('clicked')) { 7 $('.ico-menu').addClass('on'); 8 $('.nav-responsive .container').fadeIn(); 9 $('.nav-responsive').css('height','100%'); 10 $(this).data('clicked', true); 11 $('body').addClass('noscroll'); 12 } 13 else{ 14 $('.ico-menu').removeClass('on'); 15 $('.nav-responsive .container').fadeOut('fast'); 16 $('.nav-responsive').css('height','0'); 17 $(this).data('clicked', false); 18 $('body').removeClass('noscroll'); 19 } 20 }); 21 22 $('body').on('hidden.bs.modal','.modal',function() 23 { 24 $(this).removeData('bs.modal'); 25 26 }); 27 $('.bs-modal,.bs-modal-lg').on('show.bs.modal',function(e) 28 { 29 var el = $(e.relatedTarget); 30 var modal = $(this); 31 modal.find('.modal-content').load(el.data("remote")); 32 }); 33 34 $('.collapse').on('show.bs.collapse', function(){ 35 var i = $(this).prev().find('.arr'); 36 i.toggleClass('on'); 37 }).on('hide.bs.collapse', function(){ 38 var i = $(this).prev().find('.arr'); 39 i.toggleClass('on'); 40 }); 41 42 $('.showPass').on('click', function(){ 43 44 var f = $(this).parent().find('input'); 45 var type = f.attr('type'); 46 47 if(type == 'password') 48 { 49 f.attr('type', 'text'); 50 $(this).removeClass('bi-eye-slash-fill'); 51 $(this).addClass('bi-eye-fill'); 52 } else { 53 f.attr('type', 'password'); 54 $(this).removeClass('bi-eye-fill'); 55 $(this).addClass('bi-eye-slash-fill'); 56 } 57 }); 58}); 59 60$(window).on('scroll', function(event) { 61 var scrollValue = $(window).scrollTop(); 62 if (scrollValue > 0) { 63 $('header').addClass('affix'); 64 }else{ 65 $('header').removeClass('affix'); 66 } 67}); 68 69window.onscroll = function() {scrollFunction()}; 70function scrollFunction() { 71 if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { 72 document.getElementById("btnTop").style.display = "block"; 73 } else { 74 document.getElementById("btnTop").style.display = "none"; 75 } 76} 77function topFunction() { 78 document.body.scrollTop = 0; 79 document.documentElement.scrollTop = 0; 80}
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.