Build dapp in 3 mins not working

Hi…so i fell at the first hurdle…lol

can anyone tell me what i’ve done wrong please…

when I clivk open with live server nothing happens… tnx

Gas Stats With Moralis

<button id="btn-login">Moralis Login</button>
<button id="btn-logout">Logout</button>

<script>
  // connect to Moralis server

  const serverUrl = "https://ptkw4orowbyx.usemoralis.com:2053/server";
  const appId = "lkzdlVFlhTW4YKL7RlJy0rddp6MPGQ2AoS2ArtZt";
  Moralis.start({ serverUrl, appId });

</script>
  // connect to Moralis server
  const serverUrl = "https://ptkw4orowbyx.usemoralis.com:2053/server";
  const appId = "lkzdlVFlhTW4YKL7RlJy0rddp6MPGQ2AoS2ArtZt";
  Moralis.start({ serverUrl, appId });

  // add from here down
  async function login() {
    let user = Moralis.User.current();
    if (!user) {
      user = await Moralis.authenticate();
    }
    console.log("logged in user:", user);
  }

  async function logOut() {
    await Moralis.User.logOut();
    console.log("logged out");
  }

  document.getElementById("btn-login").onclick = login;
  document.getElementById("btn-logout").onclick = logOut;
</script>t>

The code in not complete, its lacking of the HTML markup, maybe thats why is not running.

Carlos Z

tnx …ill start from scratch and go thru the instructions again… also would metamask need to be on the etherium network? or does it matter? i clicked bsc and the others when i set up moralis… … also is there somewhere where i can see part 1 and 2 of the code compiled so i can see what ive missed and how i missed it? tnx