diff --git a/Citation Generator/icon128.png b/Citation Generator/icon128.png new file mode 100644 index 00000000..2f1ded66 Binary files /dev/null and b/Citation Generator/icon128.png differ diff --git a/Citation Generator/icon16.png b/Citation Generator/icon16.png new file mode 100644 index 00000000..7712eb82 Binary files /dev/null and b/Citation Generator/icon16.png differ diff --git a/Citation Generator/icon48.png b/Citation Generator/icon48.png new file mode 100644 index 00000000..625ebce4 Binary files /dev/null and b/Citation Generator/icon48.png differ diff --git a/Citation Generator/index.html b/Citation Generator/index.html new file mode 100644 index 00000000..d31aa7a6 --- /dev/null +++ b/Citation Generator/index.html @@ -0,0 +1,34 @@ + + + + + + Citation Generator + + +
+

Citation Generator

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

Your Citation:

+

+
+
+ + + \ No newline at end of file diff --git a/Citation Generator/manifest.json b/Citation Generator/manifest.json new file mode 100644 index 00000000..218560ca --- /dev/null +++ b/Citation Generator/manifest.json @@ -0,0 +1,16 @@ +{ + "manifest_version": 3, + "name": "Citation Generator", + "version": "1.0", + "description": "A simple citation generator tool.", + "icons": { + "16": "icon16.png", + "48": "icon48.png", + "128": "icon128.png" + }, + "action": { + "default_popup": "index.html", + "default_icon": "icon128.png" + }, + "permissions": [] +} diff --git a/Citation Generator/script.js b/Citation Generator/script.js new file mode 100644 index 00000000..22cf6a44 --- /dev/null +++ b/Citation Generator/script.js @@ -0,0 +1,13 @@ +document.getElementById('citation-form').addEventListener('submit', function(e) { + e.preventDefault(); + + const author = document.getElementById('author').value; + const title = document.getElementById('title').value; + const publisher = document.getElementById('publisher').value; + const year = document.getElementById('year').value; + + const citation = `${author}. (${year}). *${title}*. ${publisher}.`; + + document.getElementById('citation').textContent = citation; + +}); \ No newline at end of file diff --git a/Citation Generator/style.css b/Citation Generator/style.css new file mode 100644 index 00000000..db9d1fe9 --- /dev/null +++ b/Citation Generator/style.css @@ -0,0 +1,55 @@ +body { + width: 100%; + font-family: Arial, sans-serif; + background-color: #f4f4f4; + margin: 0; + padding: 0; +} + +.container { + max-width: fit-content; + margin: 50px auto; + padding: 20px; +} + +h1 { + text-align: center; +} + +form { + display: flex; + flex-direction: column; +} + +label { + margin-top: 10px; +} + +input { + padding: 8px; + margin-top: 5px; + font-size: 16px; +} + +button { + margin-top: 20px; + padding: 10px; + font-size: 16px; + background-color: #007bff; + color: #fff; + border: none; + cursor: pointer; +} + +button:hover { + background-color: #0056b3; +} + +#citation-output { + margin-top: 20px; +} + +#citation { + font-style: italic; + color: #333; +} \ No newline at end of file