Add survey

This commit is contained in:
Bruno Rybársky 2024-05-15 19:24:51 +02:00
parent d049848bff
commit c63b91f0cd
2 changed files with 2 additions and 1 deletions

@ -713,6 +713,7 @@ async function deleteVoteMeme(memeId) {
}
async function surveySubmit() {
this.preventDefault();
const satisfaction = document.querySelector('input[name="satisfaction"]:checked').value;
const functionality = document.querySelector('input[name="functionality"]:checked').value;
const content = document.querySelector('input[name="content"]:checked').value;

@ -40,7 +40,7 @@
<label for="content_nanic">Nanič</label>
<br>
<br>
<textarea name="comment" placeholder="Komentár" cols="80" rows="20" required></textarea>
<textarea name="comment" placeholder="Komentár" cols="80" rows="10" required></textarea>
<br>
<br>
<button onclick="surveySubmit()">Odoslať</button>