commit 03104f6644ebda3d69cc5b2ad1d27c42965bfb5d
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 03:00:32 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..17af393
--- /dev/null
+++ b/body.html
@@ -0,0 +1,40 @@
+<header>
+ <h1>WhatsApp Template Generator</h1>
+ <p>Create and customize WhatsApp message templates for Meta integration</p>
+</header>
+
+<main>
+ <section class="template-form">
+ <h2>Create Your Template</h2>
+ <form id="templateForm">
+ <div class="form-group">
+ <label for="templateName">Template Name:</label>
+ <input type="text" id="templateName" required>
+ </div>
+
+ <div class="form-group">
+ <label for="messageContent">Message Content:</label>
+ <textarea id="messageContent" rows="6" required></textarea>
+ </div>
+
+ <div class="form-group">
+ <label for="variables">Variables (comma separated):</label>
+ <input type="text" id="variables">
+ </div>
+
+ <button type="submit">Generate Template</button>
+ </form>
+ </section>
+
+ <section class="template-output">
+ <h2>Generated Template</h2>
+ <div class="output-container">
+ <pre id="jsonOutput"></pre>
+ </div>
+ <button id="copyButton">Copy to Clipboard</button>
+ </section>
+</main>
+
+<footer>
+ <p>Simple and efficient WhatsApp template generation</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..b3c4fbb
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://whatsgen.scroll.pub
+metaTags
+editButton /edit.html
+title WhatsApp Template Generator
+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..78360a7
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "3c428f70-dcad-41fa-a5c3-74a03d326bbd",
+ "object": "chat.completion",
+ "created": 1735354817,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nwhatsgen.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://whatsgen.scroll.pub\nmetaTags\neditButton /edit.html\ntitle WhatsApp Template Generator\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>WhatsApp Template Generator</h1>\n <p>Create and customize WhatsApp message templates for Meta integration</p>\n</header>\n\n<main>\n <section class=\"template-form\">\n <h2>Create Your Template</h2>\n <form id=\"templateForm\">\n <div class=\"form-group\">\n <label for=\"templateName\">Template Name:</label>\n <input type=\"text\" id=\"templateName\" required>\n </div>\n \n <div class=\"form-group\">\n <label for=\"messageContent\">Message Content:</label>\n <textarea id=\"messageContent\" rows=\"6\" required></textarea>\n </div>\n\n <div class=\"form-group\">\n <label for=\"variables\">Variables (comma separated):</label>\n <input type=\"text\" id=\"variables\">\n </div>\n\n <button type=\"submit\">Generate Template</button>\n </form>\n </section>\n\n <section class=\"template-output\">\n <h2>Generated Template</h2>\n <div class=\"output-container\">\n <pre id=\"jsonOutput\"></pre>\n </div>\n <button id=\"copyButton\">Copy to Clipboard</button>\n </section>\n</main>\n\n<footer>\n <p>Simple and efficient WhatsApp template generation</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #25D366;\n --secondary-color: #075E54;\n --background-color: #f5f5f5;\n --text-color: #333;\n --white: #ffffff;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n padding: 2rem;\n}\n\nheader {\n text-align: center;\n margin-bottom: 2rem;\n}\n\nheader h1 {\n color: var(--secondary-color);\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\nmain {\n max-width: 800px;\n margin: 0 auto;\n}\n\n.template-form, .template-output {\n background: var(--white);\n padding: 2rem;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n margin-bottom: 2rem;\n}\n\n.form-group {\n margin-bottom: 1.5rem;\n}\n\nlabel {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 600;\n}\n\ninput, textarea {\n width: 100%;\n padding: 0.8rem;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-size: 1rem;\n}\n\ntextarea {\n resize: vertical;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: var(--white);\n border: none;\n padding: 1rem 2rem;\n border-radius: 4px;\n cursor: pointer;\n font-size: 1rem;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: var(--secondary-color);\n}\n\n.output-container {\n background: #f8f9fa;\n padding: 1rem;\n border-radius: 4px;\n margin-bottom: 1rem;\n}\n\npre {\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n\nfooter {\n text-align: center;\n margin-top: 2rem;\n color: #666;\n}\n\n@media (max-width: 768px) {\n body {\n padding: 1rem;\n }\n \n header h1 {\n font-size: 2rem;\n }\n \n .template-form, .template-output {\n padding: 1.5rem;\n }\n}\n---script.js---\ndocument.getElementById('templateForm').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const templateName = document.getElementById('templateName').value;\n const messageContent = document.getElementById('messageContent').value;\n const variables = document.getElementById('variables').value.split(',').map(v => v.trim());\n \n const templateData = {\n name: templateName,\n message: messageContent,\n variables: variables.filter(v => v !== '')\n };\n \n const jsonOutput = JSON.stringify(templateData, null, 2);\n document.getElementById('jsonOutput').textContent = jsonOutput;\n});\n\ndocument.getElementById('copyButton').addEventListener('click', function() {\n const output = document.getElementById('jsonOutput').textContent;\n navigator.clipboard.writeText(output)\n .then(() => alert('Template copied to clipboard!'))\n .catch(() => alert('Failed to copy template'));\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 251,
+ "completion_tokens": 1112,
+ "total_tokens": 1363,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 251
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..17046b9
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# whatsgen.scroll.pub
+Website generated by DeepSeek from prompt: Create a whatsapp template generator than can modify and generate the data to sent to meta
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..0843f78
--- /dev/null
+++ b/script.js
@@ -0,0 +1,23 @@
+document.getElementById('templateForm').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const templateName = document.getElementById('templateName').value;
+ const messageContent = document.getElementById('messageContent').value;
+ const variables = document.getElementById('variables').value.split(',').map(v => v.trim());
+
+ const templateData = {
+ name: templateName,
+ message: messageContent,
+ variables: variables.filter(v => v !== '')
+ };
+
+ const jsonOutput = JSON.stringify(templateData, null, 2);
+ document.getElementById('jsonOutput').textContent = jsonOutput;
+});
+
+document.getElementById('copyButton').addEventListener('click', function() {
+ const output = document.getElementById('jsonOutput').textContent;
+ navigator.clipboard.writeText(output)
+ .then(() => alert('Template copied to clipboard!'))
+ .catch(() => alert('Failed to copy template'));
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..7c5a18f
--- /dev/null
+++ b/style.css
@@ -0,0 +1,114 @@
+:root {
+ --primary-color: #25D366;
+ --secondary-color: #075E54;
+ --background-color: #f5f5f5;
+ --text-color: #333;
+ --white: #ffffff;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+ padding: 2rem;
+}
+
+header {
+ text-align: center;
+ margin-bottom: 2rem;
+}
+
+header h1 {
+ color: var(--secondary-color);
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+}
+
+main {
+ max-width: 800px;
+ margin: 0 auto;
+}
+
+.template-form, .template-output {
+ background: var(--white);
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
+ margin-bottom: 2rem;
+}
+
+.form-group {
+ margin-bottom: 1.5rem;
+}
+
+label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: 600;
+}
+
+input, textarea {
+ width: 100%;
+ padding: 0.8rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ font-size: 1rem;
+}
+
+textarea {
+ resize: vertical;
+}
+
+button {
+ background-color: var(--primary-color);
+ color: var(--white);
+ border: none;
+ padding: 1rem 2rem;
+ border-radius: 4px;
+ cursor: pointer;
+ font-size: 1rem;
+ transition: background-color 0.3s ease;
+}
+
+button:hover {
+ background-color: var(--secondary-color);
+}
+
+.output-container {
+ background: #f8f9fa;
+ padding: 1rem;
+ border-radius: 4px;
+ margin-bottom: 1rem;
+}
+
+pre {
+ white-space: pre-wrap;
+ word-wrap: break-word;
+}
+
+footer {
+ text-align: center;
+ margin-top: 2rem;
+ color: #666;
+}
+
+@media (max-width: 768px) {
+ body {
+ padding: 1rem;
+ }
+
+ header h1 {
+ font-size: 2rem;
+ }
+
+ .template-form, .template-output {
+ padding: 1.5rem;
+ }
+}
\ No newline at end of file