pis #1
@ -1,2 +1,6 @@
 | 
			
		||||
.dockerignore
 | 
			
		||||
Dockerfile
 | 
			
		||||
package.json
 | 
			
		||||
package-lock.json
 | 
			
		||||
.eslintrc.js
 | 
			
		||||
node_modules
 | 
			
		||||
							
								
								
									
										30
									
								
								.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
module.exports = {
 | 
			
		||||
    'env': {
 | 
			
		||||
        'browser': true,
 | 
			
		||||
        'es2021': true
 | 
			
		||||
    },
 | 
			
		||||
    'extends': 'eslint:recommended',
 | 
			
		||||
    'overrides': [
 | 
			
		||||
    ],
 | 
			
		||||
    'parserOptions': {
 | 
			
		||||
        'ecmaVersion': 'latest'
 | 
			
		||||
    },
 | 
			
		||||
    'rules': {
 | 
			
		||||
        'indent': [
 | 
			
		||||
            'error',
 | 
			
		||||
            4
 | 
			
		||||
        ],
 | 
			
		||||
        'linebreak-style': [
 | 
			
		||||
            'error',
 | 
			
		||||
            'unix'
 | 
			
		||||
        ],
 | 
			
		||||
        'quotes': [
 | 
			
		||||
            'error',
 | 
			
		||||
            'single'
 | 
			
		||||
        ],
 | 
			
		||||
        'semi': [
 | 
			
		||||
            'error',
 | 
			
		||||
            'never'
 | 
			
		||||
        ]
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
node_modules
 | 
			
		||||
							
								
								
									
										12
									
								
								auth.html
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								auth.html
									
									
									
									
									
								
							@ -1,17 +1,17 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
  <head>
 | 
			
		||||
    <meta charset="UTF-8"/>
 | 
			
		||||
    <meta name="description" content="OwlBoard - Live train departures for traincrew."/>
 | 
			
		||||
    <meta name="robots" content="noindex"/>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="description" content="OwlBoard - Live train departures for traincrew.">
 | 
			
		||||
    <meta name="robots" content="noindex">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <meta name="application-name" content="OwlBoard">
 | 
			
		||||
    <meta name="author" content="Frederick Boniface">
 | 
			
		||||
    <meta name="theme-color" content="#00b7b7">
 | 
			
		||||
    <link rel="apple-touch-icon" href="/images/app-icons/any/apple-192.png">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/main.css"/>
 | 
			
		||||
    <link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
 | 
			
		||||
    <link rel="manifest" type="application/json" href="./manifest.json"/>
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/main.css">
 | 
			
		||||
    <link rel="icon" type="image/svg+xml" href="./images/icon.svg">
 | 
			
		||||
    <link rel="manifest" type="application/json" href="./manifest.json">
 | 
			
		||||
    <script src="./js/lib.main.js" defer></script>
 | 
			
		||||
    <script src="./js/auth.js" defer></script>
 | 
			
		||||
    <title>OwlBoard</title>
 | 
			
		||||
 | 
			
		||||
@ -1,19 +1,19 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
  <head>
 | 
			
		||||
    <meta charset="UTF-8"/>
 | 
			
		||||
    <meta name="description" content="OwlBoard - Live train departures for traincrew."/>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="description" content="OwlBoard - Live train departures for traincrew.">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <meta name="robots" content="noindex"/>
 | 
			
		||||
    <meta name="robots" content="noindex">
 | 
			
		||||
    <meta name="application-name" content="OwlBoard">
 | 
			
		||||
    <meta name="author" content="Frederick Boniface">
 | 
			
		||||
    <meta name="theme-color" content="#00b7b7">
 | 
			
		||||
    <title>OwlBoard - Loading</title>
 | 
			
		||||
    <link rel="apple-touch-icon" href="/images/app-icons/any/apple-192.png">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/main.css"/>
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/board.css"/>
 | 
			
		||||
    <link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
 | 
			
		||||
    <link rel="manifest" type="application/json" href="./manifest.json"/>
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/main.css">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/board.css">
 | 
			
		||||
    <link rel="icon" type="image/svg+xml" href="./images/icon.svg">
 | 
			
		||||
    <link rel="manifest" type="application/json" href="./manifest.json">
 | 
			
		||||
    <script src="./js/lib.main.js" defer></script>
 | 
			
		||||
    <script src="./js/lib.board.js" defer></script>
 | 
			
		||||
    <script src="./js/staff-board.js" defer></script>
 | 
			
		||||
@ -28,7 +28,7 @@
 | 
			
		||||
    <div id="content">
 | 
			
		||||
      <div id="header">
 | 
			
		||||
        <div id="station_name">
 | 
			
		||||
          <h1 id="stn_name" class="header-large"></h1>
 | 
			
		||||
          <h1 id="stn_name" class="header-large">Arrivals & Departures</h1>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div id="header-right">
 | 
			
		||||
          <picture id="refresh" onclick="location.reload()">
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										18
									
								
								board.html
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								board.html
									
									
									
									
									
								
							@ -1,20 +1,20 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
  <head>
 | 
			
		||||
    <meta charset="UTF-8"/>
 | 
			
		||||
    <meta name="description" content="OwlBoard - Live train departures for traincrew."/>
 | 
			
		||||
    <meta name="robots" content="noindex"/>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="description" content="OwlBoard - Live train departures for traincrew.">
 | 
			
		||||
    <meta name="robots" content="noindex">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <meta name="robots" content="noindex"/>
 | 
			
		||||
    <meta name="robots" content="noindex">
 | 
			
		||||
    <meta name="application-name" content="OwlBoard">
 | 
			
		||||
    <meta name="author" content="Frederick Boniface">
 | 
			
		||||
    <meta name="theme-color" content="#00b7b7">
 | 
			
		||||
    <title>OwlBoard - Loading</title>
 | 
			
		||||
    <link rel="apple-touch-icon" href="/images/app-icons/any/apple-192.png">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/main.css"/>
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/board.css"/>
 | 
			
		||||
    <link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
 | 
			
		||||
    <link rel="manifest" type="application/json" href="./manifest.json"/>
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/main.css">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/board.css">
 | 
			
		||||
    <link rel="icon" type="image/svg+xml" href="./images/icon.svg">
 | 
			
		||||
    <link rel="manifest" type="application/json" href="./manifest.json">
 | 
			
		||||
    <script src="./js/lib.main.js" defer></script>
 | 
			
		||||
    <script src="./js/lib.board.js" defer></script>
 | 
			
		||||
    <script src="./js/simple-board.js" defer></script>
 | 
			
		||||
@ -29,7 +29,7 @@
 | 
			
		||||
    <div id="content">
 | 
			
		||||
      <div id="header">
 | 
			
		||||
        <div id="station_name">
 | 
			
		||||
          <h1 id="stn_name" class="header-large"></h1>
 | 
			
		||||
          <h1 id="stn_name" class="header-large">Arrivals & Departures</h1>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div id="header-right">
 | 
			
		||||
          <picture id="refresh" onclick="location.reload()">
 | 
			
		||||
 | 
			
		||||
@ -5,7 +5,7 @@ Auth process: User Requests Key => Server emails key to user =>
 | 
			
		||||
              Server responds with the users auth key =>
 | 
			
		||||
              auth.js adds this to localStorage
 | 
			
		||||
*/
 | 
			
		||||
const cmd = document.getElementById("cmd") // Assign element to const
 | 
			
		||||
const cmd = document.getElementById('cmd') // Assign element to const
 | 
			
		||||
versionDisplay(); // Show web version in footer
 | 
			
		||||
init(); // Run init function
 | 
			
		||||
 | 
			
		||||
@ -16,7 +16,7 @@ async function sendHome(){
 | 
			
		||||
 | 
			
		||||
async function cmdOut(message) {
 | 
			
		||||
    html = "<p>" + message + "</p>"
 | 
			
		||||
    cmd.insertAdjacentHTML("beforeend", html)
 | 
			
		||||
    cmd.insertAdjacentHTML('beforeend', html)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
async function registerKey(key) { // Posts key to server and listens for response.
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1125
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										1125
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										14
									
								
								package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								package.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "web",
 | 
			
		||||
  "version": "0.0.1",
 | 
			
		||||
  "description": "web",
 | 
			
		||||
  "main": "index.html",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "echo \"Error: no test specified\" && exit 1"
 | 
			
		||||
  },
 | 
			
		||||
  "author": "",
 | 
			
		||||
  "license": "ISC",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "eslint": "^8.39.0"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										12
									
								
								pis.html
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								pis.html
									
									
									
									
									
								
							@ -1,17 +1,17 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
  <head>
 | 
			
		||||
    <meta charset="UTF-8"/>
 | 
			
		||||
    <meta name="description" content="OwlBoard - Beta: Quick access to route codes for PIS Systems."/>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="description" content="OwlBoard - Beta: Quick access to route codes for PIS Systems.">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <meta name="application-name" content="OwlBoard">
 | 
			
		||||
    <meta name="author" content="Frederick Boniface">
 | 
			
		||||
    <meta name="theme-color" content="#00b7b7">
 | 
			
		||||
    <link rel="apple-touch-icon" href="/images/app-icons/any/apple-192.png">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/main.css"/>
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/pis.css"/>
 | 
			
		||||
    <link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
 | 
			
		||||
    <link rel="manifest" type="application/json" href="./manifest.json"/>
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/main.css">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="./styles/pis.css">
 | 
			
		||||
    <link rel="icon" type="image/svg+xml" href="./images/icon.svg">
 | 
			
		||||
    <link rel="manifest" type="application/json" href="./manifest.json">
 | 
			
		||||
    <title>OwlBoard - PIS</title>
 | 
			
		||||
    <script src="./js/lib.main.js" defer></script>
 | 
			
		||||
    <script src="./js/pis.js" defer></script>
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
<html lang="en">
 | 
			
		||||
    <head>
 | 
			
		||||
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
        <meta name="robots" content="none"/>
 | 
			
		||||
        <meta name="robots" content="none">
 | 
			
		||||
        <title>OwlBoard - Statistics</title>
 | 
			
		||||
        <script src="./js/lib.main.js" defer></script>
 | 
			
		||||
        <script src="./js/stat.js" defer></script>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user