PageSourceSearch

https://kessen-movie.com/js/script.js?Ver=1.2.3

js kessen-movie.com collected 2026-10-02 19:10:12 UTC 2,703 bytes, 118 lines download raw bytes

1// Smooth Scrolling
2$('a[href^="#"]:not(.inline)').on('click', function() {
3  var speed = 500;
4  var href = $(this).attr("href");
5  var target = $(this.hash);
6  var windowWidth = $(window).width();
7  var windowSm = 768;
8  if (!target.length) return;
9  var targetY = target.offset().top- 50;
10  if (windowWidth <= windowSm) {
11    var position = target.offset().top;
12  } else {
13    var position = target.offset().top -50;
14  }
15  $('html,body').animate({scrollTop: position}, speed, 'swing');
16  return false;
17});
18
19// btns (top + bottom)
20$('.top_btn').click(function () {
21$('body, html').animate({ scrollTop: 0 }, 500);
22return false;
23});
24$(".bottom_btn").click(function(){
25$('html, body').animate({ scrollTop: $(document).height()
26},500);
27return false;
28});
29
30//
31$(".gnav_btn, .menu_link-sp").on('click', function(){
32  $(".gnav").toggleClass('active');
33  $(".gnav_btn").toggleClass('active');
34});
35
36
37//ImageLoaded
38// $('#container').imagesLoaded( function() {
39//   // images have loaded
40// });
41// // options
42// $('#container').imagesLoaded( {
43//   // options...
44//   },
45//   function() {
46//     // images have loaded
47//   }
48// );
49
50//colorbox
51$(function() {
52  $(".inline").colorbox({
53    inline:true,
54    // innerWidth: "80%",
55    maxWidth:"90%",
56    maxHeight:"90%",
57    opacity: 0.7,
58    fixed: true
59  });
60});
61
62// Youtube API
63$('.tab2, .tab2.ready').on('click', function(){
64  $('#youtube2').fadeIn(1);
65  $('#youtube1').fadeOut(1);
66  $('.tab2').removeClass('ready');
67  $('.tab1').removeClass('active');
68  $('.tab2').addClass('active');
69  $('.tab1').addClass('ready');
70  ytPlayer2.playVideo();
71  ytPlayer.stopVideo();
72});
73  
74$('.tab1, .tab1.ready').on('click', function(){
75  $('#youtube1').fadeIn(1);
76  $('#youtube2').fadeOut(1);
77  $('.tab1').removeClass('ready');
78  $('.tab2').removeClass('active');
79  $('.tab1').addClass('active');
80  $('.tab2').addClass('ready');
81  ytPlayer.playVideo();
82  ytPlayer2.stopVideo();
83});
84
85  var tag = document.createElement('script');
86  tag.src = "https://www.youtube.com/iframe_api";
87  var firstScriptTag = document.getElementsByTagName('script')[0];
88  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
89  
90  function onYouTubeIframeAPIReady() {
91    // var ytPlayer;
92    ytPlayer = new YT.Player(
93      'youtube1', 
94      {
95        width: 640,
96        height: 390, 
97        videoId: 'VIS6Rpref0M',
98        playerVars: {
99          playsinline: 1,
100          controls: 1,
101          }
102      }
103    );
104    // var ytPlayer2;
105    ytPlayer2 = new YT.Player(
106      'youtube2', 
107      {
108        width: 640,
109        height: 390, 
110        videoId: 'aqoq0Bf3JUk',
111        playerVars: {
112          playsinline: 1,
113          controls: 1,
114          }
115      }
116    );
117  }
118  // END YoutubeAPI

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.