//@utf-8 (function($) { // textsize cookie(フォントサイズcookie読み込み&設定) fsize=$.cookie('fsize'); if(fsize == null) { $.cookie('fsize', '12'); } else if(fsize == 'size') { $.cookie('fsize', '12'); } else { } $(function(){ $("#mainleft div").css("font-size", $.cookie('fsize')+"px"); // panel height reload  (ロード時height設定) coupon01 = $(".coupon01").size(); panel_height1 = coupon01 * "550";//クーポンの数 × クーポン1枚毎の高さ panel_height2 = $("#campaign_main").innerHeight() + 240; if(panel_height1 > panel_height2) { $('.stepcarousel , .panel').css('height',panel_height1 + "px"); } else { $('.stepcarousel , .panel').css('height',panel_height2 + "px"); } }); //フォントスライダー $(document).ready(initializeGrid); function initializeGrid() { $("#grid_slider").slider({ value: $.cookie('fsize'), max: 20, min: 8, slide: function(event, ui) { $('#mainleft div').css('font-size',ui.value+"px"); // panel height follow (スライダー稼動時height設定) coupon01 = $(".coupon01").size(); panel_height1 = coupon01 * "550";//クーポンの数 × クーポン1枚毎の高さ panel_height2 = $("#campaign_main").innerHeight() + 240; if(panel_height1 > panel_height2) { $('.stepcarousel , .panel').css('height',panel_height1 + "px"); } else { $('.stepcarousel , .panel').css('height',panel_height2 + "px"); } // panel height follow (フォントサイズ cookie保存) $.cookie("fsize","size",{expires:7,path:'/'}); $.cookie('fsize', ui.value); } }); } //document.write($.cookie('fsize'));//確認用 })(jQuery); ////ページ内パネルリンク function totop1() { stepcarousel.stepTo('sideslider', 1); } function totop2() { stepcarousel.stepTo('sideslider', 2); } //////print (印刷ボタン) _wopen=window.open function wopen(url){ var c=false,g=null,l,t,o=-1 g=new Image();g.src=url;url=""; o=_wopen(url) if(c&&navigator.platform.indexOf("Mac")!=-1)o.moveTo(l,t) if(g){ o.document.open() o.document.write( 'coupon
') o.document.close() } return o } window.open=wopen function newopen(imgname){ pwin=window.open(imgname); pwin.print(); // pwin.focus(); pwin.close(); return false; } //not execute now (クーポン未実施時) (function($) { $(document).ready(function(){ $("div.not1").fadeTo(0,0); $("div.not1_sign").fadeTo(1,0); $("div.not1").fadeTo(2000,0.6); $("div.not1_sign").fadeTo(3000,0.8); $("div.not2").fadeTo(0,0); $("div.not2_sign").fadeTo(1,0); $("div.not2").fadeTo(2000,0.6); $("div.not2_sign").fadeTo(3000,0.8); }); //out link blank $(document).ready(function(){ $("#menu10,#menu11").removeAttr("onclick").attr("target","_blank"); }); })(jQuery);