<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">$(function () {

    if (bg_img_url &amp;&amp; !bg_option) {

        if (bg_img_url.length === 1) {
            $.backstretch(bg_img_url[0]);
        } else if (bg_img_url) {
            $.backstretch(bg_img_url, {
                fade: 1000,
                duration: 6000
            });
        }

    } else if (bg_img_url &amp;&amp; bg_option) {
        $('body').css({
            "background-image": "url(" + bg_img_url[0] + ")",
            "background-repeat": "repeat",
            "background-position": "center top",
            "background-attachment": "fixed"
        });
    }

    if (header_img_url) {
        var img = new Image();
        img.src = header_img_url;
        img.onload = function () {
            winResize();
            $('#head-image').css('backgroundImage', 'url(' + img.src + ')');
            //var width = img.width;  // å¹…
            //var height = img.height; // é«˜ã•
        };

        /* return if navbar is fixed */
        function navbarIsFixed() {
            return $('#sec-navbar .navbar').hasClass('navbar-fixed-top');
        }

        function winResize() {
            $('#head-image').height($('#head-image').width() * (img.height / img.width) + 'px');
//$('#head-image').height($('#head-image').width() / 2 + 'px');
        }

        $window = $(window);
        $window.on('resize', function () {
            winResize();
        });
    }


    //ãƒœã‚¿ãƒ³[id:page-top]ã‚’å‡ºç¾ã•ã›ã‚‹ã‚¹ã‚¯ãƒ­ãƒ¼ãƒ«ã‚¤ãƒ™ãƒ³ãƒˆ
    $(window).scroll(function () {
        //æœ€ä¸Šéƒ¨ã‹ã‚‰ç¾åœ¨ä½ç½®ã¾ã§ã®è·é›¢ã‚’å–å¾—ã—ã¦ã€å¤‰æ•°[now]ã«æ&nbsp;¼ç´
        var now = $(window).scrollTop();

        //æœ€ä¸‹éƒ¨ã‹ã‚‰ç¾åœ¨ä½ç½®ã¾ã§ã®è·é›¢ã‚’è¨ˆç®—ã—ã¦ã€å¤‰æ•°[under]ã«æ&nbsp;¼ç´
        var under = $('body').height() - (now + $(window).height());

//		if(now &gt; 200 &amp;&amp; under &gt; 100){
        if (now &gt; 200) {
            //[#page-top]ã‚’ã‚†ã£ãã‚Šãƒ•ã‚§ãƒ¼ãƒ‰ã‚¤ãƒ³ã™ã‚‹
            $('#page-top').fadeIn('slow');
            //ãã‚Œä»¥å¤–ã&nbsp;ã£ãŸã‚‰ãƒ•ã‚§ãƒ¼ãƒ‰ã‚¢ã‚¦ãƒˆã™ã‚‹
        } else {
            $('#page-top').fadeOut('slow');
        }
    });

    //ãƒœã‚¿ãƒ³(id:move-page-top)ã®ã‚¯ãƒªãƒƒã‚¯ã‚¤ãƒ™ãƒ³ãƒˆ
    $('#move-page-top').click(function () {
        //ãƒšãƒ¼ã‚¸ãƒˆãƒƒãƒ—ã¸ç§»å‹•ã™ã‚‹
        $('html,body').animate({scrollTop: 0}, 'slow');
        return false;
    });




    //ã‚¹ãƒžãƒ›ç”¨ã‚»ãƒ¬ã‚¯ãƒˆãƒœãƒƒã‚¯ã‚¹ãƒ¡ãƒ‹ãƒ¥ãƒ¼
    $('.res-menu').on('change', function () {
        window.location = $(this).val();
    });

});</pre></body></html>