32 lines
1.5 KiB
HTML
32 lines
1.5 KiB
HTML
<html>
|
|
<head>
|
|
<title>Bingo</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,600,700" rel="stylesheet">
|
|
<link rel="stylesheet" href="bingoBossApp_ui.css?2">
|
|
</head>
|
|
<body>
|
|
<img src="../images/bingo-card-head.png" width="300" alt="BINGO"/><br><br>
|
|
<input type="button" class="gray bingoButton" id="lightsOn" value="Lights On"><br><br>
|
|
<input type="button" class="gray bingoButton" id="openRegistration" value="Open Registration"><br><br>
|
|
<input type="button" class="gray bingoButton" id="closeRegistration" value="Close Registration"><br><br>
|
|
<input type="button" class="gray bingoButton" id="newRound" value="New Round"><br><br>
|
|
<input type="button" class="gray bingoButton" id="lightsOut" value="Lights Out"><br><br><br>
|
|
<input type="button" class="gray bingoButton" id="givePrizes" value="Give Prizes"><br><br><br>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
|
<script>
|
|
function emitBingoEvent(type) {
|
|
var event = {
|
|
app: 'bingo',
|
|
type: type
|
|
};
|
|
EventBridge.emitWebEvent(JSON.stringify(event));
|
|
}
|
|
|
|
$('.bingoButton').click(function() {
|
|
emitBingoEvent($(this).attr('id'));
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|