From 5a4c9ef83915f4cbf9a18a4fa3305bb0336d3d99 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 16 May 2024 10:03:26 +0200 Subject: [PATCH] Edit meme creation --- assets/script.js | 7 +++++++ templates/meme_add.html | 21 ++++++++++++--------- templates/meme_gallery.html | 1 + 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/assets/script.js b/assets/script.js index 548efdc..b6fc067 100644 --- a/assets/script.js +++ b/assets/script.js @@ -202,6 +202,13 @@ async function togglearticlecreate() { articleContainerElement.classList.toggle("hidden"); } +async function togglememecreate() { + "use strict"; + let memeContainerElement = document.getElementById("memecreatecontainer"); + + memeContainerElement.classList.toggle("hidden"); +} + async function renderarticles() { "use strict"; let template = document.querySelector('template[data-template-name="article"]').innerHTML; diff --git a/templates/meme_add.html b/templates/meme_add.html index 69cd3f9..6e69076 100644 --- a/templates/meme_add.html +++ b/templates/meme_add.html @@ -1,9 +1,12 @@ -
- - - - - - - -
\ No newline at end of file + \ No newline at end of file diff --git a/templates/meme_gallery.html b/templates/meme_gallery.html index 9477a63..9142e85 100644 --- a/templates/meme_gallery.html +++ b/templates/meme_gallery.html @@ -1,6 +1,7 @@

Adlerka Memes

Skoro, ako r/adlerka, ale lepšie.

+