We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How to reference a Verge 3d varible in a Javascript Code Puzzle

Home Forums General Questions How to reference a Verge 3d varible in a Javascript Code Puzzle

Viewing 2 posts - 31 through 32 (of 32 total)
  • Author
    Posts
  • #83127
    bigmike814
    Customer

    yeah, its the freaking forum that is breaking the code.

    let elem = document.getElementById(gamescreen);
    
    function fullscreen() {
    if (elem.requestFullscreen) {
    elem.requestFullscreen();
    window.PetraBasicSpeed = 0.007;
    console.log('PetraBasicSpeed set (standard):', window.PetraBasicSpeed);
    } else if (elem.webkitRequestFullscreen) { // Safari
    elem.webkitRequestFullscreen();
    window.PetraBasicSpeed = 0.12;
    console.log("PetraBasicSpeed set (webkit):", window.PetraBasicSpeed);
    } else if (elem.msRequestFullscreen) { // IE11
    elem.msRequestFullscreen();
    window.PetraBasicSpeed = 0.25;
    console.log("PetraBasicSpeed set (ms):", window.PetraBasicSpeed);
    }
    }

    ' is not the same as this ‘

    which is why it was breaking

    #83129
    c4cc
    Customer

    My code, sadly no change

Viewing 2 posts - 31 through 32 (of 32 total)
  • You must be logged in to reply to this topic.