mirror of
https://github.com/danbee/scoreboard
synced 2025-03-04 08:59:11 +00:00
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Scoreboard</title>
|
|
<link rel="stylesheet" href="/stylesheets/main.css">
|
|
<meta name="viewport" content="initial-scale=1">
|
|
<meta content="yes" name="apple-mobile-web-app-capable">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
|
|
<link rel="apple-touch-icon" href="/images/icon-iphone.png">
|
|
<link rel="apple-touch-icon" sizes="76x76" href="/images/icon-ipad.png">
|
|
<link rel="apple-touch-icon" sizes="120x120" href="/images/icon-iphone-retina.png">
|
|
<link rel="apple-touch-icon" sizes="152x152" href="/images/icon-ipad-retina.png">
|
|
|
|
<link rel="shortcut icon" href="/images/favicon.png">
|
|
|
|
<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>
|