PageSourceSearch

https://smartcity-partners.osaka/wp-content/themes/habakiri-wps1.0.7/js/master.js

js smartcity-partners.osaka collected 2026-10-02 17:49:44 UTC 4,817 bytes, 178 lines download raw bytes

1jQuery(document).ready(function() {
2  var pagetop = jQuery('.pagetop');
3    jQuery(window).scroll(function () {
4       if (jQuery(this).scrollTop() > 100) {
5            pagetop.fadeIn();
6       } else {
7            pagetop.fadeOut();
8            }
9       });
10       pagetop.click(function () {
11           jQuery('body, html').animate({ scrollTop: 0 }, 500);
12              return false;
13   });
14});
15
16jQuery(function(){
17	jQuery("img.ChangePhoto").click(function(){
18		var ImgSrc = jQuery(this).attr("src");
19		var ImgAlt = jQuery(this).attr("alt");
20		jQuery("img#MainPhoto").attr({src:ImgSrc,alt:ImgAlt});
21		jQuery("img#MainPhoto").hide();
22		jQuery("img#MainPhoto").fadeIn("");
23		return false;
24	});
25});
26
27
28if ( jQuery('.mw_wp_form .error')[0] ) {
29  var targets = jQuery('.mw_wp_form .error');
30
31  targets.each(function(i){
32    var position = jQuery(this).parent().offset().top;
33
34    jQuery('body,html').delay(200).animate({scrollTop:position}, 600, 'swing');
35    return false;
36  });
37}
38
39
40  
41   if(navigator.userAgent.match(/MSIE 10/i) || navigator.userAgent.match(/Trident\/7\./) || navigator.userAgent.match(/Edge\/12\./)) {
42jQuery('body').on("mousewheel", function () {
43 event.preventDefault();
44 var wd = event.wheelDelta;
45 var csp = window.pageYOffset;
46 window.scrollTo(0, csp - wd);
47 });
48 }
49
50
51jQuery(window).on('load', function() {
52  var headerHeight = 0;
53  var url = jQuery(location).attr('href');
54  if(url.indexOf("?id=") != -1){
55    var id = url.split("?id=");
56    var $target = jQuery('#' + id[id.length - 1]);
57    if($target.length){
58      var pos = $target.offset().top-headerHeight;
59      jQuery("html, body").animate({scrollTop:pos}, 600);
60    }
61    }
62  });
63
64
65
66jQuery(document).ready(function($){
67$(function() {
68  var slide_main = $(".slide").slick({
69  pauseOnFocus: true,
70  pauseOnHover: true,
71          infinite: true,
72    slidesToShow: 1,
73    arrows: false,
74    asNavFor: ".slide-navigation"
75  });
76  var slide_sub = $(".slide-navigation").slick({
77    infinite: true,
78	   arrows: false,
79	  draggable:false,
80	  swipe:false,
81    slidesToShow: 4,
82    slidesToScroll: 1,
83    autoplay: true,
84    autoplaySpeed: 6000,
85    speed: 400,
86    asNavFor: ".slide",
87    focusOnSelect: true,
88    vertical: true,
89    verticalSwiping: true,
90    responsive: [
91      {
92        breakpoint: 768,
93        settings: {
94 draggable:true,
95	  swipe:true,
96          vertical: false,
97          verticalSwiping: false,
98          slidesToShow: 2,
99			 centerMode: true,
100          adaptiveHeight: true
101        }
102      }
103    ]
104  });
105  var open_window_Width = $(window).width();
106  $(window).resize(function() {
107    var width = $(window).width();
108    if (open_window_Width != width) {
109      slide_main.slick("setPosition");
110      slide_sub.slick("setPosition");
111    }
112  });
113});
114	});
115
116
117
118jQuery(function(){
119// 設定
120
121var $interval = 4000; // 切り替わりの間隔(ミリ秒)
122var $fade_speed = 2000; // フェード処理の早さ(ミリ秒)
123jQuery("#slide ul li").css({"position":"relative","overflow":"hidden"});
124jQuery("#slide ul li").hide().css({"position":"absolute","top":0,"left":0});
125jQuery("#slide ul li:first").addClass("active").show();
126setInterval(function(){
127var $active = jQuery("#slide ul li.active");
128var $next = $active.next("li").length?$active.next("li"):jQuery("#slide ul li:first");
129$active.fadeOut($fade_speed).removeClass("active");
130$next.fadeIn($fade_speed).addClass("active");
131},$interval);
132});
133
134jQuery(function() {
135    jQuery('.center-item').slick({
136		pauseOnFocus:false,
137          infinite: true,
138		lazyLoad: 'ondemand',// or 'progressive'
139          slidesToShow: 1,
140          centerMode: true, //要素を中央寄せ
141          autoplay:true, //自動再生
142		dots:true,
143  centerPadding:'0%', //両サイドの見えている部分のサイズ
144     });
145});
146
147
148jQuery(function() {
149  jQuery('.m-container-slider').slick({
150      autoplay: true,
151	  pauseOnFocus:false,
152          infinite: true,
153      autoplaySpeed: 10000,
154    slidesToScroll: 1,
155      arrows: true,
156      dots: true,
157      centerMode: true,
158      slidesToShow: 1,
159	  centerPadding:'0%', //両サイドの見えている部分のサイズ
160    });
161});
162
163
164jQuery('.fileclick').click(function(){
165        jQuery('.load').addClass('active');
166    });
167
168//アコーディオンをクリックした時の動作
169jQuery('.listtitle').on('click', function() {//タイトル要素をクリックしたら
170  var findElm = jQuery(this).next(".listbox");//直後のアコーディオンを行うエリアを取得し
171  jQuery(findElm).slideToggle();//アコーディオンの上下動作
172    
173  if(jQuery(this).hasClass('listclose')){//タイトル要素にクラス名closeがあれば
174    jQuery(this).removeClass('listclose');//クラス名を除去し
175  }else{//それ以外は
176    jQuery(this).addClass('listclose');//クラス名closeを付与
177  }
178});

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.