General refactor
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@
|
||||
style="font-size: 150%;">GitHub</a>
|
||||
</center>
|
||||
<br>
|
||||
<a href="/app"><span>🢀 </span>Return</a>
|
||||
<a href="<%= app_url %>"><span>🢀 </span>Return</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
+3
-3
@@ -16,7 +16,7 @@
|
||||
<script src="<%= js_path %>" defer></script>
|
||||
<script src="<%= chartjs %>"></script>
|
||||
<script defer>
|
||||
var steps = '<%= steps %>', max_rpm = '<%= max_rpm %>', max_throttle = '<%= max_throttle %>';
|
||||
var steps = '<%= steps %>', max_rpm = '<%= max_rpm %>', max_throttle = '<%= max_throttle %>', app_url = '<%= app_url %>';
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -55,12 +55,12 @@
|
||||
<table id="motor_table" style="text-align: center;"></table>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row; justify-content: space-between;">
|
||||
<a href="/app"><span>🢀 </span>Return</a>
|
||||
<a href="<%= app_url %>"><span>🢀 </span>Return</a>
|
||||
<label id="commit" style="cursor: pointer;"><span>✅ </span>Commit</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="about_div">
|
||||
<center><a href="/app/about">About</label></center>
|
||||
<center><a href="<%= app_url %>/about">About</label></center>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>
|
||||
<%= page_title %>
|
||||
</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="<%= css_path %>">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="control_div">
|
||||
<label
|
||||
style='font-family: "Ubuntu", sans-serif; font-weight: 500; font-style: normal; font-size: 200%;'>Centaurus
|
||||
Racing Team</label>
|
||||
</div>
|
||||
<div class="main_div"
|
||||
style="display: flex; flex-direction: column; justify-content: space-between; font-size: 150%; margin-top: 15px; margin-bottom: 15px;">
|
||||
<div style="display: flex; flex-direction: row; justify-content: space-evenly;">
|
||||
<label><%= page_title %> <%= program %></label>
|
||||
<a href="<%= protocol %>://<%= host %>:<%= port %>/app">Enter</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
+3
-3
@@ -16,7 +16,7 @@
|
||||
<script type="module" src="<%= js_path %>" defer></script>
|
||||
<script src="<%= chartjs %>"></script>
|
||||
<script defer>
|
||||
var map = '<%- map %>', map_meta = '<%- map_meta %>', steps = '<%= steps %>', max_rpm = '<%= max_rpm %>', max_throttle = '<%= max_throttle %>';
|
||||
var map = '<%- map %>', map_meta = '<%- map_meta %>', steps = '<%= steps %>', max_rpm = '<%= max_rpm %>', max_throttle = '<%= max_throttle %>', app_url = '<%= app_url %>';
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -60,12 +60,12 @@
|
||||
<table id="motor_table" style="text-align: center;"></table>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row; justify-content: space-between;">
|
||||
<a href="/app"><span>🢀 </span>Return</a>
|
||||
<a href="<%= app_url %>"><span>🢀 </span>Return</a>
|
||||
<label id="commit" style="cursor: pointer;"><span>✅ </span>Commit</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="about_div">
|
||||
<center><a href="/app/about">About</label></center>
|
||||
<center><a href="<%= app_url %>/about">About</label></center>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
+4
-1
@@ -14,6 +14,9 @@
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="<%= css_path %>">
|
||||
<script src="<%= js_path %>" defer></script>
|
||||
<script defer>
|
||||
var app_url = '<%= app_url %>';
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -38,7 +41,7 @@
|
||||
<%= error_message %>
|
||||
</label>
|
||||
<br>
|
||||
<a href="/app"><span>🢀 </span>Return</a>
|
||||
<a href="<%= app_url %>"><span>🢀 </span>Return</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
+4
-1
@@ -14,6 +14,9 @@
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="<%= css_path %>">
|
||||
<script src="<%= js_path %>" defer></script>
|
||||
<script defer>
|
||||
var app_url = '<%= app_url %>';
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -47,7 +50,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="about_div">
|
||||
<center><a href="/app/about">About</label></center>
|
||||
<center><a href="<%= app_url %>/about">About</label></center>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user