Skip to content

Commit

Permalink
Added footer and fork
Browse files Browse the repository at this point in the history
  • Loading branch information
zaiddabaeen committed Feb 26, 2016
1 parent 015cef8 commit 6b24748
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const app = express();

// Run server to listen on port 3005.
const server = app.listen(3005, () => {
console.log('listening on *:3005');
console.log('Listening on http://localhost:3005');
});

const redisAdapter = require('socket.io-redis');
Expand Down
8 changes: 7 additions & 1 deletion views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@
<script type="text/javascript" src="js/client.js"></script>

<div id="map" style="width: 100%; height: 512px;"></div>
<a href="https://github.com/zaiddabaeen/realtime-traffic-map" target="_blank"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<section>
<div id="footer" style="width:100%; height: 30px; background-color: #333; text-align:center;">
<a href="http://z-proj.com" target="_blank" style="color: #ddd; width: 100%; font-size: 12px; text-decoration: none; top: 4px; position: relative;">Created by Zaid Daba'een</a>
</div>
</section>

<script type="text/javascript">
window.onresize = (function() {
window_height = window.innerHeight;
document.getElementById("map").style.height = window_height + "px";
document.getElementById("map").style.height = window_height - 30 + "px";
});

window.onload = window.onresize;
Expand Down

0 comments on commit 6b24748

Please sign in to comment.