botEdukadu/syrenka/templates/public.htm
2022-10-24 15:05:26 +02:00

47 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title>Szefowe Zadanka</title>
</head>
<link rel = "icon" href = "/static/logo.png" type = "image/x-icon">
<body style="background-color: rgb(85, 85, 85); background-position: center;
background-size: cover;">
<LINK REL = "STYLESHEET" HREF = "/static/main.css">
<div style="padding: 0.5cm; background-color: rgba(66, 66, 66, 0.8)">
<img src="/static/logo.png"> ........... <a href=""><img src="/static/dc.png"></a>
<a href=""><img src="/static/mess.png"></a>
<a href=""><img src="/static/src.png"></a> .....................................<br></br>Szefowe zadanka v0.5|
<a href="/index">Strona Główna</a> | <a href="/new">Opublikuj</a> | <a href="/tests">Sprawdziany</a> | <a href="/info"> Jak używać / Informacje</a> |
</div> <br></br>
<div style="padding: 0.5cm; background-color: rgba(66, 66, 66, 0.8)">
<h2>Opublikuj Odpowiedź na Quiz</h2>
<form action="localhost:5000/newquizanswer" method="post">
<input type="text" name="question" placeholder="Polecenie" required>
<input type="text" name="week" placeholder="Tydzień(tylko liczby)" required>
<input type="text" name="answer" placeholder="Odpowiedź" required>
<input type="text" name="subject" placeholder="Przedmiot" required>
<button onclick="send()">Zatwierdź</button>
<a id="test">Prześlij(Najpierw Zatwierdź)</a>
</form>
<h2>Opublikuj Odpowiedź na Zadanie *COMMING SOON*</h2>
<br></br>
Copyright (c) 2022 <a href="https://cubesoftware.xyz">Cube Software && Kacper Kostka</a>
</div>
</body>
<script>
function send(){
var name = document.getElementsByName("name")[0].value;
var author = document.getElementsByName("author")[0].value;
var question = document.getElementsByName("question")[0].value;
var week = document.getElementsByName("week")[0].value;
var answer = document.getElementsByName("answer")[0].value;
var subject = document.getElementsByName("subject")[0].value;
document.getElementById("test").href = '/newquiz/'+week+'/Zadanie/'+subject+'/Autor/'+question+'/'+answer;
}
</script>
</html>