PageSourceSearch

https://www.tsudora.co.jp/js/common.js

js tsudora.co.jp collected 2026-10-06 16:49:30 UTC 2,420 bytes, 86 lines download raw bytes

1
2// ‰æ‘œØ‚è‘Ö‚¦
3function MM_findObj(n, d) { //v4.01
4  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
5    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
6  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
7  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
8  if(!x && d.getElementById) x=d.getElementById(n); return x;
9}
10function MM_swapImage() { //v3.0
11  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
12   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
13}
14function MM_swapImgRestore() { //v3.0
15  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
16}
17
18function MM_preloadImages() { //v3.0
19  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
20    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
21    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
22}
23
24
25
26// ƒy[ƒW“à‚̃XƒNƒ[ƒ‹
27$(function() {
28  // ƒXƒNƒ[ƒ‹‚̃IƒtƒZƒbƒg’l
29  var offsetY = -10;
30  // ƒXƒNƒ[ƒ‹‚É‚©‚©‚鎞ŠÔ
31  var time = 500;
32  // ƒy[ƒW“àƒŠƒ“ƒN‚Ì‚Ý‚ðŽæ“¾
33  $('a[href^=#]').click(function() {
34    var target = $(this.hash);
35    if (!target.length) return ;
36    var targetY = target.offset().top+offsetY;
37    $('html,body').animate({scrollTop: targetY}, time, 'swing');
38    window.history.pushState(null, null, this.hash);
39    return false;
40  });
41});
42
43
44
45// ƒy[ƒWƒgƒbƒv‚ւ̃XƒNƒ[ƒ‹
46$(function() {
47    var topBtn = $('.page-top');    
48    topBtn.hide();
49    //ƒXƒNƒ[ƒ‹‚ª100‚É’B‚µ‚½‚çƒ{ƒ^ƒ“•\ަ
50    $(window).scroll(function () {
51        if ($(this).scrollTop() > 100) {
52            topBtn.fadeIn();
53        } else {
54            topBtn.fadeOut();
55        }
56    });
57    //ƒXƒNƒ[ƒ‹‚µ‚ăgƒbƒv
58    topBtn.click(function () {
59        $('body,html').animate({
60            scrollTop: 0
61        }, 500);
62        return false;
63    });
64});
65
66
67
68// ƒiƒrƒQ[ƒVƒ‡ƒ“
69jQuery(document).ready(function(){
70
71  jQuery('.hamburger').on('click', function(){
72   jQuery('.navigation').animate({width: 'toggle'}, 400);
73    jQuery(this).toggleClass('active');
74  });
75
76});
77
78
79
80//‘±‚«‚ð“Ç‚Þ
81$(function(){
82	$(".read-more-details").hide();
83	$(".read-more").on("click", function () {
84		$(this).nextAll('.read-more-details:first').slideToggle(1000);
85	}).css("cursor","pointer");
86});

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.