<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">jQuery(function ($) {
    var pagetop = $('#page_topper');
    pagetop.hide();
    $(window).scroll(function () {
        if ($(this).scrollTop() &gt; 1200) {  
            pagetop.fadeIn();
        } else {
            pagetop.fadeOut();
        }
    });
    pagetop.click(function () {
        $('body,html').animate({
            scrollTop: 0
        }, 500); 
        return false;
    });

    // DOM縺瑚ｪｭ縺ｿ邨ゅｏ縺｣縺溘ｉ螳溯｡�
    $(document).ready(function() {
        // 繝壹�繧ｸ繝薙Η繝ｼ繧ｫ繧ｦ繝ｳ繝�
        var post_ID = $('div.cardBody.contents').data('post-id');
        var post_type = $('div.cardBody.contents').data('post-type');
        if (post_type == "post") {
            $.ajax({
                type: 'POST',
                url: '/wp-admin/admin-ajax.php',
                cache: false,
                data: {
                    action: 'set_page_view_count',
                    post_id: post_ID,
                    post_type: post_type
                }
            });
        }

        // 繧ｹ繝槭�蜷代￠蠎�相縺ｯ蜑企勁
        $('div.ai-viewport-2').remove();
        // 蠎�相縺瑚ｦ句�縺励�髢薙↓縺ゅｋ蝣ｴ蜷医�荳翫↓遘ｻ蜍輔＆縺帙ｋ
        $('.ai-viewport-1').each(function (index, element) {
            if ($(this).prev().is('h2')) {
                $(this).insertBefore($(this).prev());
            } else if ($(this).prev().is('h3')) {
                if ($(this).prev().prev().is('h2')) {
                    $(this).insertBefore($(this).prev().prev());
                } else {
                    $(this).insertBefore($(this).prev());
                }
            }
        });
        $('.ai-viewport-1').each(function (index, element) {
            // 邵ｦ縺ｫ騾｣邯壹☆繧句ｺ�相縺ｯ蜑企勁
            if ($(this).next().hasClass('ai-viewport-1')) {
                $(this).next().addClass('delete_ad');
            }
            // 蠎�相菴咲ｽｮ隱ｿ謨ｴ
            if ($(this).parents('.wp-block-media-text')) {
                $(this).insertBefore($(this).parents('.wp-block-media-text'));
            }
            if ($(this).parents('.wp-block-columns')) {
                $(this).insertBefore($(this).parents('.wp-block-columns'));
            }
        });
        $('.delete_ad').remove();

        // 繝��繝悶Ν縺ｮ讓ｪ繧ｹ繧ｯ繝ｭ繝ｼ繝ｫ蟇ｾ蠢�
        var center_width = $('#mainCont .center .contents').width();
        $('table').each(function (index, element) {
            // 繝��繝悶Ν蟷�メ繧ｧ繝�け縲∬ｶ�∴縺ｦ縺�◆繧嬰iv縺ｧ蝗ｲ繧�域ｨｪ繧ｹ繧ｯ繝ｭ繝ｼ繝ｫ陦ｨ遉ｺ逕ｨ��
            if ($(this).width() &gt; center_width) {
                $(this).wrap('&lt;div&gt;');
                $(this).parent().addClass('table_wrap');
                $(this).parent().append('&lt;div class="table_scroll_hint"&gt;' +
                    '&lt;p&gt;讓ｪ繧ｹ繧ｯ繝ｭ繝ｼ繝ｫ縺ｧ縺阪∪縺�&lt;/p&gt;' +
                    '&lt;img src="https://' + window.location.hostname + '/wp-content/themes/wiki_theme/images/icon/swipe_icon.png"&gt;' +
                    '&lt;/div&gt;');
            }
        });
        // 繧ｹ繧ｯ繝ｭ繝ｼ繝ｫ蠕後∵ｨｪ繧ｹ繧ｯ繝ｭ繝ｼ繝ｫ繝偵Φ繝磯撼陦ｨ遉ｺ縺ｫ
        $('.table_wrap').scroll(function () {
            $(this).find('div.table_scroll_hint').fadeOut();
        });
    });


    $('.tab').on('click',function(){
        const group = $(this).parents('.tabBody'); 
        group.find('.is-active').removeClass('is-active');
        $(this).addClass('is-active');
        group.find('.is-show').removeClass('is-show');
        
        const index = $(this).index();
        
        group.find(".panel").eq(index).addClass('is-show');
    });

    // 謚慕･ｨ
	$('div.wp-polls div.listVote input[type="button"]').hover(function(){
        $('div.wp-polls div.listVote input[name=poll_' + $(this).attr('class') + ']').val([$(this).attr('name')]);
    });

	// 霑比ｿ｡繝懊ち繝ｳ 繧ｯ繝ｪ繝�け譎�
	$('.comment-reply-link').click(function () {
        $('#comment').val('&gt;&gt;' + $(this).data('comment-no') + '\n');
        $('#comment').focus();
        $("html,body").animate({scrollBottom:$('#comment').offset().top});
    });

	// 霑比ｿ｡蜈医さ繝｡繝ｳ繝�NO 繧ｯ繝ｪ繝�け譎�
	$('span.reply-comment-no').click(function (e) {
        var target_comment_no = $(this).text(),
            target_offset = $(this).offset(),
        target_parent_comment_id = $(this).data('parent-id');
        target_comment_no = target_comment_no.replace(/[^0-9]/g, '');
        $('#comment_clone div').remove();
        $('#reply-comment-'+target_parent_comment_id + '-' + target_comment_no).clone(true).appendTo("#comment_clone");
        $('#comment_clone .comments-wrapper').css('border', 'none');
        $('#comment_clone .comments-wrapper').css('margin-bottom', '-10px');
        $("#comment_modal").css('top', target_offset.top);
        $("#comment_clone #reply-comment-" + target_parent_comment_id + "-" + target_comment_no).css('display','');
        // 繝繧､繧｢繝ｭ繧ｰ繧定｡ｨ遉ｺ縺吶ｋ
        $("#comment_modal").fadeIn(250);
    });
    $("#comment_modal_close").click(function () {
        $('#comment_modal').fadeOut(250);
        return false;
    });

    // 逕ｻ蜒上�繝｢繝ｼ繝繝ｫ陦ｨ遉ｺ
    $('.img_modal_open').on('click',function(){
        $('#img_modal_content img').remove();
        var full_size_img = $(this).prop('href');
        $("#img_modal_content").append("&lt;img src='"+full_size_img+"' class='attachment'&gt;");
        $('#img_modal').fadeIn(300);
        return false;
    });
    $('.img_modal_close, #img_modal_content').on('click',function(){
        $('#img_modal').fadeOut(300);
        return false;
    });

    // 繧ｲ繝ｼ繝�繧ｦ繧｣繧ｭ.jp蜈ｱ騾壹�繝�ム繝ｼ�壹い繧ｫ繧ｦ繝ｳ繝域ュ蝣ｱ 繝帙ヰ繝ｼ譎�
    $('#gamewikijp_header #wp-admin-bar-gamewikijp-account').hover(
        function(){
            $(this).find('.ab-sub-wrapper').css('display', 'block');
        },
        function(){
            $(this).find('.ab-sub-wrapper').css('display', 'none');
        }
    );

    // 繝壹�繧ｸ蜀�Μ繝ｳ繧ｯ 繧ｯ繝ｪ繝�け譎ゑｼ医�繝�ム縺ｮ繧ｺ繝ｬ菫ｮ豁｣��
    var headerHight = 39; //繝倥ャ繝縺ｮ鬮倥＆
    $('a[href^="#"]').click(function(){
        var href= $(this).attr("href");
        var target = $(href == "#" || href == "" ? 'html' : href);
        var position = target.offset().top-headerHight; //繝倥ャ繝縺ｮ鬮倥＆蛻�ｽ咲ｽｮ繧偵★繧峨☆
        $("html, body").animate({scrollTop:position}, 550, "swing");
        return false;
    });

    // 險倅ｺ九�繝｢繝舌う繝ｫ繝励Ξ繝薙Η繝ｼ
    $(document).on('click', '#wp-admin-bar-mobile', function(){
        var url = $(this).children("a").prop("href") + "&amp;frame=true";
        $("#mobile_preview_modal #frame1").prop("src",url);
        $("#mobile_preview_modal").fadeIn(300);
        return false;
    });

    $('.mobile_preview_modal_close').on('click',function(){
        $('#mobile_preview_modal').fadeOut(300);
        return false;
    });

    // PC繧ｪ繝ｼ繝舌�繝ｬ繧､髢峨§繧句�逅�
    $('#pc_overlay_close').click(function(){
        $('#pc_overlay').remove();
        return false;
    });

    // 繧ｿ繝ｼ繝�繧帝幕縺上�繧ｿ繝ｳ
    $('.term-open-icon').on('click',function () {
       if($(this).hasClass('ico-open')) {
           if ($(this).parent()[0] == $('ul.term-menu').last().prev()[0]) {
               $(this).parent().removeClass('term-open-li');
           }
           $(this).removeClass('ico-open');
           $(this).parent().next('ul.term-menu').removeClass('term-open');
       } else {
           if ($(this).parent()[0] == $('ul.term-menu').last().prev()[0]) {
               $(this).parent().addClass('term-open-li');
           }
           $(this).addClass('ico-open');
           $(this).parent().next('ul.term-menu').addClass('term-open');
       }
    });

    // 繧｢繧ｳ繝ｼ繝�ぅ繧ｪ繝ｳ繝｡繝九Η繝ｼ縺ｮ螻暮幕
    $("label.acd-label").on("click", function() {
        $(this).next().slideToggle('fast');
    });
});</pre></body></html>