commit ae0429848fad6febd191d31e3455e650c7de3481
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 17:26:47 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..ab5d79c
--- /dev/null
+++ b/body.html
@@ -0,0 +1,27 @@
+<header>
+ <h1>World Time</h1>
+ <p>Your global clock at a glance</p>
+</header>
+<main>
+ <div class="clock-container">
+ <div class="clock">
+ <h2>New York</h2>
+ <div class="time" id="new-york">00:00:00</div>
+ </div>
+ <div class="clock">
+ <h2>London</h2>
+ <div class="time" id="london">00:00:00</div>
+ </div>
+ <div class="clock">
+ <h2>Tokyo</h2>
+ <div class="time" id="tokyo">00:00:00</div>
+ </div>
+ <div class="clock">
+ <h2>Sydney</h2>
+ <div class="time" id="sydney">00:00:00</div>
+ </div>
+ </div>
+</main>
+<footer>
+ <p>Stay connected with the world</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..8eed87c
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://worldtime.scroll.pub
+metaTags
+editButton /edit.html
+title World Time - Global Clock
+style.css
+body.html
+script.js
\ No newline at end of file
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..2be6430
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "008b0d26-49cf-4947-9e27-62c6d89660aa",
+ "object": "chat.completion",
+ "created": 1735406791,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nworldtime.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://worldtime.scroll.pub\nmetaTags\neditButton /edit.html\ntitle World Time - Global Clock\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>World Time</h1>\n <p>Your global clock at a glance</p>\n</header>\n<main>\n <div class=\"clock-container\">\n <div class=\"clock\">\n <h2>New York</h2>\n <div class=\"time\" id=\"new-york\">00:00:00</div>\n </div>\n <div class=\"clock\">\n <h2>London</h2>\n <div class=\"time\" id=\"london\">00:00:00</div>\n </div>\n <div class=\"clock\">\n <h2>Tokyo</h2>\n <div class=\"time\" id=\"tokyo\">00:00:00</div>\n </div>\n <div class=\"clock\">\n <h2>Sydney</h2>\n <div class=\"time\" id=\"sydney\">00:00:00</div>\n </div>\n </div>\n</main>\n<footer>\n <p>Stay connected with the world</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #1a73e8;\n --secondary-color: #202124;\n --background-color: #f8f9fa;\n --text-color: #202124;\n --clock-bg: #ffffff;\n --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\nheader {\n text-align: center;\n padding: 2rem;\n background-color: var(--primary-color);\n color: white;\n}\n\nh1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\np {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\n.clock-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.clock {\n background-color: var(--clock-bg);\n padding: 2rem;\n border-radius: 12px;\n box-shadow: var(--shadow);\n text-align: center;\n transition: transform 0.3s ease;\n}\n\n.clock:hover {\n transform: translateY(-5px);\n}\n\nh2 {\n margin: 0 0 1rem;\n font-size: 1.5rem;\n color: var(--primary-color);\n}\n\n.time {\n font-size: 2rem;\n font-weight: bold;\n color: var(--secondary-color);\n}\n\nfooter {\n text-align: center;\n padding: 1.5rem;\n background-color: var(--primary-color);\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n .clock-container {\n grid-template-columns: 1fr;\n padding: 1rem;\n }\n\n .clock {\n padding: 1.5rem;\n }\n\n h1 {\n font-size: 2rem;\n }\n\n .time {\n font-size: 1.5rem;\n }\n}\n---script.js---\nfunction updateTime() {\n const now = new Date();\n\n // New York\n const newYorkTime = now.toLocaleTimeString('en-US', {\n timeZone: 'America/New_York',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n });\n document.getElementById('new-york').textContent = newYorkTime;\n\n // London\n const londonTime = now.toLocaleTimeString('en-GB', {\n timeZone: 'Europe/London',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n });\n document.getElementById('london').textContent = londonTime;\n\n // Tokyo\n const tokyoTime = now.toLocaleTimeString('ja-JP', {\n timeZone: 'Asia/Tokyo',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n });\n document.getElementById('tokyo').textContent = tokyoTime;\n\n // Sydney\n const sydneyTime = now.toLocaleTimeString('en-AU', {\n timeZone: 'Australia/Sydney',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n });\n document.getElementById('sydney').textContent = sydneyTime;\n}\n\nsetInterval(updateTime, 1000);\nupdateTime();\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 243,
+ "completion_tokens": 1121,
+ "total_tokens": 1364,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 243
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..acd5288
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# worldtime1.scroll.pub
+Website generated by DeepSeek from prompt: create a fully functional world clock web app.
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..c20e0bc
--- /dev/null
+++ b/script.js
@@ -0,0 +1,42 @@
+function updateTime() {
+ const now = new Date();
+
+ // New York
+ const newYorkTime = now.toLocaleTimeString('en-US', {
+ timeZone: 'America/New_York',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
+ });
+ document.getElementById('new-york').textContent = newYorkTime;
+
+ // London
+ const londonTime = now.toLocaleTimeString('en-GB', {
+ timeZone: 'Europe/London',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
+ });
+ document.getElementById('london').textContent = londonTime;
+
+ // Tokyo
+ const tokyoTime = now.toLocaleTimeString('ja-JP', {
+ timeZone: 'Asia/Tokyo',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
+ });
+ document.getElementById('tokyo').textContent = tokyoTime;
+
+ // Sydney
+ const sydneyTime = now.toLocaleTimeString('en-AU', {
+ timeZone: 'Australia/Sydney',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
+ });
+ document.getElementById('sydney').textContent = sydneyTime;
+}
+
+setInterval(updateTime, 1000);
+updateTime();
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..3eacee0
--- /dev/null
+++ b/style.css
@@ -0,0 +1,95 @@
+:root {
+ --primary-color: #1a73e8;
+ --secondary-color: #202124;
+ --background-color: #f8f9fa;
+ --text-color: #202124;
+ --clock-bg: #ffffff;
+ --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ margin: 0;
+ padding: 0;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ line-height: 1.6;
+}
+
+header {
+ text-align: center;
+ padding: 2rem;
+ background-color: var(--primary-color);
+ color: white;
+}
+
+h1 {
+ margin: 0;
+ font-size: 2.5rem;
+}
+
+p {
+ margin: 0.5rem 0 0;
+ font-size: 1.2rem;
+}
+
+.clock-container {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ padding: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.clock {
+ background-color: var(--clock-bg);
+ padding: 2rem;
+ border-radius: 12px;
+ box-shadow: var(--shadow);
+ text-align: center;
+ transition: transform 0.3s ease;
+}
+
+.clock:hover {
+ transform: translateY(-5px);
+}
+
+h2 {
+ margin: 0 0 1rem;
+ font-size: 1.5rem;
+ color: var(--primary-color);
+}
+
+.time {
+ font-size: 2rem;
+ font-weight: bold;
+ color: var(--secondary-color);
+}
+
+footer {
+ text-align: center;
+ padding: 1.5rem;
+ background-color: var(--primary-color);
+ color: white;
+ margin-top: 2rem;
+}
+
+@media (max-width: 768px) {
+ .clock-container {
+ grid-template-columns: 1fr;
+ padding: 1rem;
+ }
+
+ .clock {
+ padding: 1.5rem;
+ }
+
+ h1 {
+ font-size: 2rem;
+ }
+
+ .time {
+ font-size: 1.5rem;
+ }
+}
\ No newline at end of file