Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| pitch-machine [2024/01/28 17:54] – steve.wang | pitch-machine [2024/01/28 18:13] (current) – steve.wang | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| //helped by chatgpt | //helped by chatgpt | ||
| //maybe partially bardAI | //maybe partially bardAI | ||
| + | let homeButton = document.getElementsByClassName(' | ||
| function removeCrap (){ | function removeCrap (){ | ||
| + | homeButton = document.getElementsByClassName(' | ||
| document.getElementsByTagName(' | document.getElementsByTagName(' | ||
| document.getElementsByTagName(' | document.getElementsByTagName(' | ||
| Line 333: | Line 335: | ||
| } else { | } else { | ||
| + | |||
| alert (' | alert (' | ||
| // | // | ||
| Line 344: | Line 347: | ||
| err.style.color = ' | err.style.color = ' | ||
| err.innerText = 'Pitch Machine is only available on mobile devices in portrait mode because survey was conducted with a phone in portrait mode so the interface on a landscape or non touch device has not been fully developed. Pitch Machine 僅適用於縱向模式的移動設備,因為調查是在縱向模式下的手機上進行的,因此橫向或非觸控設備上的介面尚未完全開發. Please user your phone to scan the link of the Pitch Machine below:' | err.innerText = 'Pitch Machine is only available on mobile devices in portrait mode because survey was conducted with a phone in portrait mode so the interface on a landscape or non touch device has not been fully developed. Pitch Machine 僅適用於縱向模式的移動設備,因為調查是在縱向模式下的手機上進行的,因此橫向或非觸控設備上的介面尚未完全開發. Please user your phone to scan the link of the Pitch Machine below:' | ||
| + | err.style.fontSize = ' | ||
| + | err.style.width = ' | ||
| + | err.style.left = ' | ||
| + | err.style.position = ' | ||
| + | qr.style.left = ' | ||
| + | qr.style.position = ' | ||
| document.documentElement.appendChild(err) | document.documentElement.appendChild(err) | ||
| document.documentElement.appendChild(qr) | document.documentElement.appendChild(qr) | ||
| + | document.documentElement.appendChild(homeButton) | ||
| + | let logo = document.getElementById(' | ||
| + | |||
| + | logo.remove() | ||
| + | |||
| + | document.getElementsByClassName(' | ||
| + | let home = document.getElementsByClassName(' | ||
| + | home.style.left = ' | ||
| + | home.style.position = ' | ||
| + | |||
| } | } | ||