+
+
+
+
+
+
\ No newline at end of file
diff --git a/images/Gallery/Thumbs/wakeycommthumb.png b/images/Gallery/Thumbs/wakeycommthumb.png
new file mode 100644
index 0000000..3c0bf3d
Binary files /dev/null and b/images/Gallery/Thumbs/wakeycommthumb.png differ
diff --git a/images/Gallery/images/nerdtfcomiccomm.png b/images/Gallery/images/nerdtfcomiccomm.png
new file mode 100644
index 0000000..5796c44
Binary files /dev/null and b/images/Gallery/images/nerdtfcomiccomm.png differ
diff --git a/js/tagsorting.js b/js/tagsorting.js
new file mode 100644
index 0000000..3f2ebce
--- /dev/null
+++ b/js/tagsorting.js
@@ -0,0 +1,44 @@
+
+// functionality:
+// display a list of buttons which are tags at the top
+// below the tags, display list of articles in div
+// when a tag is clicked, hide the articles in the div and only display entry links which have a class that matches the tag
+// Thank you very much to SADNESS at Sadgrl.online for letting me use her tag sorting system!
+
+ const tags = document.querySelectorAll('#tags > button');
+ const posts = document.querySelectorAll('#posts > div');
+ const displayAll = document.getElementById('all');
+
+console.log(posts.length);
+
+displayAll.addEventListener('click', event => {
+ for (let i = 0 ; i < posts.length; i++) {
+ posts[i].style.display = "list-item";
+ }
+});
+
+for (let i = 0 ; i < tags.length; i++) {
+ // when a tag button is clicked...
+tags[i].addEventListener('click', event => {
+ // identify which classes belong to button
+ const buttonTag = tags[i].getAttribute('class');
+ // loop through post tags
+ for (let i = 0 ; i < posts.length; i++) {
+ // get post tags
+ const postTag = tags[i].getAttribute('class');
+ // if the "all" button is clicked, display everything
+ if (postTag === buttonTag) {
+ // display posts
+ posts[i].style.display = "block"
+
+ }
+ // if the post tag does not match the button tag...
+ else if (postTag != buttonTag) {
+ // hide the other posts
+ posts[i].style.display = "none"
+ }
+
+ }
+
+});
+}