1 2$(function(){ 3 function intro(){ 4 5 6 } 7 8 9 function gnb(){ 10 var isSlide = 'N'; 11 12 $(window).scroll(function(){ 13 var h = $(window).scrollTop(); 14 15 if(h < 100){ 16 if(isSlide == 'Y'){ 17 isSlide = 'N'; 18 $("#headerWrap").animate({backgroundColor:"rgba(0, 0, 0, 0);"},300); 19 $("#banner-wrap").animate({bottom:"-215px"},300); 20 $("#banner-info-wrap").animate({top:"315px"},300); 21 $("#banner-citytour-wrap").animate({top:"315px"},300); 22 //$("#banner-top").animate({height:"100px"},300); 23 $("#gotoTop").fadeOut(); 24 } 25 }else if(h >= 101){ 26 if(isSlide == 'N'){ 27 isSlide = 'Y'; 28 $("#headerWrap").animate({backgroundColor:"rgba(193,39,42,0.9)"},300); 29 $("#banner-wrap").animate({bottom:"80px"},300); 30 $("#banner-info-wrap").animate({top:"85px"},300); 31 $("#banner-citytour-wrap").animate({top:"85px"},300); 32 //$("#banner-top").animate({height:"0px"},300); 33 $("#gotoTop").fadeIn(); 34 } 35 } 36 }); 37 38 } 39 40 function goToTop(){ 41 $("#gotoTop").on("click",function(){ 42 $('body,html').stop(true).animate({scrollTop:0},400); 43 return false; 44 }); 45 } 46 47 function goToAnchor(){ 48 49 $("#gotoMagazine").on("click",function(){ 50 $('html,body').animate({scrollTop: $('#magazine-anchor').offset().top-40},800); 51 return false; 52 }); 53 54 $("#gotoWorldtravel").on("click",function(){ 55 $('html,body').animate({scrollTop: $('#world-anchor').offset().top-150},800); 56 return false; 57 }); 58 59 $("#gotoBestcity").on("click",function(){ 60 $('html,body').animate({scrollTop: $('#bestcity-anchor').offset().top-150},800); 61 return false; 62 }); 63 64 $("#gotoBestcitytour").on("click",function(){ 65 $('html,body').animate({scrollTop: $('#citytour-anchor').offset().top-50},800); 66 return false; 67 }); 68 69 $("#gotoSubscribe").on("click",function(){ 70 $('html,body').animate({scrollTop: $('#subscribe-anchor').offset().top-35},800); 71 return false; 72 }); 73 74 } 75 76 77 78 function goToAnchor01(){ 79 80 $("#gotoHotel-01").on("click",function(){ 81 window.location.href = "http://hotel.uniholiday.com/index.asp#hotel"; 82 return false; 83 }) 84 85 86 goToAnchorEvent(); 87 88 function goToAnchorEvent(){ 89 $(document).ready(function() { 90 91 $("#wrapper").css("transition","1.3s linear").css("opacity","1"); 92 $("#banner-wrap>.banner-con").css("transition","1.3s linear").css("opacity","1"); 93 $("#banner-info-wrap>.banner-info-con").css("transition","1.3s linear").css("opacity","1"); 94 $("#banner-citytour-wrap>.banner-citytour-con").css("transition","1.3s linear").css("opacity","1"); 95 96 if (window.location.hash === '#hotel') { 97 $('html,body').stop(true).delay(1000).animate({scrollTop: $('#hotel-anchor').offset().top},800); 98 } 99 if (window.location.hash === '#marketing') { 100 $('html,body').stop(true).delay(1000).animate({scrollTop: $('#media-anchor').offset().top-100},800); 101 } 102 if (window.location.hash === '#event') { 103 $('html,body').stop(true).delay(1000).animate({scrollTop: $('#event-anchor').offset().top},800); 104 } 105 if (window.location.hash === '#whoweare') { 106 $('html,body').stop(true).delay(1000).animate({scrollTop: $('#whoweare-anchor').offset().top-80},800); 107 } 108 if (window.location.hash === '#partners') { 109 $('html,body').stop(true).delay(1000).animate({scrollTop: $('#partners-anchor').offset().top-85},800); 110 } 111 if (window.location.hash === '#contactus') { 112 $('html,body').stop(true).delay(1000).animate({scrollTop: $('#contactus-anchor').offset().top-80},800); 113 } 114 }); 115 } 116 } 117 118 119 120 121 function subList(){ 122 123 $("#content .subGnb li a").click(function(){ 124 var num = $(this).parent().index()+1 125 126 $(this).parent().addClass("on"); 127 $(this).parent().siblings("li").removeClass("on"); 128 }); 129 } 130 131 function subListScroll(){ 132 133 $("#content .subGnb-scroll li a").click(function(){ 134 var num = $(this).parent().index()+1; 135 136 $(this).parent().addClass("on"); 137 $(this).parent().siblings("li").removeClass("on"); 138 }); 139 } 140 141 142 function photo(){ 143 $(".gotoPhoto").on("click",function(){ 144 $("#dimm-photo").addClass("dimm-photo-open"); 145 $("#photo-modal").fadeIn(100).addClass("photo-modal-open"); 146 $("body").addClass("body-scroll"); 147 return false; 148 }); 149 150 $(".photo-modal-close").click(function(){ 151 $("#dimm-photo").removeClass("dimm-photo-open"); 152 $("#photo-modal").fadeOut(100).removeClass("photo-modal-open"); 153 $("body").removeClass("body-scroll"); 154 return false; 155 }); 156 } 157 158 159 160 161//////////////////////////// 162 //intro() 163 164 gnb() ; 165 goToAnchor(); 166 goToAnchor01(); 167 goToTop(); 168 subList(); 169 subListScroll(); 170 photo(); 171}) 172 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.