1//ì¬ì©ë ì ì´ì¿¼ë¦¬ jquery-latest.js 2 3 4$(document).ready( function(){ 5 6 /*************** pull down layer ***************/ 7 //kr_m728x90_1 8 $('.bn_728x90_1_show').click(function(){ 9 $('.bn_728x90_1').slideDown(300); //ë³´ì´ê¸° 10 }); //íì¬ìì 150904 11 12 $('.bn_728x90_1_close').click(function(){ 13 $('.bn_728x90_1').slideUp(300); //ê°ë¦¬ê¸° 14 }); 15 /*************** //pull down layer ***************/ 16 17 18}); 19 20 21 22 23/*************** 컨í ì¸ ì ì²´ì¬ë¼ì´ë ê´ë ¨ ***************/ 24//ì¬ì©ë ì ì´ì¿¼ë¦¬ jquery-1.9.1.min.js / jquery.slides.min.js 25 26//bn_300x250 27$(function() { 28 $('.bn_300x250_page').slidesjs({ 29 height: 450, 30 start: 1, 31 effect: { 32 slide: { 33 speed: 400 34 } 35 }, 36 play: { 37 auto: true 38 } 39 }); 40}); 41/*************** //컨í ì¸ ì ì²´ì¬ë¼ì´ë ê´ë ¨ ***************/ 42 43 44/*************** ëê¸ì´ì방침 ë ì´ì´íì ***************/ 45$(function() { 46 //----- OPEN 47 $('[data-popup-open]').on('click', function(e) { 48 var targeted_popup_class = jQuery(this).attr('data-popup-open'); 49 $('[data-popup="' + targeted_popup_class + '"]').fadeIn(350); 50 51 e.preventDefault(); 52 }); 53 54 //----- CLOSE 55 $('[data-popup-close]').on('click', function(e) { 56 var targeted_popup_class = jQuery(this).attr('data-popup-close'); 57 $('[data-popup="' + targeted_popup_class + '"]').fadeOut(350); 58 59 e.preventDefault(); 60 }); 61}); 62/*************** //ëê¸ì´ì방침 ë ì´ì´íì ***************/ 63 64 65/*************** Extendable banner ***************/ 66 67//bn_728x90 68function openBanner() { 69 document.getElementById('div_off').style.display = "none"; 70 document.getElementById('div_on').style.display = "block"; 71 document.getElementById('div_on').style.height = "500px"; 72 document.getElementById('banner_flash_kia').GotoFrame('1'); 73 document.getElementById('banner_flash_kia').Play(); 74} 75function closeBanner() { 76 document.getElementById('div_off').style.display = "block"; 77 document.getElementById('div_on').style.display = "none"; 78 document.getElementById('banner_flash_kia').GotoFrame('1'); 79} 80/*************** //컨í ì¸ ì ì²´ì¬ë¼ì´ë ê´ë ¨ ***************/ 81 82 83/*************** 10ì´ê° í° ë°°ë 먼ì ë³´ì´ê¸° ***************/ 84 85 86var isMPOpen = false; 87var tm_id = null; 88var tm_cnt = 0; 89var tm_max = 39; 90var html = ''; 91 92function setCookie(name,value,hour){if(hour){var date=new Date();date.setTime(date.getTime()+(hour*60*60*1000));var expires="; expires="+date.toGMTString();}else{var expires="";var value="";}document.cookie=name+"="+value+expires+"; path=/";} 93function getCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}return null;} 94 95function resetDuraMP() { 96 if (tm_id != null) { clearInterval(tm_id); tm_id = null; } 97 tm_cnt = 0; 98 $("#mp_duration").hide(); 99} 100 101function showDuraMP() { 102 103 tm_id = setInterval(function(){ 104 $("#mp_duration").html(((tm_max-1)-tm_cnt) + "ì´"); 105 tm_cnt++; 106 if (tm_cnt >= tm_max) closeMP(); 107 }, 1000); 108} 109 110/* 111function closeMP(values) { 112 113 close_popup(values); 114 //setCookie('kt_kia', 'close', 3); 115 116 $("#home_popup_frame").css("top", "500px"); 117} 118 119function openMP(values) { 120
121 if((navigator.userAgent.search("Firefox") || navigator.userAgent.search("Opera")) > -1){ 122 html = "<div id='mp_video' ><iframe width='100%' height='500' src='https://www.youtube.com/embed/PtI6hTXi9mQ?rel=0&&autoplay=1&controls=0&mute=1&modestbranding=1&showinfo=0' frameborder='0' allow='autoplay; encrypted-media; gyroscope; picture-in-picture;' allowfullscreen></iframe>" 123 +"<a class='mp_video_link' style='position:absolute; top:0; left:0; width:940px; height:500px;' href='http://service.koreatimes.com/lib/banner_action.php?&banner_id=T1&banner_ad_id=411911&banner_url=https://hoy.kr/OZ5sL' target='koreatimes'></a>"; 124 }else{ 125 html = "<div id='mp_video' ><iframe width='100%' height='500' src='https://www.youtube.com/embed/PtI6hTXi9mQ?rel=0&&autoplay=1&controls=0&mute=1zct&showinfo=0' frameborder='0' allow='autoplay; encrypted-media; gyroscope; picture-in-picture;' allowfullscreen></iframe>" 126 +"<a class='mp_video_link' style='position:absolute; top:0; left:0; width:940px; height:500px;' href='http://service.koreatimes.com/lib/banner_action.php?&banner_id=T1&banner_ad_id=411911&banner_url=https://hoy.kr/OZ5sL' target='koreatimes'></a>"; 127 } 128 129 var iframeaddress; 130 var bannerlink; 131 132 if(values==1) { 133 134 iframeaddress = '<iframe width="940" height="500" src="https://www.youtube.com/embed/JTZWGwJn7-g?rel=0&autoplay=1&mute=1&modestbranding=1&rel=0&showinfo=0&showsearch=0&disablekb=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; rel;" allowfullscreen></iframe>'; 135 iframelink = 'http://service.koreatimes.com/lib/banner_action.php?&banner_id=T1&banner_ad_id=4221911&banner_url=https://hoy.kr/02I4D'; 136 } else { 137 iframeaddress = '<iframe width="940" height="500" src="https://www.youtube.com/embed/dSt0ZolXT6Q?rel=0&autoplay=1&mute=1&modestbranding=1&rel=0&showinfo=0&showsearch=0&disablekb=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; rel;" allowfullscreen></iframe>'; 138 iframelink = 'http://service.koreatimes.com/lib/banner_action.php?&banner_id=T1&banner_ad_id=4221933&banner_url=https://hoy.kr/lxV2c'; 139 } 140 141 html = "<div id='mp_video' >"+iframeaddress 142 +"<a class='mp_video_link' style='position:absolute; top:0; left:14px; width:940px; height:462px;' href='"+iframelink+"' target='koreatimes'></a>"; 143 144 145 html += '<div id="mp_btn_close"><a href="javascript:closeMP('+values+');"><img src="http://mirrorimg.koreatimes.com/2015/images/common/close16.png"></a></div>'; 146 147 $("#mp_frame").css("height", "500px"); 148 //$("#mp_box").css("clip", "rect(0px, 940px, 500px, 0px)"); 149 //$(".mp_video_link").css({'position':'absolute', 'top':0, 'left':0, 'width':'940px', 'height':'500px'}); 150 $("#mp_box").html(html); 151 $("#mp_btn_open").hide(); 152 $("#mp_btn_close").show(); 153 $("#mp_btn_detail").show(); 154 155 $("#home_popup_frame").css("top", "1015px"); 156 //$('#mp_video').css("background-image", "url(http://img.koreatimes.com/banner/files/m_popup/pcb_background.jpg)"); 157
158 setCookie('kt_kia', 'close', 3); 159} 160 161function close_popup(values) { 162 163 var bannerlink; 164 var bannerimg = 'http://img.koreatimes.com/banner/files/m_l1/KIA_april_Telluride_KT_970x250.jpg'; 165 166 if(values==1) { 167 bannerlink = 'http://service.koreatimes.com/lib/banner_action.php?&banner_id=T1&banner_ad_id=4221922&banner_url=https://hoy.kr/6Ocvy'; 168 } else { 169 bannerlink = 'http://service.koreatimes.com/lib/banner_action.php?&banner_id=T1&banner_ad_id=4221944&banner_url=https://hoy.kr/PzwjM'; 170 } 171 172 html = '<a href="'+bannerlink+'" target="koreatimes"><img src="'+bannerimg+'" alt="Kia"></a>'; 173 html += '<div id="mp_btn_open"><a href="javascript:openMP('+values+');"><img src="http://mirrorimg.koreatimes.com/2015/images/common/open16.png"></a></div>'; 174 175 //resetDuraMP(); 176 177 $("#mp_frame").css("height", "250px"); 178 //$("#mp_box").css("clip", "rect(0px, 940px, 100px, 0px)"); 179 180 //$("#mp_box .mp_video_link").css({'position':'relative', 'top':0, 'left':0, 'width':'0px', 'height':'0px'}); 181 $("#mp_box").html(html); 182 $("#mp_btn_open").show(); 183 $("#mp_btn_close").hide(); 184 $("#mp_btn_detail").hide(); 185 186 $("#home_popup_frame").css("top", "500px"); 187 188} 189 190$(document).ready(function(){ 191 192 if (getCookie('kt_kia') == null || getCookie('kt_kia') == "") { 193 194 if($("#mp_box").length) { 195 var value = $("#mp_box").data('value'); 196 openMP(value); 197 } 198 199 } 200});*/ 201 202$(document).ready(function(){ // íì ìì ¯ê´ê³ 203 $(".conRb, .conR").on('click','.flyer',function(e){ 204 205 e.preventDefault(); 206 var src = $("a", this).attr("href"); 207 208 209 $('.popup_overlay .pPop img').attr("src", src); 210 $('.popup_overlay .pPop').show(); 211 $('body').css({"overflow":"hidden"}); 212 213 }); 214 215 216 $(".popup_overlay").on('click','.btn_close',function(){ 217 218 $('.popup_overlay .pPop').hide(); 219 $('body').css({"overflow":"auto"}); 220 221 }); 222}); 223 224/* 225 $(document).ready(function(){ //íì ì ë©´ ê´ê³ 226 227 $popup_scroll = true; 228 229 $(window).scroll(function(){ 230 var hei = $(document).scrollTop(); 231 if(hei > 600 && $popup_scroll){ 232 233 if(getCookie("kt_pacific") != "close"){ 234 //$video = '<iframe width="100%" height="500" src="https://www.youtube.com/embed/R152wBEaT3I?autoplay=1" frameborder="0" allow="autoplay; encrypted-media; gyroscope;" allowfullscreen></iframe>'; 235 $video = "<iframe width='100%' height='500' src='https://www.youtube.com/embed/7Vr7yIfpxA4?rel=0&&autoplay=1&mute=1' frameborder='0' allow='autoplay; encrypted-media; gyroscope; picture-in-picture;' allowfullscreen></iframe>"; 236 237 $('.popup_display .pPop').fadeIn(1000); 238 $('.popup_display .popup_video').html($video); 239 $('body').css({"overflow":"auto"}); 240 $popup_scroll = false; 241 } 242 } 243 244 $(".popup_display").on('click','.btn_close',function(){ 245 246 setCookie('kt_pacific','close', 3); 247 248 $('.popup_display .pPop_li').html(""); 249 $('.popup_display .pPop').fadeOut(); 250 $('body').css({"overflow":"auto"}); 251 252 }); 253 254 }); 255 256});*/ 257 258//openMP(); 259//var myVideo = iframe.getElementById('myVideo'); 260//myVideo.mute(); 261/*************** //10ì´ê° í° ë°°ë 먼ì ë³´ì´ê¸° ***************/ 262 263/*************** ê¹ì¤ì 기 ***************/ 264var slideIndex = 1; 265$(document).ready(function(){ 266 showSlides(slideIndex); 267}); 268 269function plusSlides(n) { 270 showSlides(slideIndex += n); 271} 272 273function currentSlide(n) { 274 showSlides(slideIndex = n); 275 276 if($('iframe')[0]){ 277 $("iframe").each(function($i, $k) { 278 if($i == (n-1)) return true; 279 $(this).attr('src', $(this).attr('src')); 280 }); 281 282 } 283 284} 285 286function showSlides(n) { 287 var i; 288 var slides = document.getElementsByClassName("mySlides"); 289 290 var dots = document.getElementsByClassName("dot"); 291 292 if (n > slides.length) {slideIndex = 1} 293 if (n < 1) {slideIndex = slides.length} 294 for (i = 0; i < slides.length; i++) { 295 slides[i].style.display = "none"; 296 } 297 for (i = 0; i < dots.length; i++) { 298 dots[i].className = dots[i].className.replace(" active", ""); 299 } 300 301 if(slideIndex == null || slideIndex == undefined) { 302 slideIndex = 1; 303 } 304 305 if(slides.length>0) { 306 slides[slideIndex-1].style.display = "block"; 307 } 308 if(dots.length>0) { 309 dots[slideIndex-1].className += " active"; 310 } 311} 312 313 314/*************** ê¹ì¤ì 기 ***************/ 315 316 317 318/*************** ë´ì¤ì¤í ë ***************/ 319//<![CDATA[ 320 321$(window).load(function(){ 322 323$(document).ready(function() { 324 325 // 기존 cssìì íë¡í ë°°ë ìì¹(top)ê°ì ê°ì ¸ì ì ì¥íë¤. 326 var floatPosition = parseInt($("#floatNaver").css('top'));
327 // 250px ì´ë°ìì¼ë¡ ê°ì ¸ì¤ë¯ë¡ ì¬ê¸°ì ì«ìë§ ê°ì ¸ì¨ë¤. parseInt( ê° ); 328 329 $(window).scroll(function() { 330 // íì¬ ì¤í¬ë¡¤ ìì¹ë¥¼ ê°ì ¸ì¨ë¤. 331 var scrollTop = $(window).scrollTop(); 332 var newPosition = scrollTop + floatPosition + "px"; 333 334 /* ì ëë©ì´ì ìì´ ë°ë¡ ë°ë¼ê° 335 $("#floatMenu").css('top', newPosition); 336 */ 337 338 $("#floatNaver").stop().animate({ 339 "top" : newPosition 340 }, 500); 341 342 }).scroll(); 343 344}); 345}); 346 347 //]]> 348 349/*************** ë´ì¤ì¤í ë ***************/
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.