53 lines
2.3 KiB
Go
53 lines
2.3 KiB
Go
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>Electronic Realtime Poll written in Go</title>
|
||
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.css">
|
||
|
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.js"></script>
|
||
|
<style type="text/css"> h2 { margin: 2em 0em; } .ui.container { padding-top: 5em; padding-bottom: 5em; } </style>
|
||
|
<script type="text/javascript">function vote(option){$.post( "/", {option}, ( data ) => { $('.mini.modal').modal('show');});}</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="ui container">
|
||
|
<h1 class="ui header">Foodoles</h1><br/>
|
||
|
<h2 class="ui header">Pick Your Preferred Food For Lunch</h2><br/>
|
||
|
<div class="ui four column grid link cards">
|
||
|
<div onclick="vote('sandwich')">
|
||
|
<div class="ui massive label">🥪</div>
|
||
|
</div>
|
||
|
<div onclick="vote('sushi')">
|
||
|
<div class="ui massive label">🍣</div>
|
||
|
</div>
|
||
|
<div onclick="vote('burger')">
|
||
|
<div class="ui massive label">🍔</div>
|
||
|
</div>
|
||
|
<div onclick="vote('tacos')">
|
||
|
<div class="ui massive label">🌯</div>
|
||
|
</div>
|
||
|
<div onclick="vote('italien')">
|
||
|
<div class="ui massive label">🍝</div>
|
||
|
</div>
|
||
|
<div onclick="vote('kebab')">
|
||
|
<div class="ui massive label">🥙</div>
|
||
|
</div>
|
||
|
<div onclick="vote('pizza')">
|
||
|
<div class="ui massive label">🍕</div>
|
||
|
</div>
|
||
|
<div onclick="vote('hotdog')">
|
||
|
<div class="ui massive label">🌭</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="ui modal mini">
|
||
|
<div class="header">Foodoles</div>
|
||
|
<div class="content">
|
||
|
<p>Vote sent <strong>successfully</strong>, <a href="/results"> check results !</a></p>
|
||
|
</div>
|
||
|
<div class="actions">
|
||
|
<div class="ui cancel button blue">Close</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|