Please read the above and, if you agree, tick the ‘I agree’ box and click on the contact form for fax.



I agree     
var iframe = document.getElementById(“iframeTxt”); var radio = document.getElementById(“agreeOrNot”); var radioCtl = document.getElementById(“radioCtlFlg”); // スクロール量チェック function textReadChk() { // 既読判定 if (radioCtl.value == “1”) { return; } // テキスト全体の高さ var scrollHeight = iframe.contentDocument.documentElement.scrollHeight; // スクロール量 var scrollAmount = iframe.contentWindow.pageYOffset; // ウィンドウ(表示される枠)の高さ var windowHeight = iframe.contentWindow.innerHeight; if (scrollAmount + windowHeight > scrollHeight – 100) { radio.disabled = false; radioCtl.value = “1” } } function remove_header_footer(){ iframe.contentDocument.getElementById(“header-section”).style.display=”none”; iframe.contentDocument.getElementById(“colophon”).style.display=”none”; } function buttonClick(){ location.href = “https://psy.flet.keio.ac.jp/~minagawa/babylab/contents/uploads/2020/10/faxform_tipsb_babylab.pdf” } // iframe内のscrollイベントを親フレームで取得し、チェック呼び出し document.addEventListener(‘DOMContentLoaded’, function() { iframe.addEventListener(‘load’, (function(element) { element.contentWindow.addEventListener(‘load’, remove_header_footer); return function() { element.contentWindow.addEventListener(‘scroll’, textReadChk); }; })(iframe, false)); var afterAgreed = document.getElementById(“after-agreed”); afterAgreed.addEventListener(“mouseup”, buttonClick); document.getElementById(“agreeOrNot”).addEventListener(“change”, function(){ if(this.checked){ afterAgreed.disabled=false; }else{ afterAgreed.disabled=true; } }); }, false);