1$(document).ready(function () { 2 var ua = navigator.userAgent; 3 if ( 4 (ua.indexOf("iPhone") > 0 && ua.indexOf("iPod") == -1) || 5 (ua.indexOf("Android") > 0 && 6 ua.indexOf("Mobile") > 0 && 7 ua.indexOf("SC-01C") == -1 && 8 ua.indexOf("A1_07") == -1) 9 ) { 10 $(".headerPhone .phoneNumber").each(function () { 11 var str = $(this).text(); 12 $(this).html( 13 $("<a>") 14 .attr("href", "tel:" + str.replace(/-/g, "")) 15 .append(str + "</a>") 16 ); 17 }); 18 $("footer .phoneNumber").each(function () { 19 var str = $(this).text(); 20 $(this).html( 21 $("<a>") 22 .attr("href", "tel:" + str.replace(/-/g, "")) 23 .append(str + "</a>") 24 ); 25 }); 26 } else { 27 $(".headerPhone, footer .phoneNumber").removeClass("linkBox"); 28 } 29 $(window).on("load resize", function () { 30 if ($(window).width() > 767) { 31 var htmlPadding = $("footer").height(); 32 $("html").css("padding-bottom", htmlPadding); 33 } else { 34 $("html").css("padding-bottom", 0); 35 } 36 }); 37 $("#drower-menu").mmenu({ position: "left" }); 38 $( 39 ".linkBox, .blockLink li, #sidebar li, #footerLinks .documentList li, .tour #calendarArea td" 40 ).click(function () { 41 if ($(this).find("a").attr("target") != null) { 42 window.open($(this).find("a").attr("href")); 43 } else { 44 if ($(this).find("a").attr("id") >= 0) return false; 45 if ($(this).find("a").attr("href") == null) return false; 46 window.location.href = $(this).find("a").attr("href"); 47 return false; 48 } 49 }); 50 $(".surf #mainvisual .button").click(function () { 51 var me = $("#mainvisual .button").index(this); 52 var i = $("#topLineup").eq(me).offset().top; 53 $("html, body").stop().animate({ scrollTop: i }, 800); 54 return false; 55 }); 56 $("#destination .button").click(function () { 57 $(this).prev("#destination dl").slideToggle(800); 58 if ($(this).hasClass("opened")) { 59 $(this) 60 .removeClass("opened") 61 .find("img") 62 .attr( 63 "src", 64 $(this).find("img").attr("src").replace("opened.", "closed.") 65 ); 66 } else { 67 $(this) 68 .addClass("opened") 69 .find("img") 70 .attr( 71 "src", 72 $(this).find("img").attr("src").replace("closed.", "opened.") 73 ); 74 } 75 }); 76 $(window).scroll(function () { 77 var now = $(window).scrollTop(); 78 if (now > 130) { 79 $("#pageTop").fadeIn(); 80 } else { 81 $("#pageTop").fadeOut(); 82 } 83 }); 84 $("#moveTop").click(function () { 85 $("html,body").animate({ scrollTop: 0 }, "slow"); 86 }); 87 function selectPlaceholder() { 88 $( 89 ".top select, .tour .searchFormArea select, .tour .formBlock select" 90 ).change(function () { 91 if ($(this).val() == "0") { 92 $(this).addClass("placeholder"); 93 } else { 94 $(this).removeClass("placeholder"); 95 } 96 }); 97 $("select").change(); 98 } 99 $("input[type=reset]").click(function (e) { 100 e.preventDefault(); 101 $(this).closest("form").get(0).reset(); 102 selectPlaceholder(); 103 }); 104 selectPlaceholder(); 105 $("input[placeholder]").change(function () { 106 if ($(this).val() == "") { 107 $(this).addClass("placeholder"); 108 } else { 109 $(this).removeClass("placeholder"); 110 } 111 }); 112 $("input").change(); 113 $(".tour .order dd button.buttonS").click(function () { 114 var userAgent = window.navigator.userAgent.toLowerCase(); 115 var appVersion = window.navigator.appVersion.toLowerCase(); 116 if (userAgent.indexOf("msie") != -1) { 117 if (appVersion.indexOf("msie 9.") != -1) { 118 $(this) 119 .parents("dd") 120 .nextAll("dd") 121 .find(".prefacture") 122 .css("color", "#000"); 123 $(this).parents("dd").nextAll("dd").find("input").css("color", "#000"); 124 } 125 } else { 126 $(this) 127 .parents("dd") 128 .nextAll("dd") 129 .find(".prefacture") 130 .removeClass("placeholder"); 131 } 132 }); 133 $(".placeholder").ahPlaceholder({ 134 placeholderColor: "#bbb", 135 placeholderAttr: "placeholder", 136 likeApple: false, 137 }); 138 $(".detailSearch .trigger").click(function () { 139 $(this).prev(".details").slideToggle(800); 140 if ($(this).hasClass("opened")) { 141 $(this).removeClass("opened").find("span").text("ããã«æ¡ä»¶ãçµãè¾¼ã"); 142 } else { 143 $(this).addClass("opened").find("span").text("éãã"); 144 changeBoxSize(); 145 } 146 }); 147 $(".imagePanel ul li img").click(function () { 148 imagePath = $(this).attr("src"); 149 imagePath2 = $(this).attr("srcset"); 150 changeText = $(this).attr("alt"); 151 $(".main") 152 .find("img") 153 .fadeOut(200, function () { 154 $(this).fadeIn(600).attr("src", imagePath); 155 if (imagePath2 !== void 0) { 156 $(this).fadeIn(600).attr("srcset", imagePath2); 157 } 158 }); 159 $(".main") 160 .find("p") 161 .fadeOut(200, function () { 162 $(this).fadeIn(600).text(changeText); 163 }); 164 }); 165 $(".imagePanel2 ul li img").click(function () { 166 imagePath = $(this).attr("src"); 167 imagePath2 = $(this).attr("srcset"); 168 changeText = $(this).attr("alt"); 169 $(".main2") 170 .find("img") 171 .fadeOut(200, function () { 172 $(this).fadeIn(600).attr("src", imagePath); 173 if (imagePath2 !== void 0) { 174 $(this).fadeIn(600).attr("srcset", imagePath2); 175 } 176 }); 177 $(".main2") 178 .find("p") 179 .fadeOut(200, function () { 180 $(this).fadeIn(600).text(changeText); 181 }); 182 }); 183 $(".tabMenu li a").click(function () { 184 $(".tabMenu li a").removeClass("active"); 185 $(this).toggleClass("active"); 186 $(".tabContents > div").hide(); 187 $($(this).attr("href")).fadeToggle().toggleClass("active"); 188 return false;
189 }); 190 if ($("#detailArea")[0]) { 191 var movableArea = $("#detailArea").offset().top; 192 movableHeight = $("#detailArea").height(); 193 floatingHeight = $("#detailRight").height(); 194 watershed = movableArea + (movableHeight - floatingHeight); 195 $(window).on("scroll", function () { 196 if ($(window).scrollTop() < movableArea) { 197 $("#detailRight").css("position", "absolute"); 198 } else if ($(window).scrollTop() > movableArea) { 199 if ($(window).scrollTop() < watershed) { 200 $("#detailRight").css({ position: "fixed", top: 0, bottom: "auto" }); 201 } else { 202 $("#detailRight").css({ 203 position: "absolute", 204 top: "auto", 205 bottom: 0, 206 }); 207 } 208 } else { 209 } 210 }); 211 } 212 $(".destinations .text02 .trigger").click(function () { 213 $(this).prev(".details").slideToggle(800); 214 if ($(this).hasClass("opened")) { 215 $(this).removeClass("opened").find("span").text("ããã«è©³ãã"); 216 } else { 217 $(this).addClass("opened").find("span").text("éãã"); 218 } 219 }); 220 $(".news-blog .colRight h3").click(function () { 221 $(this).next("ul").slideToggle(800); 222 if ($(this).hasClass("opened")) { 223 $(this) 224 .removeClass("opened") 225 .find("span") 226 .html( 227 '<img src="../common/images/icon_blog-closed.png" width="100%" alt="">' 228 ); 229 } else { 230 $(this) 231 .addClass("opened") 232 .find("span") 233 .html( 234 '<img src="../common/images/icon_blog-opened.png" width="100%" alt="">' 235 ); 236 } 237 }); 238 if ($(".documents.terms01 #travelTerms")[0]) { 239 $("#travelTerms").load("terms01.html"); 240 } else if ($(".tour #travelTerms.terms01")[0]) { 241 $("#travelTerms").load("/stip/terms01.html"); 242 } else if ($("#travelTerms.colLeft")) { 243 $("#travelTerms").load("/stip/terms01.html"); 244 } else { 245 } 246 if ($(".calendar")[0]) { 247 $(".calendar").datepicker({ format: "yyyy/mm/dd", autoclose: true }); 248 } else { 249 return false; 250 } 251});
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.