pitch-machine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pitch-machine [2024/01/28 17:54] steve.wangpitch-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('navbar-brand d-flex align-items-center')[0]
 function removeCrap (){ function removeCrap (){
 +homeButton = document.getElementsByClassName('navbar-brand d-flex align-items-center')[0]
 document.getElementsByTagName('head')[0].remove() document.getElementsByTagName('head')[0].remove()
 document.getElementsByTagName('body')[0].remove() document.getElementsByTagName('body')[0].remove()
Line 333: Line 335:
  
 } else { } else {
 +
 alert ('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 僅適用於縱向模式的移動設備,因為調查是在縱向模式下的手機上進行的,因此橫向或非觸控設備上的介面尚未完全開發') alert ('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 僅適用於縱向模式的移動設備,因為調查是在縱向模式下的手機上進行的,因此橫向或非觸控設備上的介面尚未完全開發')
 //document.documentElement.remove() //document.documentElement.remove()
Line 344: Line 347:
 err.style.color = 'black' err.style.color = 'black'
 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 = '200%'
 +err.style.width = '96%'
 +err.style.left = '2%'
 +err.style.position = 'relative'
 +qr.style.left = '2%'
 +qr.style.position = 'relative'
 document.documentElement.appendChild(err) document.documentElement.appendChild(err)
 document.documentElement.appendChild(qr) document.documentElement.appendChild(qr)
 +document.documentElement.appendChild(homeButton)
 + let logo = document.getElementById('dw__logo')
 +
 +logo.remove()
 +
 +document.getElementsByClassName('navbar-brand d-flex align-items-center')[0].appendChild(logo)
 +let home = document.getElementsByClassName('navbar-brand d-flex align-items-center')[0]
 +home.style.left = '2%'
 +home.style.position = 'relative'
 +
 } }
  
  • pitch-machine.1706493275.txt.gz
  • Last modified: 2024/01/28 17:54
  • by steve.wang