PageSourceSearch

https://sumaho-susume.jp/wp-content/themes/the-thor-child/tsuika.js?ver=1776822248

js sumaho-susume.jp collected 2026-10-09 21:57:45 UTC 2,339 bytes, 70 lines download raw bytes

1// <img>が<a>の子要素のときborderをキャンセルする ここから
2document.querySelectorAll('a img').forEach(function(img) {
3    var parentAnchor = img.parentElement;
4    if (parentAnchor && parentAnchor.tagName === 'A') {
5        parentAnchor.style.border = 'none';
6    }
7});
8// <img>が<a>の子要素のときborderをキャンセルする ここまで
9/* スマホフローティングバナーここから */
10jQuery(function(){
11        var w = jQuery(window).width();
12        var x = 9999;
13        if (w < x) {
14          jQuery(function(){
15            var top_merumaga = jQuery('#sp-tokusetsu-bottom')
16            var topback = jQuery('#topback')
17            var linebanner = jQuery('#linebanner')
18            jQuery(window).scroll(function () {
19              if(jQuery(window).scrollTop() > 500){
20                top_merumaga.addClass('sp-display');
21                topback.addClass('sp-display');
22                linebanner.addClass('sp-display');
23              };
24            });
25          });
26        };
27});
28/* スマホフローティングバナーここまで */
29function btnclic(){
30var catbox = document.getElementById("category-search");
31if(catbox){
32if(catbox.className == "open"){
33catbox.className = "close"
34}
35else{
36catbox.className = "open"
37}}}
38function subout(){
39var appbox = document.getElementById("suboutline");
40if (appbox && appbox.innerHTML.length<1){
41var mainarea = document.getElementsByClassName("content")[0];
42var h2array = mainarea.getElementsByTagName("h2");
43var thish2id;
44var thish2str;
45var newoutlineh2;
46for(i=0;i<h2array.length;i++){
47	thish2id = h2array[i].id;
48	thish2id = "#" + thish2id;
49	thish2str = h2array[i].innerHTML;
50	newoutlineh2 = document.createElement("a");
51	newoutlineh2.href = thish2id;
52	newoutlineh2.innerHTML = thish2str;
53	newoutlineh2.addEventListener("click",btnclic);
54	appbox.appendChild(newoutlineh2);
55}}}
56var btn = document.getElementById("open-close");
57if(btn){
58btn.addEventListener("click",btnclic);
59btn.addEventListener("click",subout);
60}
61/* パカパカ */
62function openfunc(){
63var openBox = this.previousElementSibling;
64openBox.style.setProperty('height', 'auto', 'important');
65this.style.display = "none";
66}
67var openButton = document.getElementsByClassName("openbutton");
68for(var i=0; i<openButton.length; i++){
69openButton[i].addEventListener('click',openfunc,false);
70}

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.