Skip to content

Commit

Permalink
dashboard edits
Browse files Browse the repository at this point in the history
  • Loading branch information
dwcares committed Jan 11, 2017
1 parent 8350591 commit 5d8a40b
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -28,4 +28,5 @@ node_modules

# Visual Studio Code settings
.vscode
Code
Code
typings
20 changes: 18 additions & 2 deletions dashboard/dashboard.css
@@ -1,13 +1,29 @@
.gameboard {
width: 400px;
width: 200px;
margin-left: 5px;
margin-top: 5px;
}

body {
background-color: lightblue;
overflow-y: auto;
}

#games {
display: flex;
flex-flow: row wrap;

/*transform: scale(0.5);*/
}

#slides {
position: absolute;
width: 100%;
height: 100%;
z-index: 99999;

}


#slidesImg {
width: 100%;
}
3 changes: 3 additions & 0 deletions dashboard/dashboard.html
Expand Up @@ -7,6 +7,9 @@
<link rel="stylesheet" href="/dashboard.css" />
</head>
<body>
<div id='slides'>
<img id ='slidesImg' src=""/>
</div>
<div id='games'></div>
<script src="../lib/socket.io-1.2.0.js"></script>
<script src="../lib/jquery-1.11.1.js"></script>
Expand Down
46 changes: 46 additions & 0 deletions dashboard/dashboard.js
Expand Up @@ -6,6 +6,52 @@
var socket = io();
var games = {};
var boards = {};
var slides = ['img/slide1.jpg',
'img/slide2.jpg',
'img/slide4.jpg',
'img/slide3.jpg',
'img/slide5.jpg',
'img/slide6.jpg',
'img/slide8.jpg',
'img/slide9.jpg',
'img/slide10.jpg',
'img/slide11.jpg',
'img/slide12.jpg',
'img/slide13.jpg',
'img/slide14.jpg',
'img/githublink.gif',
'img/slide16.jpg',
'hide'];

var slidesDiv = document.getElementById('slides');
var slidesImg = document.getElementById('slidesImg');

var currentSlide = 0;
slidesImg.src = slides[currentSlide];

window.addEventListener('keyup', function(e) {

switch (e.key) {
case "Left":
case "Down":
currentSlide--

if (currentSlide < 0) currentSlide = slides.length -1;
slidesImg.src = slides[currentSlide];

break;
default:
currentSlide++;

if (currentSlide >= slides.length) currentSlide = 0;
slidesImg.src = slides[currentSlide];

if (slides[currentSlide]=='hide')
slidesDiv.style.display = 'none';
else
slidesDiv.style.display = 'block';
}
})

//////////////////////////////
// Socket.io handlers
Expand Down
Binary file added dashboard/img/Slide10.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide11.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide12.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide13.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide14.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide15.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide16.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide2.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide3.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide4.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide5.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide6.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide7.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide8.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/Slide9.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/githublink.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboard/img/slide1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5d8a40b

Please sign in to comment.