Changes to plantumlgen.scroll.pub

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

PlantUML Flowchart Generator

+

Describe your flowchart in plain text and see it visualized instantly.

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

Created with ❤️ for visualizing ideas.

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://plantumlgen.scroll.pub
+ metaTags
+ editButton /edit.html
+ title PlantUML Flowchart Generator
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "ec9a8842-57e2-4a82-a205-c9f43396810e",
+ "object": "chat.completion",
+ "created": 1735784241,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nplantumlgen.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://plantumlgen.scroll.pub\nmetaTags\neditButton /edit.html\ntitle PlantUML Flowchart Generator\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

PlantUML Flowchart Generator

\n

Describe your flowchart in plain text and see it visualized instantly.

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

Created with ❤️ for visualizing ideas.

\n
\n---style.css---\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n margin: 0;\n padding: 0;\n background: linear-gradient(135deg, #f5f7fa, #c3cfe2);\n color: #333;\n line-height: 1.6;\n}\n\nheader {\n background: #4a90e2;\n color: white;\n padding: 2rem 1rem;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\nmain {\n padding: 2rem 1rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\ntextarea {\n width: 100%;\n height: 150px;\n padding: 1rem;\n border: 1px solid #ddd;\n border-radius: 8px;\n font-size: 1rem;\n margin-bottom: 1rem;\n resize: vertical;\n}\n\nbutton {\n background: #4a90e2;\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 8px;\n font-size: 1rem;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\nbutton:hover {\n background: #357abd;\n}\n\n#flowchart {\n margin-top: 2rem;\n padding: 1rem;\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: #333;\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n textarea {\n height: 100px;\n }\n}\n---script.js---\ndocument.getElementById('generate').addEventListener('click', function() {\n const description = document.getElementById('description').value;\n if (description.trim() === '') {\n alert('Please enter a description for the flowchart.');\n return;\n }\n\n const encodedDescription = encodeURIComponent(description);\n const plantUmlUrl = `https://www.plantuml.com/plantuml/svg/~1${encodedDescription}`;\n\n const flowchartDiv = document.getElementById('flowchart');\n flowchartDiv.innerHTML = `\"Generated`;\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 248,
+ "completion_tokens": 800,
+ "total_tokens": 1048,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 248
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # plantumlgen.scroll.pub
+ Website generated by DeepSeek from prompt: 我需要一个网站,可以根据我的描述,绘制一个plantuml流程图
script.js
Changed around line 1
+ document.getElementById('generate').addEventListener('click', function() {
+ const description = document.getElementById('description').value;
+ if (description.trim() === '') {
+ alert('Please enter a description for the flowchart.');
+ return;
+ }
+
+ const encodedDescription = encodeURIComponent(description);
+ const plantUmlUrl = `https://www.plantuml.com/plantuml/svg/~1${encodedDescription}`;
+
+ const flowchartDiv = document.getElementById('flowchart');
+ flowchartDiv.innerHTML = `Generated Flowchart`;
+ });
style.css
Changed around line 1
+ body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ margin: 0;
+ padding: 0;
+ background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
+ color: #333;
+ line-height: 1.6;
+ }
+
+ header {
+ background: #4a90e2;
+ color: white;
+ padding: 2rem 1rem;
+ text-align: center;
+ }
+
+ header h1 {
+ margin: 0;
+ font-size: 2.5rem;
+ }
+
+ header p {
+ margin: 0.5rem 0 0;
+ font-size: 1.2rem;
+ }
+
+ main {
+ padding: 2rem 1rem;
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ textarea {
+ width: 100%;
+ height: 150px;
+ padding: 1rem;
+ border: 1px solid #ddd;
+ border-radius: 8px;
+ font-size: 1rem;
+ margin-bottom: 1rem;
+ resize: vertical;
+ }
+
+ button {
+ background: #4a90e2;
+ color: white;
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: 8px;
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background 0.3s ease;
+ }
+
+ button:hover {
+ background: #357abd;
+ }
+
+ #flowchart {
+ margin-top: 2rem;
+ padding: 1rem;
+ background: white;
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ }
+
+ footer {
+ text-align: center;
+ padding: 1rem;
+ background: #333;
+ color: white;
+ margin-top: 2rem;
+ }
+
+ @media (max-width: 768px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ textarea {
+ height: 100px;
+ }
+ }