var $DIGISTA_URL = 'https://digista.jp/shin_api/'; var $SITE_CODE = 'shin'; var STAMP_PER_SHEET = 30; $(function(){ location.href = 'https://digista.jp/shin/pc.html'; // トップページ $('#point-conditions').html('デジスタに新規登録をすると、その場でスタンプを1つ
付与します。
以降、お会計2000円につきスタンプを1つ付与します。'); // 店舗情報 $('#shopinfo-text').html('〒464-0067
愛知県名古屋市千種区池下2-1-13
堀部ビル 1F
TEL : 052-759-5575
'); $('#opentime-text').html("【平日】17:00 ~ 24:00
【金・土】17:00 ~ 25:00
日曜営業・月曜定休"); $('#footer-tel').attr('href', 'tel:052-759-5575'); $('#footer-map').attr('href', 'https://www.google.co.jp/maps/place/%E6%84%9B%E7%9F%A5%E7%9C%8C%E5%90%8D%E5%8F%A4%E5%B1%8B%E5%B8%82%E5%8D%83%E7%A8%AE%E5%8C%BA%E6%B1%A0%E4%B8%8B2-1-13'); $.getJSON('https://digista.jp/embed/Element/_coupons/_:' + $SITE_CODE + '/?cb=?', null, function(data) { if ('RESULT' in data) { if (data.RESULT == 'SUCCESS') { $('#main-bottom').html(data.HTML); } } }); $('.point-link' ).click(function(e){ e.preventDefault(); showLogin(); }); $('.coupons-link').click(function(e){ e.preventDefault(); showLogin(); }); $('.coupon-link' ).click(function(e){ e.preventDefault(); showLogin(); }); }); function showLogin() { $.getJSON('https://digista.jp/embed/Element/_login/_:' + $SITE_CODE + '/?cb=?', null, function(data) { if ('RESULT' in data) { if (data.RESULT == 'SUCCESS') { $('#overlay').html(data.HTML); $('#overlay-fill').fadeIn('fast'); $('#overlay').fadeIn('slow'); } } }) } var zoom_size = 1; var zoom_size_2 = 1; var asu = 0; var $width = 640; var zoom_size = 0; var zoom_size_opt = 1; function _fixedDispScale() { zoom_size = screen.width / 640; zoom_size2 = $(window).width() / 640; if (window.innerWidth != $(window).width()) { zoom_size_opt = window.innerWidth / $(window).width(); viewportContent = "width=640,user-scalable=no,shrink-to-fit=no"; document.querySelector("meta[name='viewport']").setAttribute("content", viewportContent); $("*").css("max-width",'640px !important'); $("#base-frame").css("width",'640px'); $("#main-frame").css({ margin: 0, padding: 0, overflow: 'hidden' }); } $('.coupon-incentive').css('font-size', '32px').css('width','80px'); $('#main-bottom').css('font-size', '28px').css('padding-bottom', "40px"); $("html").css("zoom", zoom_size2 * zoom_size_opt); } $(window).bind('resize load', function(){ _fixedDispScale(); });