rare-massive-dichondra.glitch.me
Open in
urlscan Pro
52.86.70.1
Public Scan
URL:
https://rare-massive-dichondra.glitch.me/script.js
Submission: On December 17 via api from US — Scanned from DE
Submission: On December 17 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/* This is your site JavaScript code - you can add interactivity! */ // Print a message in the browser's dev tools console each time the page loads // Use your menus or right-click / control-click and choose "Inspect" > "Console" console.log("Hello 🌎"); /* Make the "Click me!" button move when the visitor clicks it: - First add the button to the page by following the steps in the TODO 🚧 */ const btn = document.querySelector("button"); // Get the button from the page if (btn) { // Detect clicks on the button btn.onclick = function () { // The 'dipped' class in style.css changes the appearance on click btn.classList.toggle("dipped"); }; } // ----- GLITCH STARTER PROJECT HELPER CODE ----- // Open file when the link in the preview is clicked let goto = (file, line) => { window.parent.postMessage( { type: "glitch/go-to-line", payload: { filePath: file, line: line } }, "*" ); }; // Get the file opening button from its class name const filer = document.querySelectorAll(".fileopener"); filer.forEach((f) => { f.onclick = () => { goto(f.dataset.file, f.dataset.line); }; });