' + $(this).attr('data-custmer') + '
' + $(this).html() ); $('.popup').fadeIn(300); nowIndex = $(this).index(); nowgallery = i; }); }); $('.popup .next').on('click', function(){ nowIndex++; if( nowIndex >= galleryLI[nowgallery].length ) nowIndex = 0; $('.popup figure').html( '' + galleryLI[nowgallery].eq(nowIndex).attr('data-custmer') + '
' + galleryLI[nowgallery].eq(nowIndex).html() ); }); $('.popup .prev').on('click', function(){ nowIndex--; if( nowIndex < 0 ) nowIndex = galleryLI[nowgallery].length - 1; $('.popup figure').html( '' + galleryLI[nowgallery].eq(nowIndex).attr('data-custmer') + '
' + galleryLI[nowgallery].eq(nowIndex).html() ); }); $('.popup .close, .popup').on('click', function(){ $('.popup').fadeOut(300); }); $('.popup > div').on('click', function(e){ e.stopPropagation(); }); /* ■■■■■■スライドショーセット â– â– â– â– â– â– */ slideNum = 0; $slideList = $('.slideshow_list li'); $(window).on('resize load',function(){ if( $(this).width() < 584 ){ $('.slideshow_list ul').css('width', $slideList.length * 100 + '%'); $slideList.css('width', ( 100 / $slideList.length ) + '%'); }else{ $('.slideshow_list ul').css('width', ''); $slideList.css('width', ''); } }); $('.slideshow_list .next').on('click', function(){ slideNum++; if( slideNum >= $slideList.length ) slideNum = 0; $('.slideshow_list ul').animate({left: -slideNum + "00%"}, 300); }); $('.slideshow_list .prev').on('click', function(){ slideNum--; if( slideNum < 0 ) slideNum = $slideList.length - 1; $('.slideshow_list ul').animate({left: -slideNum + "00%"}, 300); }); /* ■■■■■■スマホãƒãƒŠãƒ¼è¡¨ç¤º â– â– â– â– â– â– */ $('.topics nav .more').css("cursor","pointer").on('click', function(){ $('.topics > nav a').each( function(i){ setTimeout("$('.topics > nav a').eq(" + i + ").fadeIn(300)", i*50); }); $(this).fadeOut(500); }); /* ■■■■■■サãƒãƒ³åˆ‡ã‚Šæ›ãˆ â– â– â– â– â– â– */ $('.salon_box .folder_links a').on('click', function(){ if( !$('this').hasClass('on') ){ $('.salon_all article').removeClass('on'); $('.salon_all article').eq($(this).index()).addClass('on'); } }); }); /* â– â– â– â– â– â– Webカメラリãƒãƒ¼ãƒ‰ â– â– â– â– â– â– */ $(document).ready(function() { window.setInterval("refreshCamera();", 10000); // one second interval }); var url = 'http://108.174.35.66:5015/SnapshotJPEG?Resolution=640x480&Quality=Motion'; var forcerefresh = 0; function refreshCamera() { forcerefresh = forcerefresh + 1; $('#webcam').attr('src',url + forcerefresh); } /* â– â– â– â– â– â– fade â– â– â– â– â– â– */ Fades = new Array(); //ID内ã®ã‚¿ã‚°ã‚¨ãƒ¬ãƒ¡ãƒ³ãƒˆç”¨ï¼ˆé…列変数) nowFade = new Array(); //ç¾åœ¨è¡¨ç¤ºä¸ã®ç•ªå·ç”¨ï¼ˆé…列変数) fadeDelay = new Array(); //フェードã®é–“隔用(é…列変数) setTO = new Array(); //setTimeout用(clearTimeoutã§ã‚ャンセルã™ã‚‹ãŸã‚ã«ç”¨æ„) /* â– â– â– â– åˆæœŸè¨å®šï¼ˆ
タグエレメントèªã¿è¾¼ã¿ã€ã‚¤ãƒ™ãƒ³ãƒˆãƒãƒ³ãƒ‰ãƒ©è¨ç½®ãªã©ï¼‰ â– â– â– â– */ function set_fade(ID, Delay){ Fades[ID] = document.getElementById(ID).getElementsByTagName("li"); //Fades[ID] ã«ã€
タグエレメントã«class="on"を付ã‘るスクリプト â– â– â– â– */ function fade_change(ID,NUM){ clearTimeout(setTO[ID]); //ã“ã“ã§ã€ã„ã£ãŸã‚“ã€å‰ã«è¨å®šã•れ㟠「setTimeout("fade_next('" + ID + "')", fadeDelay[ID])ã€ã‚’ã‚ャンセル。 Fades[ID][nowFade[ID]].className = ""; //ç¾åœ¨è¡¨ç¤ºä¸ï¼ˆnowFade[ID])ã®