155 lines
5.3 KiB
HTML
155 lines
5.3 KiB
HTML
<!--
|
|
// ronaldoManager.html
|
|
//
|
|
// Created by Robin Wilson
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Based on http://hifi-content.s3-us-west-1.amazonaws.com/DomainContent/Zombies/ZombieManager/zombieStageManager.html
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
-->
|
|
<html>
|
|
<head>
|
|
<title>Ronaldo TheSpot Locations</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">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
width: 100%;
|
|
font-family: 'Raleway', sans-serif;
|
|
color: white;
|
|
background: linear-gradient(#2b2b2b, #0f212e);
|
|
}
|
|
|
|
.top-bar {
|
|
height: 90px;
|
|
background: linear-gradient(#2b2b2b, #1e1e1e);
|
|
font-weight: bold;
|
|
padding-left: 30px;
|
|
padding-right: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
position: fixed;
|
|
width: 480px;
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
.content {
|
|
margin-top: 90px;
|
|
padding: 25px;
|
|
}
|
|
|
|
input[type=button] {
|
|
font-family: 'Raleway';
|
|
font-weight: bold;
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
vertical-align: top;
|
|
height: 25px;
|
|
min-width: 100px;
|
|
padding: 0px 18px;
|
|
margin-right: 6px;
|
|
border-radius: 5px;
|
|
border: none;
|
|
color: #fff;
|
|
background-color: #000;
|
|
background: linear-gradient(#343434 20%, #000 100%);
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type=button]:enabled:hover {
|
|
background: linear-gradient(#000, #000);
|
|
border: none;
|
|
}
|
|
|
|
input[type=button]:active {
|
|
background: linear-gradient(#343434, #343434);
|
|
}
|
|
|
|
input[type=button]:disabled {
|
|
color: #252525;
|
|
background: linear-gradient(#575757 20%, #252525 100%);
|
|
}
|
|
|
|
input[type=button][pressed=pressed] {
|
|
color: #00b4ef;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="top-bar">
|
|
<h2>Ronaldo Locations</h2>
|
|
</div>
|
|
<div class="content">
|
|
<h4>Avatar Change</h4>
|
|
<p><input type="button" id="ronaldo" class="avatar" name="ronaldo" value="Become Ronaldo" style="background: #008c07;"></p>
|
|
<p><input type="button" id="previous" class="avatar" name="previous" value="Restore Avatar" style="background: #e5110d;"></p>
|
|
<br>
|
|
|
|
<h4>Locations (Walkable):</h4>
|
|
<table>
|
|
<tr>
|
|
<td><input type="button" class="location" value="1"></td>
|
|
<td>Overlooking the portals</td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="button" class="location" value="2"></td>
|
|
<td>Behind storage boxes</td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="button" class="location" value="3"></td>
|
|
<td>On a beam behind the countdown billboard</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
<h4>Locations (Flying Accessible):</h4>
|
|
<table>
|
|
<tr>
|
|
<td><input type="button" class="location" value="4"></td>
|
|
<td>On the portals dome roof</td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="button" class="location" value="5"></td>
|
|
<td>On the pink ring tower roof</td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="button" class="location" value="6"></td>
|
|
<td>Flying high above in traffic</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
|
<script>
|
|
function main() {
|
|
$(".avatar").click(function() {
|
|
|
|
var avatarEvent = {
|
|
"type": "click",
|
|
"button": "avatar",
|
|
"data": this.name
|
|
};
|
|
EventBridge.emitWebEvent(JSON.stringify(avatarEvent));
|
|
|
|
});
|
|
$(".location").click(function() {
|
|
|
|
var locationEvent = {
|
|
"type": "click",
|
|
"button": "location",
|
|
"data": this.value
|
|
};
|
|
EventBridge.emitWebEvent(JSON.stringify(locationEvent));
|
|
|
|
});
|
|
}
|
|
$(document).ready(main);
|
|
</script>
|
|
</body>
|
|
</html>
|