From 57b80a398df64c118cf089ba571ec42e7a08802c Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Sun, 29 Jan 2023 17:05:10 +0100 Subject: [PATCH] Converted CRLF to LF line endings --- database.js.examle | 40 ++++---- views/index.ejs | 224 ++++++++++++++++++++++----------------------- 2 files changed, 132 insertions(+), 132 deletions(-) diff --git a/database.js.examle b/database.js.examle index ca9ba74..9af0be0 100644 --- a/database.js.examle +++ b/database.js.examle @@ -1,21 +1,21 @@ -const mysql = require('mysql'); - -var connection = mysql.createConnection({ - host : 'localhost', - database : 'testing', - user : 'root', - password : '' -}); - -connection.connect(function(error){ - if(error) - { - throw error; - } - else - { - console.log('MySQL Database is connected Successfully'); - } -}); - +const mysql = require('mysql'); + +var connection = mysql.createConnection({ + host : 'localhost', + database : 'testing', + user : 'root', + password : '' +}); + +connection.connect(function(error){ + if(error) + { + throw error; + } + else + { + console.log('MySQL Database is connected Successfully'); + } +}); + module.exports = connection; \ No newline at end of file diff --git a/views/index.ejs b/views/index.ejs index 22c6831..6db9329 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,113 +1,113 @@ - - - - - - - - - - - - <%= title %> - - - <% if(action == 'view') { %> - - - - - <% } else { %> - - -
-

-
- <%= title %> -

- <% if(message.length > 0) { %> -
<%= message %>
- <% } %> -
- - - - - - - - - - - - - - <% - if(TheData.length > 0) - - { TheData.forEach(function(data){ - %> - - - - - - - - - <% }); } else { %> - - - - <% } %> - -
DateFromToTime takenAvg. Speed
<%= new Date (data.departure).toLocaleDateString("en-GB", { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric'}) %><%= data.start_point %><%= data.end_point %><%= data.time_taken %> Min<%= data.average_speed %> Km/h
No Data Found
-
-
- <% } %> - - + + + + + + + + + + + + <%= title %> + + + <% if(action == 'view') { %> + + + + + <% } else { %> + + +
+

+
+ <%= title %> +

+ <% if(message.length > 0) { %> +
<%= message %>
+ <% } %> +
+ + + + + + + + + + + + + + <% + if(TheData.length > 0) + + { TheData.forEach(function(data){ + %> + + + + + + + + + <% }); } else { %> + + + + <% } %> + +
DateFromToTime takenAvg. Speed
<%= new Date (data.departure).toLocaleDateString("en-GB", { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric'}) %><%= data.start_point %><%= data.end_point %><%= data.time_taken %> Min<%= data.average_speed %> Km/h
No Data Found
+
+
+ <% } %> + + \ No newline at end of file