Skip to content

Commit

Permalink
Merge pull request #10 from zareskjj/master
Browse files Browse the repository at this point in the history
Modified controller, adding back button.
  • Loading branch information
nickrhalvorsen authored Dec 15, 2018
2 parents 2a3e066 + af93ebd commit 0e89454
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions framework/games/InfiniteRunner/runnerController.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,31 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> <script src ="/socket.io/socket.io.js"></script>
<style>
.container{
@include center;
height:400px;
width:400px;
@include center;
height: 90%;
width: 90%;
}
.buttons{
height:120px;
width:120px;
font-size:6.0em;
background:none;
border:none;
text-align: center;
height: 100%;
width: 100%;
background: none;
font-size: 5em;
}
.fas {
color:#CBB677;
}
#jump {
position: absolute;
#back {
text-align: center;
height:100px;
width:100px;
width: 90%;
height: 10%;
}
#back i {
width: 100%;
height: 100%;
}


</style>
</head>
<body>
Expand All @@ -39,13 +43,20 @@

</div>

<button id="back" class="buttons" onclick="goBack()">
<i class="fas fa-arrow-left"></i>
</button>

<script>
var socket = io("/controller");

function buttonClicked(elementID){
socket.emit('clicked', elementID);
}

function goBack(elementID) {
window.location.replace("http://halldisplay.cs.jmu.edu");
}
</script>


Expand Down

0 comments on commit 0e89454

Please sign in to comment.