chingshanv.huichengtw.com
Open in
urlscan Pro
2606:4700:3035::6815:4b58
Public Scan
URL:
https://chingshanv.huichengtw.com/js/index.js?2024061102
Submission: On November 21 via api from US — Scanned from DE
Submission: On November 21 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
var imgs = document.querySelectorAll(".img"); var sectitles = document.querySelectorAll(".sectitle"); var textlines = document.querySelectorAll(".textline"); var sectexts = document.querySelectorAll(".sectext"); function img() { var imgs = document.querySelectorAll(".img"); var sectitles = document.querySelectorAll(".sectitle"); var textlines = document.querySelectorAll(".textline"); var sectexts = document.querySelectorAll(".sectext"); for (var i = 0; i < imgs.length; i++) { var windowHeight = window.innerHeight; var elementTop = imgs[i].getBoundingClientRect().top; var elementVisible = 150; if (elementTop < windowHeight - elementVisible) { imgs[i].style.height = 90 + "%"; imgs[i].style.opacity = 1; } else { imgs[i].style.height = 0 + "%"; imgs[i].style.opacity = 0; } } for (var i = 0; i < sectitles.length; i++) { var windowHeight = window.innerHeight; var elementTop = sectitles[i].getBoundingClientRect().top; var elementVisible = 150; if (elementTop < windowHeight - elementVisible) { sectitles[i].style.opacity = 1; sectitles[i].style.transform = "translate(0%)"; } else { sectitles[i].style.opacity = 0; sectitles[i].style.transform = "translate(20%)"; } } for (var i = 0; i < textlines.length; i++) { var windowHeight = window.innerHeight; var elementTop = textlines[i].getBoundingClientRect().top; var elementVisible = 150; if (elementTop < windowHeight - elementVisible) { textlines[i].style.opacity = 1; textlines[i].style.transform = "translate(0%)"; } else { textlines[i].style.opacity = 0; textlines[i].style.transform = "translate(100%)"; } } for (var i = 0; i < sectexts.length; i++) { var windowHeight = window.innerHeight; var elementTop = sectexts[i].getBoundingClientRect().top; var elementVisible = 150; if (elementTop < windowHeight - elementVisible) { sectexts[i].style.opacity = 1; sectexts[i].style.transform = "translate(0%)"; } else { sectexts[i].style.opacity = 0; sectexts[i].style.transform = "translate(-20%)"; } } }; window.addEventListener("scroll", img); $('form#contact-form').submit(function(event) { event.preventDefault(); $('form#contact-form button').attr('disabled', true); $.ajax('https://script.google.com/macros/s/AKfycbw4otTolnOIaXTolbsl9WgAE-eH_xlIP19tlhWqQw7BPxKRkIs1O5qW20b88TZSC3-S/exec', { dataType: 'json', data: { project: 'chingshanv', data: $('form#contact-form').serializeArray() }, }).done(result => { if (result.success) { window.location.href = window.location.origin + '/thankspage.html' } else { alert('送出失敗,請稍後再試。若問題持續發生請聯繫客服。'); } }).fail(result => { alert('送出失敗,請稍後再試。若問題持續發生請聯繫客服。'); }).always(() => { $('form#contact-form button').attr('disabled', false); }) });