Changes to pollify.scroll.pub

root
root
21 days ago
Initial commit
body.html
Changed around line 1
+
+

Pollify

+

Create and share interactive opinion polls with ease!

+
+
+
+
+

Create Your Poll

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Your Poll

+
+
+
+
+
+
+

Share your poll and gather opinions!

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://pollify.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Pollify - Interactive Opinion Polls
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "1acdea88-88f6-4640-8308-2bb11ba034ec",
+ "object": "chat.completion",
+ "created": 1735724639,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\npollify.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://pollify.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Pollify - Interactive Opinion Polls\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

Pollify

\n

Create and share interactive opinion polls with ease!

\n
\n\n
\n
\n

Create Your Poll

\n
\n \n \n \n
\n \n
\n \n \n
\n
\n \n \n \n
\n
\n\n
\n

Your Poll

\n
\n \n
\n
\n\n
\n

Share your poll and gather opinions!

\n
\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #50e3c2;\n --background-color: #f5f5f5;\n --text-color: #333;\n --border-radius: 8px;\n --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n padding: 20px;\n}\n\nheader {\n text-align: center;\n margin-bottom: 40px;\n}\n\nh1 {\n color: var(--primary-color);\n font-size: 2.5rem;\n}\n\nh2 {\n color: var(--primary-color);\n margin-bottom: 20px;\n}\n\nmain {\n max-width: 800px;\n margin: 0 auto;\n}\n\n#poll-creator {\n background: white;\n padding: 20px;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n}\n\nlabel {\n display: block;\n margin-bottom: 10px;\n font-weight: bold;\n}\n\ninput[type=\"text\"] {\n width: 100%;\n padding: 10px;\n margin-bottom: 15px;\n border: 1px solid #ddd;\n border-radius: var(--border-radius);\n}\n\n.option {\n display: flex;\n align-items: center;\n margin-bottom: 10px;\n}\n\n.option-input {\n flex: 1;\n margin-right: 10px;\n}\n\n.remove-option {\n background: #ff6b6b;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n}\n\nbutton {\n padding: 10px 20px;\n border: none;\n border-radius: var(--border-radius);\n background-color: var(--primary-color);\n color: white;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: var(--secondary-color);\n}\n\n#add-option {\n margin-bottom: 20px;\n}\n\n#poll-display {\n background: white;\n padding: 20px;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n margin-top: 20px;\n}\n\n#poll-results {\n margin-bottom: 20px;\n}\n\n.hidden {\n display: none;\n}\n\nfooter {\n text-align: center;\n margin-top: 40px;\n color: #666;\n}\n\n@media (max-width: 600px) {\n h1 {\n font-size: 2rem;\n }\n\n input[type=\"text\"] {\n padding: 8px;\n }\n\n button {\n padding: 8px 16px;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function () {\n const pollForm = document.getElementById('poll-form');\n const optionsContainer = document.getElementById('options-container');\n const addOptionButton = document.getElementById('add-option');\n const pollDisplay = document.getElementById('poll-display');\n const pollResults = document.getElementById('poll-results');\n const resetPollButton = document.getElementById('reset-poll');\n\n let optionCount = 1;\n\n addOptionButton.addEventListener('click', function () {\n optionCount++;\n const newOption = document.createElement('div');\n newOption.classList.add('option');\n newOption.innerHTML = `\n \n \n `;\n optionsContainer.appendChild(newOption);\n });\n\n optionsContainer.addEventListener('click', function (e) {\n if (e.target.classList.contains('remove-option')) {\n e.target.parentElement.remove();\n optionCount--;\n }\n });\n\n pollForm.addEventListener('submit', function (e) {\n e.preventDefault();\n const question = document.getElementById('poll-question').value;\n const options = Array.from(document.querySelectorAll('.option-input')).map(input => input.value);\n\n pollResults.innerHTML = `\n

${question}

\n
    \n ${options.map(option => `
  • ${option}
  • `).join('')}\n
