mirror of
https://github.com/danbee/scoreboard
synced 2025-03-04 08:59:11 +00:00
30 lines
792 B
Plaintext
30 lines
792 B
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Table Tennis</title>
|
|
<link rel="stylesheet" href="/stylesheets/main.css">
|
|
|
|
<script>pusherKey = '<%= ENV['PUSHER_KEY'] %>';</script>
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/pusher/2.2.4/pusher.min.js"></script>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<scores></scores>
|
|
|
|
<div class="controls">
|
|
<button id="reset">Reset</button>
|
|
</div>
|
|
|
|
<script src="/tags/scores.tag" type="riot/tag"></script>
|
|
<script src="/javascripts/main.js"></script>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/riot/2.0.15/riot+compiler.min.js"></script>
|
|
|
|
<script>
|
|
riot.mount('scores', { players: <%= scores.to_json %> })
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|