commit 240848d514036cd3e706110f25f6631a7919599e
Author: root <root@hub.scroll.pub>
Date: 2024-12-30 01:43:30 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..8efc885
--- /dev/null
+++ b/body.html
@@ -0,0 +1,33 @@
+<header>
+ <h1>NHS Pay Calculator</h1>
+ <p>Calculate your NHS pay and compare it with your payslip.</p>
+</header>
+<main>
+ <section>
+ <h2>Enter Your Details</h2>
+ <form id="payForm">
+ <label for="hoursWorked">Hours Worked:</label>
+ <input type="number" id="hoursWorked" name="hoursWorked" required>
+
+ <label for="hourlyRate">Hourly Rate (£):</label>
+ <input type="number" id="hourlyRate" name="hourlyRate" step="0.01" required>
+
+ <label for="overtimeHours">Overtime Hours:</label>
+ <input type="number" id="overtimeHours" name="overtimeHours">
+
+ <label for="overtimeRate">Overtime Rate (£):</label>
+ <input type="number" id="overtimeRate" name="overtimeRate" step="0.01">
+
+ <button type="submit">Calculate Pay</button>
+ </form>
+ </section>
+ <section>
+ <h2>Your Pay Calculation</h2>
+ <div id="result">
+ <p>Total Pay: £<span id="totalPay">0.00</span></p>
+ </div>
+ </section>
+</main>
+<footer>
+ <p>Thank you for your dedication to the NHS.</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..bbf4682
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://nhspaycalc.scroll.pub
+metaTags
+editButton /edit.html
+title NHS Pay Calculator
+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..c80e63a
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "136a85bd-bc1c-49b0-bcd2-42cf2a9d1771",
+ "object": "chat.completion",
+ "created": 1735522995,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nnhspaycalc.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://nhspaycalc.scroll.pub\nmetaTags\neditButton /edit.html\ntitle NHS Pay Calculator\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>NHS Pay Calculator</h1>\n <p>Calculate your NHS pay and compare it with your payslip.</p>\n</header>\n<main>\n <section>\n <h2>Enter Your Details</h2>\n <form id=\"payForm\">\n <label for=\"hoursWorked\">Hours Worked:</label>\n <input type=\"number\" id=\"hoursWorked\" name=\"hoursWorked\" required>\n \n <label for=\"hourlyRate\">Hourly Rate (£):</label>\n <input type=\"number\" id=\"hourlyRate\" name=\"hourlyRate\" step=\"0.01\" required>\n \n <label for=\"overtimeHours\">Overtime Hours:</label>\n <input type=\"number\" id=\"overtimeHours\" name=\"overtimeHours\">\n \n <label for=\"overtimeRate\">Overtime Rate (£):</label>\n <input type=\"number\" id=\"overtimeRate\" name=\"overtimeRate\" step=\"0.01\">\n \n <button type=\"submit\">Calculate Pay</button>\n </form>\n </section>\n <section>\n <h2>Your Pay Calculation</h2>\n <div id=\"result\">\n <p>Total Pay: £<span id=\"totalPay\">0.00</span></p>\n </div>\n </section>\n</main>\n<footer>\n <p>Thank you for your dedication to the NHS.</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Arial', sans-serif;\n background: linear-gradient(135deg, #0072ff, #00c6ff);\n color: #fff;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-height: 100vh;\n}\n\nheader {\n text-align: center;\n margin-bottom: 2rem;\n}\n\nh1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\np {\n font-size: 1.2rem;\n}\n\nmain {\n background: rgba(255, 255, 255, 0.1);\n padding: 2rem;\n border-radius: 10px;\n width: 90%;\n max-width: 500px;\n}\n\nform {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\n margin-bottom: 0.5rem;\n font-size: 1.1rem;\n}\n\ninput {\n padding: 0.5rem;\n margin-bottom: 1rem;\n border: none;\n border-radius: 5px;\n}\n\nbutton {\n padding: 0.75rem;\n background: #00c6ff;\n border: none;\n border-radius: 5px;\n color: #fff;\n font-size: 1.1rem;\n cursor: pointer;\n}\n\nbutton:hover {\n background: #0072ff;\n}\n\n#result {\n text-align: center;\n margin-top: 2rem;\n}\n\n#totalPay {\n font-size: 1.5rem;\n font-weight: bold;\n}\n\nfooter {\n text-align: center;\n margin-top: 2rem;\n font-size: 1rem;\n}\n\n@media (max-width: 600px) {\n h1 {\n font-size: 2rem;\n }\n\n p {\n font-size: 1rem;\n }\n\n main {\n padding: 1rem;\n }\n\n label {\n font-size: 1rem;\n }\n\n input {\n padding: 0.4rem;\n }\n\n button {\n padding: 0.6rem;\n font-size: 1rem;\n }\n\n #totalPay {\n font-size: 1.2rem;\n }\n}\n---script.js---\ndocument.getElementById('payForm').addEventListener('submit', function(event) {\n event.preventDefault();\n \n const hoursWorked = parseFloat(document.getElementById('hoursWorked').value);\n const hourlyRate = parseFloat(document.getElementById('hourlyRate').value);\n const overtimeHours = parseFloat(document.getElementById('overtimeHours').value) || 0;\n const overtimeRate = parseFloat(document.getElementById('overtimeRate').value) || 0;\n \n const regularPay = hoursWorked * hourlyRate;\n const overtimePay = overtimeHours * overtimeRate;\n const totalPay = regularPay + overtimePay;\n \n document.getElementById('totalPay').textContent = totalPay.toFixed(2);\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 262,
+ "completion_tokens": 1054,
+ "total_tokens": 1316,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 262
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..37b0f8a
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# nhspaycalc.scroll.pub
+Website generated by DeepSeek from prompt: I want a dazzling looking website that helps nhs workers calculate their pay according that they have worked so they can compare with their payslips
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..f9e7d72
--- /dev/null
+++ b/script.js
@@ -0,0 +1,14 @@
+document.getElementById('payForm').addEventListener('submit', function(event) {
+ event.preventDefault();
+
+ const hoursWorked = parseFloat(document.getElementById('hoursWorked').value);
+ const hourlyRate = parseFloat(document.getElementById('hourlyRate').value);
+ const overtimeHours = parseFloat(document.getElementById('overtimeHours').value) || 0;
+ const overtimeRate = parseFloat(document.getElementById('overtimeRate').value) || 0;
+
+ const regularPay = hoursWorked * hourlyRate;
+ const overtimePay = overtimeHours * overtimeRate;
+ const totalPay = regularPay + overtimePay;
+
+ document.getElementById('totalPay').textContent = totalPay.toFixed(2);
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..5908730
--- /dev/null
+++ b/style.css
@@ -0,0 +1,112 @@
+body {
+ font-family: 'Arial', sans-serif;
+ background: linear-gradient(135deg, #0072ff, #00c6ff);
+ color: #fff;
+ margin: 0;
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ min-height: 100vh;
+}
+
+header {
+ text-align: center;
+ margin-bottom: 2rem;
+}
+
+h1 {
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+}
+
+p {
+ font-size: 1.2rem;
+}
+
+main {
+ background: rgba(255, 255, 255, 0.1);
+ padding: 2rem;
+ border-radius: 10px;
+ width: 90%;
+ max-width: 500px;
+}
+
+form {
+ display: flex;
+ flex-direction: column;
+}
+
+label {
+ margin-bottom: 0.5rem;
+ font-size: 1.1rem;
+}
+
+input {
+ padding: 0.5rem;
+ margin-bottom: 1rem;
+ border: none;
+ border-radius: 5px;
+}
+
+button {
+ padding: 0.75rem;
+ background: #00c6ff;
+ border: none;
+ border-radius: 5px;
+ color: #fff;
+ font-size: 1.1rem;
+ cursor: pointer;
+}
+
+button:hover {
+ background: #0072ff;
+}
+
+#result {
+ text-align: center;
+ margin-top: 2rem;
+}
+
+#totalPay {
+ font-size: 1.5rem;
+ font-weight: bold;
+}
+
+footer {
+ text-align: center;
+ margin-top: 2rem;
+ font-size: 1rem;
+}
+
+@media (max-width: 600px) {
+ h1 {
+ font-size: 2rem;
+ }
+
+ p {
+ font-size: 1rem;
+ }
+
+ main {
+ padding: 1rem;
+ }
+
+ label {
+ font-size: 1rem;
+ }
+
+ input {
+ padding: 0.4rem;
+ }
+
+ button {
+ padding: 0.6rem;
+ font-size: 1rem;
+ }
+
+ #totalPay {
+ font-size: 1.2rem;
+ }
+}
\ No newline at end of file