\n `;\n\n pollForm.reset();\n optionsContainer.innerHTML = `\n \n
\n \n \n
\n `;\n optionCount = 1;\n\n pollDisplay.classList.remove('hidden');\n pollForm.classList.add('hidden');\n });\n\n resetPollButton.addEventListener('click', function () {\n pollDisplay.classList.add('hidden');\n pollForm.classList.remove('hidden');\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 258,
+ "completion_tokens": 1467,
+ "total_tokens": 1725,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 258
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # pollify.scroll.pub
+ Website generated by DeepSeek from prompt: Create an Interactive Webpage for opinion polls. Should be user friendly and colourful. Should be easy to customise all options
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', function () {
+ const pollForm = document.getElementById('poll-form');
+ const optionsContainer = document.getElementById('options-container');
+ const addOptionButton = document.getElementById('add-option');
+ const pollDisplay = document.getElementById('poll-display');
+ const pollResults = document.getElementById('poll-results');
+ const resetPollButton = document.getElementById('reset-poll');
+
+ let optionCount = 1;
+
+ addOptionButton.addEventListener('click', function () {
+ optionCount++;
+ const newOption = document.createElement('div');
+ newOption.classList.add('option');
+ newOption.innerHTML = `
+
+
+ `;
+ optionsContainer.appendChild(newOption);
+ });
+
+ optionsContainer.addEventListener('click', function (e) {
+ if (e.target.classList.contains('remove-option')) {
+ e.target.parentElement.remove();
+ optionCount--;
+ }
+ });
+
+ pollForm.addEventListener('submit', function (e) {
+ e.preventDefault();
+ const question = document.getElementById('poll-question').value;
+ const options = Array.from(document.querySelectorAll('.option-input')).map(input => input.value);
+
+ pollResults.innerHTML = `
+

${question}

+
    + ${options.map(option => `
  • ${option}
  • `).join('')}
    +
    + `;
    +
    + pollForm.reset();
    + optionsContainer.innerHTML = `
    +
    +
    +
    +
    +
    + `;
    + optionCount = 1;
    +
    + pollDisplay.classList.remove('hidden');
    + pollForm.classList.add('hidden');
    + });
    +
    + resetPollButton.addEventListener('click', function () {
    + pollDisplay.classList.add('hidden');
    + pollForm.classList.remove('hidden');
    + });
    + });
    style.css
    Changed around line 1
    + :root {
    + --primary-color: #4a90e2;
    + --secondary-color: #50e3c2;
    + --background-color: #f5f5f5;
    + --text-color: #333;
    + --border-radius: 8px;
    + --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    + }
    +
    + * {
    + margin: 0;
    + padding: 0;
    + box-sizing: border-box;
    + }
    +
    + body {
    + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    + line-height: 1.6;
    + color: var(--text-color);
    + background-color: var(--background-color);
    + padding: 20px;
    + }
    +
    + header {
    + text-align: center;
    + margin-bottom: 40px;
    + }
    +
    + h1 {
    + color: var(--primary-color);
    + font-size: 2.5rem;
    + }
    +
    + h2 {
    + color: var(--primary-color);
    + margin-bottom: 20px;
    + }
    +
    + main {
    + max-width: 800px;
    + margin: 0 auto;
    + }
    +
    + #poll-creator {
    + background: white;
    + padding: 20px;
    + border-radius: var(--border-radius);
    + box-shadow: var(--box-shadow);
    + }
    +
    + label {
    + display: block;
    + margin-bottom: 10px;
    + font-weight: bold;
    + }
    +
    + input[type="text"] {
    + width: 100%;
    + padding: 10px;
    + margin-bottom: 15px;
    + border: 1px solid #ddd;
    + border-radius: var(--border-radius);
    + }
    +
    + .option {
    + display: flex;
    + align-items: center;
    + margin-bottom: 10px;
    + }
    +
    + .option-input {
    + flex: 1;
    + margin-right: 10px;
    + }
    +
    + .remove-option {
    + background: #ff6b6b;
    + color: white;
    + border: none;
    + border-radius: 50%;
    + width: 24px;
    + height: 24px;
    + cursor: pointer;
    + }
    +
    + button {
    + padding: 10px 20px;
    + border: none;
    + border-radius: var(--border-radius);
    + background-color: var(--primary-color);
    + color: white;
    + cursor: pointer;
    + transition: background-color 0.3s ease;
    + }
    +
    + button:hover {
    + background-color: var(--secondary-color);
    + }
    +
    + #add-option {
    + margin-bottom: 20px;
    + }
    +
    + #poll-display {
    + background: white;
    + padding: 20px;
    + border-radius: var(--border-radius);
    + box-shadow: var(--box-shadow);
    + margin-top: 20px;
    + }
    +
    + #poll-results {
    + margin-bottom: 20px;
    + }
    +
    + .hidden {
    + display: none;
    + }
    +
    + footer {
    + text-align: center;
    + margin-top: 40px;
    + color: #666;
    + }
    +
    + @media (max-width: 600px) {
    + h1 {
    + font-size: 2rem;
    + }
    +
    + input[type="text"] {
    + padding: 8px;
    + }
    +
    + button {
    + padding: 8px 16px;
    + }
    + }