window.onpageshow = function() { } window.onpagehide = function() { } /********************************************************* iPhoneでURLバーを隠す *********************************************************/ /*function hideURLbar() { window.scrollTo(0,1); } window.onload = function(){ setTimeout(hideURLbar,100); check_idel(); }*/ function hideURLbar() { if (window.location.hash.indexOf('#') == -1) { window.scrollTo(0, 1); } } if (navigator.userAgent.indexOf('iPhone') != -1 || navigator.userAgent.indexOf('Android') != -1) { addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); } window.onorientationchange = hideURLbar; var count; function BoxChecked(check){ for(count = 0; count < document.checkbox4; count++){ document.checkbox4.checked = check; //チェックボックスをON/OFFにする } } /********************************************************* フリップバナーエリア *********************************************************/ /****マイページTOPフリップ画像1枚ずつ表示******/ // 画像の枚数を取得 var maxIMG = $('#bnrGallery img').size(); var tmp = 1; // 画像をクリックしたときの飛び先URL // 0:画面遷移、1:別ウィンドウ /*var url1 = ['url1', 0]; var url2 = ['url2', 1]; var url3 = ['url3', 0]; var url4 = ['url4', 1]; var url5 = ['url5', 0];*/ // 各種設定 $(document).ready(function() { $('#bnrGallery').cycle({ fx: 'scrollHorz', speed:300 , timeout:5000 , easing: 'swing' , pager:"#nav" , next: '#next', prev: '#prev', startingSlide:(tmp-1) , before: textBefore , pagerAnchorBuilder: function(idx, slide) { return '
  • '; //ページャーにサムネイル画像を出したい場合は以下のようにする //return '
  • '; } }); }); // コメント表示 function textBefore() { var index = $("#bnrGallery>img").index(this)+1; $('p.text').fadeOut(200,function(){ $('p.text').html(eval("txt"+index)).fadeIn(200); }); } // URL遷移 $("#bnrGallery img").click(function(){ var index = $("#bnrGallery>img").index(this)+1; var result = index; // ここから var flg = eval("url"+index+"[1]"); if(flg) window.open(eval("url"+index+"[0]")); else location.href = eval("url"+index+"[0]"); // ここまで }); // 次へ前へボタン $("#bnrGallery").touchwipe({ wipeLeft: function() { $("#bnrGallery").cycle("next"); }, wipeRight: function() { $("#bnrGallery").cycle("prev"); } }); // 追加フリップ var maxIMG = $('#bnrGalleryUnder img').size(); var tmp = 1; $(document).ready(function() { $('#bnrGalleryUnder').cycle({ fx: 'scrollHorz', speed:300 , timeout:5000 , easing: 'swing' , pager:"#navUnder" , next: '#nextUnder', prev: '#prevUnder', startingSlide:(tmp-1) , before: textBefore , pagerAnchorBuilder: function(idx, slide) { return '
  • '; } }); }); function textBefore() { var index = $("#bnrGalleryUnder>img").index(this)+1; $('p.text').fadeOut(200,function(){ $('p.text').html(eval("txt"+index)).fadeIn(200); }); } $("#bnrGalleryUnder img").click(function(){ var index = $("#bnrGalleryUnder>img").index(this)+1; var result = index; var flg = eval("url"+index+"[1]"); if(flg) window.open(eval("url"+index+"[0]")); else location.href = eval("url"+index+"[0]"); }); $("#bnrGalleryUnder").touchwipe({ wipeLeft: function() { $("#bnrGalleryUnder").cycle("next"); }, wipeRight: function() { $("#bnrGalleryUnder").cycle("prev"); } }); /******************************************** ****下層ページフリップ画像2枚ずつ表示******** ********************************************/ // 画像の枚数を取得 var maxIMG = $('#bnrGallery2 img').size(); var tmp = 1; // 各種設定 $(document).ready(function() { $('#bnrGallery2').cycle({ fx: 'scrollHorz', speed:300 , timeout:5000 , easing: 'swing' , pager:"#nav" , next: '#next', prev: '#prev', startingSlide:(tmp-1) , before: textBefore , pagerAnchorBuilder: function(idx, slide) { return '
  • '; } }); }); // コメント表示 function textBefore() { var index = $("#bnrGallery2>img").index(this)+1; $('p.text').fadeOut(200,function(){ $('p.text').html(eval("txt"+index)).fadeIn(200); }); } // URL遷移 $("#bnrGallery2 div div img").click(function(){ var index = $("#bnrGallery2 div div>img").index(this)+1; var result = index; // ここから var flg = eval("surl"+index+"[1]"); if(flg) window.open(eval("surl"+index+"[0]")); else location.href = eval("surl"+index+"[0]"); // ここまで }); // 次へ前へボタン $("#bnrGallery2").touchwipe({ wipeLeft: function() { $("#bnrGallery2").cycle("next"); }, wipeRight: function() { $("#bnrGallery2").cycle("prev"); } }); /******************************************** ****公式トップ フリップバナー******** ********************************************/ // 画像の枚数を取得 var maxIMG = $('#bnrGallery0 img').size(); var tmp = 1; // 各種設定 $(document).ready(function() { $('#bnrGallery0 ul').cycle({ fx: 'scrollHorz', speed:300 , timeout:5000 , easing: 'swing' , pager:"#nav" , next: '#next', prev: '#prev', startingSlide:(tmp-1) , before: textBefore , pagerAnchorBuilder: function(idx, slide) { return '
  • '; //ページャーにサムネイル画像を出したい場合は以下のようにする //return '
  • '; } }); }); // コメント表示 function textBefore() { var index = $("#bnrGallery0 ul li>img").index(this)+1; $('p.text').fadeOut(200,function(){ try { $('p.text').html(eval("txt"+index)).fadeIn(200); } catch(e) { //console.log(e); } }); } // URL遷移 /* $("#bnrGallery2 img").click(function(){ var index = $("#bnrGallery2>img").index(this)+1; var result = index; location.href = eval("url"+index); });*/ // 次へ前へボタン $("#bnrGallery0 ul").touchwipe({ wipeLeft: function() { $("#bnrGallery0 ul").cycle("next"); }, wipeRight: function() { $("#bnrGallery0 ul").cycle("prev"); } }); /************************************************************************************** スライドメニュー **************************************************************************************/ $(function(){ /******キャンペーン一覧******/ $('.campaign_hidden').hide(); $('#campaignBtn').click(function() { $('#campaignBtn').removeClass('on'); $('.campaign_hidden').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); /******たまるマーケットカテゴリーボタン******/ $('#commonBtnArea #categoryCnts').hide(); $('#commonBtnArea #tamaruCategoryBtn').click(function() { $('#commonBtnArea #tamaruCategoryBtn').removeClass('on'); $('#commonBtnArea #categoryCnts').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); /******エポトクカテゴリーボタン******/ $(".yutaiBtnHide").css("display","none"); $("#yutaiCategoryBtn").click(function(){ if($(".yutaiBtnHide").css("display")=="none"){ $('#yutaiCategoryBtn').addClass('on'); $(".yutaiBtnHide").slideDown("normal"); }else{ $(".yutaiBtnHide").slideUp("normal"); $('#yutaiCategoryBtn').removeClass('on'); } }); /******各種変更手続きエリア(格納バージョン)******/ $('#menuChangeHide').hide(); $('#menuChangeBtn').click(function() { $('.menuChange').removeClass('on'); $('#menuChangeHide').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); /******各種変更手続きエリア******/ $('#setupMenu .setupMenuList').hide(); $('#setupMenu .setupMenuBtn').click(function() { $('#setupMenu .setupMenuBtn').removeClass('on'); $('#setupMenu .setupMenuList').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); var bodyId = $('body').attr('id'); /*お支払予定額変更*/ if (bodyId==="menu_payment") { $('#setupMenu .setupMenuList #payment').parent().show(); $('#setupMenu .setupMenuList #payment').parent().prev().addClass('on'); } /*ご利用可能額照会*/ if (bodyId==="menu_limit") { $('#setupMenu .setupMenuList #limit').parent().show(); $('#setupMenu .setupMenuList #limit').parent().prev().addClass('on'); } /*エポスポイント照会・交換*/ if (bodyId==="menu_point") { $('#setupMenu .setupMenuList #point').parent().show(); $('#setupMenu .setupMenuList #point').parent().prev().addClass('on'); } /*お支払いの変更*/ if (bodyId==="menu_change") { $('#setupMenu .setupMenuList #change').parent().show(); $('#setupMenu .setupMenuList #change').parent().prev().addClass('on'); } /*各種お申し込み*/ if (bodyId==="menu_apply") { $('#setupMenu .setupMenuList #apply').parent().show(); $('#setupMenu .setupMenuList #apply').parent().prev().addClass('on'); } /*各種お申し込み(格納バージョン)*/ if (bodyId==="menuChange_apply") { $('#menuChangeHide').show(); $('.menuChange').addClass('on'); $('#setupMenu .setupMenuList #apply').parent().show(); $('#setupMenu .setupMenuList #apply').parent().prev().addClass('on'); } /*ご登録情報の変更*/ if (bodyId==="menu_register") { $('#setupMenu .setupMenuList #register').parent().show(); $('#setupMenu .setupMenuList #register').parent().prev().addClass('on'); } /*Netキャッシング(口座振込)*/ if (bodyId==="menu_cashing") { $('#setupMenu .setupMenuList #cashing').parent().show(); $('#setupMenu .setupMenuList #cashing').parent().prev().addClass('on'); } /******指定口座情報******/ $('.accountArea').hide(); $('.accountInfoBtn').click(function() { $('.accountInfoBtn').removeClass('on'); $('.accountArea').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); /******エポスカードの使い方******/ /*$('#howtoEposBtnArea').hide(); $('.howtoEposBtn').click(function() { $('.howtoEposBtn').removeClass('on'); $('#howtoEposBtnArea').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } });*/ /******ご入会特典******/ /*$('.cardApplyCnts').hide(); $('.cardApply').click(function() { $('.cardApply').removeClass('on'); $('.cardApplyCnts').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } });/* /******ゴールドメニュー******/ $('div#g_menuConts').hide(); $('div#g_menuBtn').click(function() { $('div#g_menuBtn').removeClass('on'); $('div#g_menuConts').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); /******プラチナメニュー******/ $('div#p_menuConts').hide(); $('div#p_menuBtn').click(function() { $('div#p_menuBtn').removeClass('on'); $('div#p_menuConts').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); /******Q&A******/ $('div#qaConts').hide(); $('div#qaBtn').click(function() { $('div#qaBtn').removeClass('on'); $('div#qaConts').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); /******エポスカードとは?4コマ******/ $('div#pointAnime').hide(); $('.activeBtn').click(function() { $('.activeBtn').removeClass('on'); $('div#pointAnime').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); /******各種料金のお支払い******/ $('div#chargeCnts').hide(); $('div#chargeBtn').click(function() { $('div#chargeBtn').removeClass('on'); $('div#chargeCnts').slideUp('normal'); if($(this).next().is(':hidden') == true) { $(this).addClass('on'); $(this).next().slideDown('normal'); } }); });