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:59] 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 {
-let homeButton = document.getElementsByClassName('navbar-brand d-flex align-items-center')[0].cloneNode()+
 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 354: Line 356:
 document.documentElement.appendChild(qr) document.documentElement.appendChild(qr)
 document.documentElement.appendChild(homeButton) 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.1706493555.txt.gz
  • Last modified: 2024/01/28 17:59
  • by steve.wang