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

Add settings file to add customization functions

parent d4d10b2b
......@@ -120,4 +120,4 @@ io.on('connection', (socket) => {
});
}
});
});
\ No newline at end of file
});
var express = require('express');
var express = require('express')
settings = require('../settings');
exports.home = function(req, res, next) {
res.render('index');
res.render('index', {'settings': settings});
}
exports.room = function(req, res, next) {
res.render('room', {room: req.body.room, username: req.body.username, password: req.body.password});
res.render('room', {room: req.body.room, username: req.body.username, password: req.body.password, 'settings': settings});
}
exports.redirect_home = function(req, res, next) {
......
var settings = {
name : "onMap",
short_description : "Instant Location Sharing",
url : "https://onmap.pixelswap.fr/",
description : "Share your location instantly and chat with friends securly",
keywords : "location, geolocation, share, friends, chat, map",
};
module.exports = settings
\ No newline at end of file
......@@ -2,25 +2,25 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>onMap - Instant Location Sharing</title>
<title>{{ settings.name }} - {{ settings.short_description }}</title>
<meta name="description" content="Share your location instantly and chat with friends securly"/>
<meta name="keywords" content="location, geolocation, share, friends, chat, map">
<meta name="description" content="{{ settings.description }}"/>
<meta name="keywords" content="{{ settings.keywords }}">
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="onMap - Instant Location Sharing">
<meta name="twitter:description" content="Share your location instantly and chat with friends securly">
<meta name="twitter:title" content="{{ settings.name }} - {{ settings.short_description }}">
<meta name="twitter:description" content="{{ settings.description }}">
<meta name="twitter:creator" content="@mikescops">
<meta name="twitter:image" content="/img/onmap-header.png">
<meta name="twitter:image" content="{{ settings.url }}img/onmap-header.png">
<!-- Open Graph data -->
<meta property="og:title" content="onMap - Instant Location Sharing" />
<meta property="og:title" content="{{ settings.name }} - {{ settings.short_description }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://onmap.pixelswap.fr/" />
<meta property="og:image" content="/img/onmap-header.png" />
<meta property="og:description" content="Share your location instantly and chat with friends securly" />
<meta property="og:site_name" content="onMap" />
<meta property="og:url" content="{{ settings.url }}" />
<meta property="og:image" content="{{ settings.url }}img/onmap-header.png" />
<meta property="og:description" content="{{ settings.description }}" />
<meta property="og:site_name" content="{{ settings.name }}" />
<link rel="stylesheet" href="/assets/style.css">
......
......@@ -8,12 +8,12 @@
<img src="img/onmap-header.png" alt="onMap">
<footer>
<span>© 2018-2019 onMap - Instant location sharing</span>
<span>© 2018-2019 {{ settings.name }} - {{ settings.short_description }}</span>
</footer>
</div>
<div class="container-side register">
<form class="room-form" method="POST" action="">
<h1>onMap</h1>
<h1>{{ settings.name }}</h1>
<span class="input-form">
<input id="room-name" type="text" name="room">
......
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