1var program_list, 2 program_index, 3 program_pre_index, 4 program_interval = null, 5 isWorking = false; 6 7$(function(){ 8 9 10 var popzoneSwiper = new Swiper('#popup_box', { 11 freeMode: false, 12 slidesPerView: 1, 13 speed: 1500, 14 observer: true, 15 observeParents: true, 16 centeredSlidesBounds: true, 17 updateOnWindowResize: true, 18 autoplay: { 19 delay: 3000, 20 }, 21 pagination: { 22 el: '#popzone_total', 23 type: 'custom', 24 renderCustom: function (swiper, current, total) { 25 if(total == 0){ 26 return '0<span>/'+total+'</span>'; 27 }else{ 28 return current+'<span>/'+total+'</span>'; 29 } 30 } 31 }, 32 observer : true, 33 loop: true, 34 navigation: { 35 nextEl: '#popzone_next', 36 prevEl: '#popzone_prev', 37 }, 38 on: { 39 init: function() { 40 var idx = this.activeIndex-1; 41 }, 42 slideChange: function() { 43 //í¹ì´ ì¬í ì¸ë±ì¤ê° 0ì´ ìë 1ë¶í° ì«ì를 ì¼ë¤ 44 var idx = this.activeIndex-1; 45 } 46 }, 47 48 49 }); 50 $("#popzone_stop").click(function(){ 51 if($(this).hasClass('play') !== false){ 52 $(this).removeClass('play'); 53 popzoneSwiper.autoplay.start(); 54 } 55 else{ 56 $(this).addClass('play'); 57 popzoneSwiper.autoplay.stop(); 58 } 59 return false; 60 }); 61 62 63 64 65 66 var popzone3 = new Swiper('#sc4-popupzone', { 67 freeMode: false, 68 speed: 1500, 69 observer: true, 70 observeParents: true, 71 centeredSlidesBounds: true, 72 centeredSlides: true, 73 updateOnWindowResize: true, 74// autoplay: false, 75 autoplay: { 76 delay: 3000, 77 }, 78 slidesPerView: 1, 79 breakpoints: { //ë°ìí ì¡°ê±´ ìì± 80 600: { 81 slidesPerView: 1, 82 }, 83 1200: { 84 slidesPerView: 1, 85 }, 86 }, 87 pagination: { 88 el: '.popzone_total3', 89 type: 'custom', 90 renderCustom: function (swiper, current, total) { 91 return '<span>'+current+'</span> / '+total; 92 93 94 } 95 }, 96 observer : true, 97// loop: true, 98 loop: false, 99 navigation: { 100 nextEl: '#popzone3_next', 101 prevEl: '#popzone3_prev', 102 }, 103 on: { 104 init: function() { 105 var idx = this.activeIndex-1; 106 }, 107 slideChange: function() { 108 //í¹ì´ ì¬í ì¸ë±ì¤ê° 0ì´ ìë 1ë¶í° ì«ì를 ì¼ë¤ 109 var idx = this.activeIndex-1; 110 popzone3.pagination.update(); 111 } 112 }, 113 }); 114 115 $("#popzone_btn_playstop3").click(function(){ 116 if($(this).hasClass('play') !== false){ 117 $(this).removeClass('play'); 118 popzone3.autoplay.start(); 119 } 120 else{ 121 $(this).addClass('play'); 122 popzone3.autoplay.stop(); 123 } 124 return false; 125 }); 126 127 128 129 130 var swiper_story = new Swiper('#swiper_story', { 131 spaceBetween: 20, 132 slidesPerView: 4, 133 autoplay: { 134 delay: 3000, 135 }, 136 breakpoints: { //ë°ìí ì¡°ê±´ ìì± 137 640: { //640 ì´ìì¼ ê²½ì° 138 slidesPerView: 1, //ë ì´ìì 2ì´ 139 }, 140 768: { 141 slidesPerView: 2, 142 }, 143 1024: { 144 slidesPerView: 2, 145 }, 146 1280: { 147 slidesPerView: 3, 148 }, 149 }, 150 scrollbar: { el: '.swiper-scrollbar' }, 151 history: 'slide', 152 }); 153 154 155 156 var student_list = new Swiper("#student_wrap",{//ì¬ê¸°ì ulì div ìì´ëê° ì ë ¥ 157 speed:1000,//ìë 158 slidesPerView: 'auto', 159 autoplay: { 160 //ìëì¼ë¡ ëìê° ê² í ì§ 161 delay: 2500, //ì íìë 162 disableOnInteraction: false //ì´ì ë¤ì ë²í¼ ë른ë¤ìì ê³ì ìë íë ì´ ë©ì¶¤ì¬ë¶ 163 }, 164 165 freeMode: false, 166 observeParents: false,
167 centeredSlidesBounds: false, 168 updateOnWindowResize: true, 169 observer : false, 170 loop: true, 171 navigation: { 172 nextEl: '#student_next',//ë¤ì ë²í¼ id ê° 173 prevEl: '#student_prev',//ì´ì ë²í¼ id ê° 174 }, 175 pagination: { 176 el: '#student_pagination',//íì´ì§ ë²í¸ í기(htmlì ê·¸ëë¡ ì ë ¥) 177 type: 'custom', 178 clickable: true, 179 renderCustom: function (swiper, current, total) { 180 return '<span class="now">'+current+'</span> / <span class="past">'+total+'</span>'; 181 } 182 }, 183 breakpoints: { 184 580: { 185 centeredSlides: true, 186 }, 187 }, 188 on: { 189 init: function () { 190 var swipe = this; 191 /*swipe.update(true)*/ 192 }, 193 transitionStart:function(){ 194 $("#student_wrap .swiper-slide-active").addClass('active') 195 $("#student_wrap .swiper-slide-active").removeClass('swiper-slide-active') 196 $("#student_wrap .active").addClass('swiper-slide-active') 197 $("#student_wrap .swiper-slide-active").removeClass('active') 198 }, 199 slideChangeTransitionStart:function(){ 200 $("#student_wrap .swiper-slide-active").addClass('active') 201 $("#student_wrap .swiper-slide-active").removeClass('swiper-slide-active') 202 $("#student_wrap .active").addClass('swiper-slide-active') 203 $("#student_wrap .swiper-slide-active").removeClass('active') 204 }, 205 slideChangeTransitionEnd:function(){ 206 var swipe = this; 207 /*swipe.update(true)*/ 208 } 209 }, 210 }); 211 212 //ì ì§ ë²í¼ í´ë¦ ì´ë²¤í¸ 213 $("#student_stop").click(function(e){ 214 e.preventDefault();//ì´ë²¤í¸ ì í ì¤ì§ 215 216 //btn_play ì´ë¼ë í´ëì¤ê° ì¡´ì¬ íëì§ ì²´í¬ 217 //btn_play->íë ì´ë²í¼(ë르면 ìì) btn_stop-> ì ì§ë²í¼(ë르면 ì ì§) 218 if($(this).hasClass('btn_play') !== false){ 219 //ì¡´ì¬ íëê²½ì°(ì¬ë¼ì´ë를 ììí´ì¼ íëê±°) 220 $(this).removeClass('btn_play');//í´ë¹í´ëì¤ ìì 221 $(this).addClass('btn_stop');//í´ë¹ í´ëì¤ ì¶ê° 222 student_list.autoplay.start();//ë¹ì£¼ì¼ ìëì¬ì ìì 223 } 224 else{ 225 //ì¡´ì¬íì§ ìëê²½ì° 226 $(this).removeClass('btn_stop');//í´ë¹ í´ëì¤ ìì 227 $(this).addClass('btn_play');//í´ë¹ í´ëì¤ ì¶ê° 228 student_list.autoplay.stop();//ë¹ì£¼ì¼ ìëì¬ì ì ì§ 229 } 230 return false; 231 }); 232 233 234 program_index = 0; 235 program_interval = null 236 program_list = $("#program_list > .program_wrap > .swiper-slide"); 237 program_list.not(":eq(0)").hide(); 238 //program_start(); 239 program_pagination() 240 241 //ì ì§ ë²í¼ í´ë¦ ì´ë²¤í¸ 242 $("#program_stop").click(function(e){ 243 e.preventDefault();//ì´ë²¤í¸ ì í ì¤ì§ 244 //btn_play ì´ë¼ë í´ëì¤ê° ì¡´ì¬ íëì§ ì²´í¬ 245 //btn_play->íë ì´ë²í¼(ë르면 ìì) btn_stop-> ì ì§ë²í¼(ë르면 ì ì§) 246 if($(this).hasClass('btn_play') !== false){ 247 //ì¡´ì¬ íëê²½ì°(ì¬ë¼ì´ë를 ììí´ì¼ íëê±°) 248 $(this).removeClass('btn_play');//í´ë¹í´ëì¤ ìì 249 $(this).addClass('btn_stop');//í´ë¹ í´ëì¤ ì¶ê° 250 program_start() 251 } 252 else{ 253 //ì¡´ì¬íì§ ìëê²½ì° 254 $(this).removeClass('btn_stop');//í´ë¹ í´ëì¤ ìì 255 $(this).addClass('btn_play');//í´ë¹ í´ëì¤ ì¶ê° 256 program_stop() 257 } 258 return false; 259 }); 260 261 //ì´ì ë²í¼ í´ë¦ ì´ë²¤í¸ 262 $("#program_prev").click(function(e){ 263 e.preventDefault();//ì´ë²¤í¸ ì í ì¤ì§ 264 program_stop() 265 program_pre_index = program_index; 266 program_index = program_index-1; 267 if(program_list.length <= program_index)program_index = 0; 268 if(0 > program_index) program_index = program_list.length-1; 269 program_fade() 270 /*if($(this).hasClass('btn_play') === false){ 271 program_start() 272 }*/ 273 274 });
275 276 //ë¤ì ë²í¼ í´ë¦ ì´ë²¤í¸ 277 $("#program_next").click(function(e){ 278 e.preventDefault();//ì´ë²¤í¸ ì í ì¤ì§ 279 program_stop() 280 program_pre_index = program_index; 281 program_index = program_index+1; 282 if(program_list.length <= program_index)program_index = 0; 283 if(0 > program_index) program_index = program_list.length-1; 284 program_fade() 285 /*if($(this).hasClass('btn_play') === false){ 286 program_start() 287 }*/ 288 289 }); 290 291 292}); 293 294function program_start() 295{ 296 program_interval = setInterval(function(){ 297 298 program_pre_index = program_index; 299 program_index = program_index+1; 300 if(program_list.length <= program_index)program_index = 0; 301 if(0 > program_index) program_index = program_list.length-1; 302 303 program_fade() 304 },3000) 305} 306 307function program_stop() 308{ 309 if(program_interval !== null){ 310 clearInterval(program_interval); 311 program_interval = null; 312 } 313} 314 315function program_pagination() 316{ 317 var total = program_list.length; 318 var current = program_index+1; 319 var pagination = '<span class="now">'+current+'</span> / <span class="past">'+total+'</span>'; 320 $("#program_pagination").html(pagination); 321} 322 323function program_fade() 324{ 325 if(isWorking === true){ 326 return false; 327 } 328 isWorking = true; 329 program_pagination() 330 program_list.eq(program_pre_index).stop().fadeOut() 331 program_list.eq(program_index).stop().fadeIn(function(){ 332 isWorking = false; 333 }) 334} 335 336 337 338function movie_play(idx) { 339 console.log(idx); 340 var myVideo = document.getElementById("a_video"+idx); 341 if (myVideo.paused) { 342 myVideo.play(); 343 if($('.btn_play').hasClass('stop')){ 344 }else{ 345 $('.btn_play').trigger('click'); 346 } 347 } else { 348 myVideo.pause(); 349 } 350}
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.