$(function () { $('a[href^="#"]').click(function () { var href = $(this).attr("href"); var target = $(href == "#" || href == "" ? 'html' : href); var position = target.offset().top;    var speed = 500; $("html, body").animate({ scrollTop: position }, speed, "swing"); return false; }); }); jQuery(function ($) { $("#modal01").on('click' , function(){ // $("html,body").css("overflow" , "hidden"); $(".js-modal-one").fadeIn(); return false; //aタグの場合 }); $(".js-modal-close").on('click' , function(){ // $("html,body").removeAttr("style"); $(".js-modal-one").fadeOut(); return false; }); }); jQuery(function ($) { $("#modal02").on('click' , function(){ // $("html,body").css("overflow" , "hidden"); $(".js-modal-two").fadeIn(); return false; //aタグの場合 }); $(".js-modal-close").on('click' , function(){ // $("html,body").removeAttr("style"); $(".js-modal-two").fadeOut(); return false; }); }); jQuery(function ($) { $("#modal03").on('click' , function(){ // $("html,body").css("overflow" , "hidden"); $(".js-modal-three").fadeIn(); return false; //aタグの場合 }); $(".js-modal-close").on('click' , function(){ // $("html,body").removeAttr("style"); $(".js-modal-three").fadeOut(); return false; }); }); jQuery(function ($) { $("#modal04").on('click' , function(){ // $("html,body").css("overflow" , "hidden"); $(".js-modal-four").fadeIn(); return false; //aタグの場合 }); $(".js-modal-close").on('click' , function(){ // $("html,body").removeAttr("style"); $(".js-modal-four").fadeOut(); return false; }); }); jQuery(function ($) { $("#modal05").on('click' , function(){ // $("html,body").css("overflow" , "hidden"); $(".js-modal-five").fadeIn(); return false; //aタグの場合 }); $(".js-modal-close").on('click' , function(){ // $("html,body").removeAttr("style"); $(".js-modal-five").fadeOut(); return false; }); }); jQuery(function ($) { $("#modal06").on('click' , function(){ // $("html,body").css("overflow" , "hidden"); $(".js-modal-six").fadeIn(); return false; //aタグの場合 }); $(".js-modal-close").on('click' , function(){ // $("html,body").removeAttr("style"); $(".js-modal-six").fadeOut(); return false; }); }); document.querySelector('#ar-model1').addEventListener("message", function (event) { if (event.data == "_apple_ar_quicklook_button_tapped") { window.open('https://www.brother.co.jp/product/printer/inkjet/mfcj7700cdw/index.aspx', '_blank'); } }, false);