Skip to content

🤖 Cannot save fiddle #2338

@ciceroedvaniodossantos-cpu

Description

Error code

ERRW:SS1.0

Were you logged in?

Yes

Your username (if logged in)

Cícero

Your HTML

<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GeoNexus | Autonomous Navigation</title>
    <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --bg: #050a0f;
            --card: #101a24;
            --neon: #00e5ff;
            --accent: #7000ff;
        }
        body {
            background-color: var(--bg);
            color: white;
            font-family: 'Segoe UI', sans-serif;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }
        .brand {
            text-align: center;
            margin-bottom: 20px;
        }
        h1 {
            font-family: 'Orbitron', sans-serif;
            color: var(--neon);
            letter-spacing: 5px;
            margin: 0;
            text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
        }
        .panel {
            background: var(--card);
            border: 1px solid var(--neon);
            border-radius: 20px;
            padding: 25px;
            width: 80%;
            max-width: 350px;
            box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
        }
        .data-line {
            display: flex;
            justify-content: space-between;
            margin: 15px 0;
            border-bottom: 1px solid #1d2b3a;
            padding-bottom: 5px;
        }
        .label { color: #667c89; font-size: 0.8rem; text-transform: uppercase; }
        .value { color: var(--neon); font-family: monospace; font-size: 1.1rem; }
        .btn {
            background: linear-gradient(45deg, var(--accent), var(--neon));
            border: none;
            color: white;
            padding: 15px 30px;
            border-radius: 50px;
            font-family: 'Orbitron', sans-serif;
            font-weight: bold;
            margin-top: 20px;
            width: 80%;
            max-width: 350px;
            cursor: pointer;
        }
    </style>
</head>
<body>

    <div class="brand">
        <h1>GEONEXUS</h1>
        <small style="color: var(--accent)">SYSTEMS v1.0</small>
    </div>

    <div class="panel">
        <div class="data-line">
            <span class="label">Status</span>
            <span id="st" class="value">STANDBY</span>
        </div>
        <div class="data-line">
            <span class="label">Latitude</span>
            <span id="lat" class="value">---</span>
        </div>
        <div class="data-line">
            <span class="label">Longitude</span>
            <span id="lng" class="value">---</span>
        </div>
        <div class="data-line">
            <span class="label">Precisão</span>
            <span id="acc" class="value">---</span>
        </div>
    </div>

    <button class="btn" onclick="ativar()">ATIVAR GEONEXUS</button>

    <script>
        function ativar() {
            const st = document.getElementById('st');
            st.innerText = "LOCALIZANDO...";
            st.style.color = "yellow";

            if (navigator.geolocation) {
                navigator.geolocation.watchPosition((p) => {
                    st.innerText = "ONLINE";
                    st.style.color = "#00ff00";
                    document.getElementById('lat').innerText = p.coords.latitude.toFixed(6);
                    document.getElementById('lng').innerText = p.coords.longitude.toFixed(6);
                    document.getElementById('acc').innerText = Math.round(p.coords.accuracy) + "m";
                }, (e) => {
                    st.innerText = "ERRO GPS";
                    st.style.color = "red";
                }, { enableHighAccuracy: true });
            } else {
                alert("GPS não suportado neste aparelho.");
            }
        }
    </script>
</body>
</html>

Your JavaScript

<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GeoNexus | Autonomous Navigation</title>
    <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --bg: #050a0f;
            --card: #101a24;
            --neon: #00e5ff;
            --accent: #7000ff;
        }
        body {
            background-color: var(--bg);
            color: white;
            font-family: 'Segoe UI', sans-serif;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }
        .brand {
            text-align: center;
            margin-bottom: 20px;
        }
        h1 {
            font-family: 'Orbitron', sans-serif;
            color: var(--neon);
            letter-spacing: 5px;
            margin: 0;
            text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
        }
        .panel {
            background: var(--card);
            border: 1px solid var(--neon);
            border-radius: 20px;
            padding: 25px;
            width: 80%;
            max-width: 350px;
            box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
        }
        .data-line {
            display: flex;
            justify-content: space-between;
            margin: 15px 0;
            border-bottom: 1px solid #1d2b3a;
            padding-bottom: 5px;
        }
        .label { color: #667c89; font-size: 0.8rem; text-transform: uppercase; }
        .value { color: var(--neon); font-family: monospace; font-size: 1.1rem; }
        .btn {
            background: linear-gradient(45deg, var(--accent), var(--neon));
            border: none;
            color: white;
            padding: 15px 30px;
            border-radius: 50px;
            font-family: 'Orbitron', sans-serif;
            font-weight: bold;
            margin-top: 20px;
            width: 80%;
            max-width: 350px;
            cursor: pointer;
        }
    </style>
</head>
<body>

    <div class="brand">
        <h1>GEONEXUS</h1>
        <small style="color: var(--accent)">SYSTEMS v1.0</small>
    </div>

    <div class="panel">
        <div class="data-line">
            <span class="label">Status</span>
            <span id="st" class="value">STANDBY</span>
        </div>
        <div class="data-line">
            <span class="label">Latitude</span>
            <span id="lat" class="value">---</span>
        </div>
        <div class="data-line">
            <span class="label">Longitude</span>
            <span id="lng" class="value">---</span>
        </div>
        <div class="data-line">
            <span class="label">Precisão</span>
            <span id="acc" class="value">---</span>
        </div>
    </div>

    <button class="btn" onclick="ativar()">ATIVAR GEONEXUS</button>

    <script>
        function ativar() {
            const st = document.getElementById('st');
            st.innerText = "LOCALIZANDO...";
            st.style.color = "yellow";

            if (navigator.geolocation) {
                navigator.geolocation.watchPosition((p) => {
                    st.innerText = "ONLINE";
                    st.style.color = "#00ff00";
                    document.getElementById('lat').innerText = p.coords.latitude.toFixed(6);
                    document.getElementById('lng').innerText = p.coords.longitude.toFixed(6);
                    document.getElementById('acc').innerText = Math.round(p.coords.accuracy) + "m";
                }, (e) => {
                    st.innerText = "ERRO GPS";
                    st.style.color = "red";
                }, { enableHighAccuracy: true });
            } else {
                alert("GPS não suportado neste aparelho.");
            }
        }
    </script>
</body>
</html>

Your CSS

<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GeoNexus | Autonomous Navigation</title>
    <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --bg: #050a0f;
            --card: #101a24;
            --neon: #00e5ff;
            --accent: #7000ff;
        }
        body {
            background-color: var(--bg);
            color: white;
            font-family: 'Segoe UI', sans-serif;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }
        .brand {
            text-align: center;
            margin-bottom: 20px;
        }
        h1 {
            font-family: 'Orbitron', sans-serif;
            color: var(--neon);
            letter-spacing: 5px;
            margin: 0;
            text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
        }
        .panel {
            background: var(--card);
            border: 1px solid var(--neon);
            border-radius: 20px;
            padding: 25px;
            width: 80%;
            max-width: 350px;
            box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
        }
        .data-line {
            display: flex;
            justify-content: space-between;
            margin: 15px 0;
            border-bottom: 1px solid #1d2b3a;
            padding-bottom: 5px;
        }
        .label { color: #667c89; font-size: 0.8rem; text-transform: uppercase; }
        .value { color: var(--neon); font-family: monospace; font-size: 1.1rem; }
        .btn {
            background: linear-gradient(45deg, var(--accent), var(--neon));
            border: none;
            color: white;
            padding: 15px 30px;
            border-radius: 50px;
            font-family: 'Orbitron', sans-serif;
            font-weight: bold;
            margin-top: 20px;
            width: 80%;
            max-width: 350px;
            cursor: pointer;
        }
    </style>
</head>
<body>

    <div class="brand">
        <h1>GEONEXUS</h1>
        <small style="color: var(--accent)">SYSTEMS v1.0</small>
    </div>

    <div class="panel">
        <div class="data-line">
            <span class="label">Status</span>
            <span id="st" class="value">STANDBY</span>
        </div>
        <div class="data-line">
            <span class="label">Latitude</span>
            <span id="lat" class="value">---</span>
        </div>
        <div class="data-line">
            <span class="label">Longitude</span>
            <span id="lng" class="value">---</span>
        </div>
        <div class="data-line">
            <span class="label">Precisão</span>
            <span id="acc" class="value">---</span>
        </div>
    </div>

    <button class="btn" onclick="ativar()">ATIVAR GEONEXUS</button>

    <script>
        function ativar() {
            const st = document.getElementById('st');
            st.innerText = "LOCALIZANDO...";
            st.style.color = "yellow";

            if (navigator.geolocation) {
                navigator.geolocation.watchPosition((p) => {
                    st.innerText = "ONLINE";
                    st.style.color = "#00ff00";
                    document.getElementById('lat').innerText = p.coords.latitude.toFixed(6);
                    document.getElementById('lng').innerText = p.coords.longitude.toFixed(6);
                    document.getElementById('acc').innerText = Math.round(p.coords.accuracy) + "m";
                }, (e) => {
                    st.innerText = "ERRO GPS";
                    st.style.color = "red";
                }, { enableHighAccuracy: true });
            } else {
                alert("GPS não suportado neste aparelho.");
            }
        }
    </script>
</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions