commit 90226cb626be6c428d4cdb533db0b7df6a9f9c9f
Author: root <root@hub.scroll.pub>
Date: 2024-12-27 19:06:04 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..8752796
--- /dev/null
+++ b/body.html
@@ -0,0 +1,33 @@
+<header>
+ <h1>Rent or Sell?</h1>
+ <p>Use this interactive financial model to decide whether to sell your property or continue renting it out.</p>
+</header>
+<main>
+ <section id="inputs">
+ <h2>Input Your Property Details</h2>
+ <form id="propertyForm">
+ <label for="propertyValue">Current Property Value ($):</label>
+ <input type="number" id="propertyValue" required>
+
+ <label for="rentalIncome">Monthly Rental Income ($):</label>
+ <input type="number" id="rentalIncome" required>
+
+ <label for="expenses">Monthly Expenses ($):</label>
+ <input type="number" id="expenses" required>
+
+ <label for="years">Time Horizon (Years):</label>
+ <input type="number" id="years" required>
+
+ <button type="submit">Calculate</button>
+ </form>
+ </section>
+ <section id="results">
+ <h2>Results</h2>
+ <p id="rentalProfit"></p>
+ <p id="saleProfit"></p>
+ <p id="recommendation"></p>
+ </section>
+</main>
+<footer>
+ <p>Disclaimer: This tool provides estimates only. Consult a financial advisor for personalized advice.</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..dd6bd54
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://rentorsell.scroll.pub
+metaTags
+editButton /edit.html
+title Rent or Sell: Interactive Financial Model
+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..362d22d
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "b4e28bc0-1f56-4ca9-aefd-2e8cc267b3a4",
+ "object": "chat.completion",
+ "created": 1735326350,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nrentorsell.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://rentorsell.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Rent or Sell: Interactive Financial Model\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Rent or Sell?</h1>\n <p>Use this interactive financial model to decide whether to sell your property or continue renting it out.</p>\n</header>\n<main>\n <section id=\"inputs\">\n <h2>Input Your Property Details</h2>\n <form id=\"propertyForm\">\n <label for=\"propertyValue\">Current Property Value ($):</label>\n <input type=\"number\" id=\"propertyValue\" required>\n \n <label for=\"rentalIncome\">Monthly Rental Income ($):</label>\n <input type=\"number\" id=\"rentalIncome\" required>\n \n <label for=\"expenses\">Monthly Expenses ($):</label>\n <input type=\"number\" id=\"expenses\" required>\n \n <label for=\"years\">Time Horizon (Years):</label>\n <input type=\"number\" id=\"years\" required>\n \n <button type=\"submit\">Calculate</button>\n </form>\n </section>\n <section id=\"results\">\n <h2>Results</h2>\n <p id=\"rentalProfit\"></p>\n <p id=\"saleProfit\"></p>\n <p id=\"recommendation\"></p>\n </section>\n</main>\n<footer>\n <p>Disclaimer: This tool provides estimates only. Consult a financial advisor for personalized advice.</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n line-height: 1.6;\n margin: 0;\n padding: 20px;\n background: #f4f4f4;\n color: #333;\n}\n\nheader {\n background: #005f73;\n color: #fff;\n padding: 20px 0;\n text-align: center;\n}\n\nmain {\n max-width: 800px;\n margin: 20px auto;\n padding: 20px;\n background: #fff;\n box-shadow: 0 0 10px rgba(0,0,0,0.1);\n}\n\nh1, h2 {\n color: #005f73;\n}\n\nform {\n display: grid;\n gap: 15px;\n}\n\nlabel {\n font-weight: bold;\n}\n\ninput[type=\"number\"] {\n padding: 8px;\n border: 1px solid #ddd;\n border-radius: 4px;\n}\n\nbutton {\n background: #0a9396;\n color: #fff;\n padding: 10px 15px;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n}\n\nbutton:hover {\n background: #94d2bd;\n}\n\n#results {\n margin-top: 20px;\n padding: 15px;\n background: #e9ecef;\n border-radius: 4px;\n}\n\nfooter {\n text-align: center;\n margin-top: 20px;\n font-size: 0.9em;\n color: #666;\n}\n\n@media (max-width: 600px) {\n body {\n padding: 10px;\n }\n\n main {\n padding: 15px;\n }\n\n form {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\ndocument.getElementById('propertyForm').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const propertyValue = parseFloat(document.getElementById('propertyValue').value);\n const rentalIncome = parseFloat(document.getElementById('rentalIncome').value);\n const expenses = parseFloat(document.getElementById('expenses').value);\n const years = parseFloat(document.getElementById('years').value);\n \n const rentalProfit = (rentalIncome - expenses) * 12 * years;\n const saleProfit = propertyValue * 1.05; // Assuming 5% appreciation\n \n document.getElementById('rentalProfit').textContent = `Total Rental Profit over ${years} years: $${rentalProfit.toLocaleString()}`;\n document.getElementById('saleProfit').textContent = `Estimated Sale Profit: $${saleProfit.toLocaleString()}`;\n \n if (rentalProfit > saleProfit) {\n document.getElementById('recommendation').textContent = 'Recommendation: Continue Renting';\n } else {\n document.getElementById('recommendation').textContent = 'Recommendation: Sell the Property';\n }\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 262,
+ "completion_tokens": 1006,
+ "total_tokens": 1268,
+ "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..96d0e8d
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# rentorsell.scroll.pub
+Website generated by DeepSeek from prompt: build me a website that provides an interactive financial model to help users decide if it is worth selling a real estate property or continue renting the property.
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..d43bafc
--- /dev/null
+++ b/script.js
@@ -0,0 +1,20 @@
+document.getElementById('propertyForm').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const propertyValue = parseFloat(document.getElementById('propertyValue').value);
+ const rentalIncome = parseFloat(document.getElementById('rentalIncome').value);
+ const expenses = parseFloat(document.getElementById('expenses').value);
+ const years = parseFloat(document.getElementById('years').value);
+
+ const rentalProfit = (rentalIncome - expenses) * 12 * years;
+ const saleProfit = propertyValue * 1.05; // Assuming 5% appreciation
+
+ document.getElementById('rentalProfit').textContent = `Total Rental Profit over ${years} years: $${rentalProfit.toLocaleString()}`;
+ document.getElementById('saleProfit').textContent = `Estimated Sale Profit: $${saleProfit.toLocaleString()}`;
+
+ if (rentalProfit > saleProfit) {
+ document.getElementById('recommendation').textContent = 'Recommendation: Continue Renting';
+ } else {
+ document.getElementById('recommendation').textContent = 'Recommendation: Sell the Property';
+ }
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..1737caf
--- /dev/null
+++ b/style.css
@@ -0,0 +1,83 @@
+body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ line-height: 1.6;
+ margin: 0;
+ padding: 20px;
+ background: #f4f4f4;
+ color: #333;
+}
+
+header {
+ background: #005f73;
+ color: #fff;
+ padding: 20px 0;
+ text-align: center;
+}
+
+main {
+ max-width: 800px;
+ margin: 20px auto;
+ padding: 20px;
+ background: #fff;
+ box-shadow: 0 0 10px rgba(0,0,0,0.1);
+}
+
+h1, h2 {
+ color: #005f73;
+}
+
+form {
+ display: grid;
+ gap: 15px;
+}
+
+label {
+ font-weight: bold;
+}
+
+input[type="number"] {
+ padding: 8px;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+}
+
+button {
+ background: #0a9396;
+ color: #fff;
+ padding: 10px 15px;
+ border: none;
+ border-radius: 4px;
+ cursor: pointer;
+}
+
+button:hover {
+ background: #94d2bd;
+}
+
+#results {
+ margin-top: 20px;
+ padding: 15px;
+ background: #e9ecef;
+ border-radius: 4px;
+}
+
+footer {
+ text-align: center;
+ margin-top: 20px;
+ font-size: 0.9em;
+ color: #666;
+}
+
+@media (max-width: 600px) {
+ body {
+ padding: 10px;
+ }
+
+ main {
+ padding: 15px;
+ }
+
+ form {
+ grid-template-columns: 1fr;
+ }
+}
\ No newline at end of file