Commit eba5f0b3 authored by Corentin Mors's avatar Corentin Mors
Browse files

Move views to right folder

parent 1f2a56b8
var express = require('express');
exports.dashboard = function(req, res, next) {
res.render('index');
exports.room = function(req, res, next) {
res.render('room');
}
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>OnMap - Location Sharing</title>
<link rel="stylesheet" href="/assets/style.css">
<!-- OpenLayer CSS -->
<link href="/assets/openlayer.min.css" rel="stylesheet">
</head>
<body>
<div class="container-main">
<div id="map" class="map"></div>
<div id="info" style="display: none;"></div>
<p>
Position accuracy : <code id="accuracy"></code>&nbsp;&nbsp;
Altitude : <code id="altitude"></code>&nbsp;&nbsp;
Altitude accuracy : <code id="altitudeAccuracy"></code>&nbsp;&nbsp;
Heading : <code id="heading"></code>&nbsp;&nbsp;
Speed : <code id="speed"></code>
</p>
</div>
<div class="container-side">
<ul class="pages">
<li class="chat page">
<div class="chatArea">
<ul class="messages"></ul>
</div>
<input class="inputMessage" placeholder="Type here..."/>
</li>
<li class="login page">
<div class="form">
<h3 class="title">What's your nickname?</h3>
<input class="usernameInput" type="text" maxlength="14" />
</div>
</li>
</ul>
</div>
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="assets/openlayer.min.js"></script>
<script src="assets/main.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -3,8 +3,8 @@ var express = require('express'),
indexController = require('../controllers');
router.route('/')
.get(indexController.dashboard);
router.route('/room')
.get(indexController.room);
module.exports = router
\ No newline at end of file
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Socket.IO Chat Example</title>
<title>OnMap - Location Sharing</title>
<link rel="stylesheet" href="assets/style.css">
<!-- OpenLayer CSS -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment