Folder reorganize 1
This commit is contained in:
@@ -1,32 +1,38 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link href="../style.css" rel="stylesheet" type="text/css" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
|
||||
<title>LASUCA Controls </title>
|
||||
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
|
||||
<script src="../js/prototype.js" type="text/javascript"></script>
|
||||
<script src="../js/scriptaculous.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
function showHint()
|
||||
{
|
||||
var sid = Math.random();
|
||||
new Ajax.Updater('overview_values', 'main.php?sid=' + sid, {asynchronous:true});
|
||||
}
|
||||
function startShowing()
|
||||
{
|
||||
new PeriodicalExecuter(showHint, 1);
|
||||
new PeriodicalExecuter(function(pe) {}, 5);
|
||||
}
|
||||
startShowing();
|
||||
</script>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>LASUCA Controls • Section Library</title>
|
||||
<link rel="stylesheet" href="theme.css?v=1" />
|
||||
</head>
|
||||
|
||||
<body bgcolor="#000000">
|
||||
<div id='overview_values' name='overview_values'></div>
|
||||
<body>
|
||||
<main class="module-shell">
|
||||
<header class="module-heading">
|
||||
<div>
|
||||
<h1 class="module-heading__title">Display Section Library</h1>
|
||||
<p class="module-heading__meta">
|
||||
Preview every modular panel with the refreshed theme
|
||||
</p>
|
||||
</div>
|
||||
<div class="module-heading__meta">
|
||||
<span>Last updated <time data-section-status>--</time></span>
|
||||
<span
|
||||
class="module-pill module-pill--warn"
|
||||
data-section-error
|
||||
aria-hidden="true"
|
||||
></span>
|
||||
</div>
|
||||
</header>
|
||||
<div class="module-grid" data-section-root>
|
||||
<div class="module-card module-card--tight">
|
||||
<p>Loading sections…</p>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script src="theme.js?v=1" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,51 +1,16 @@
|
||||
<?php include("../data/header.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>GENERAL DATA</i></font>
|
||||
<?php include("../data/newgeneral.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>GENERAL DATA WITH STEAM VALUES</i></font>
|
||||
<?php include("../data/newgeneralwithsteam.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>EAST AND WEST TANDEMS FULL DATA</i></font>
|
||||
<?php include("../data/newmills.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>BOILERS SLIM STEAM ONLY</i></font>
|
||||
<?php include("../data/boilersslim.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>BOILERS FULL DATA</i></font>
|
||||
<?php include("../data/boilersfull.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>TANK LEVEL DATA SLIM</i></font>
|
||||
<?php include("../data/tanklevelsbar.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>TANK LEVEL DATA STACKED</i></font>
|
||||
<?php include("../data/tanklevelswrap.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>TANK LEVEL DATA VERTICAL</i></font>
|
||||
<?php include("../data/tanklvlsvert.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>TABLES AND TRUCK DUMP DATA</i></font>
|
||||
<?php include("../data/tablesandtd.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>EVAPORATORS AND PRE-EVAPORATOR DATA</i></font>
|
||||
<?php include("../data/evaporators.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>SHELL AND TUBER HEATER DATA</i></font>
|
||||
<?php include("../data/heaters.php");?>
|
||||
<br>
|
||||
<br>
|
||||
<font color="#e0e802"><i>DRYERS DATA</i></font>
|
||||
<?php include("../data/dryers.php");?>
|
||||
<br>
|
||||
<?php
|
||||
// phpcs:ignoreFile
|
||||
declare(strict_types=1);
|
||||
require_once __DIR__ . '/../data/newgeneral.php';
|
||||
require_once __DIR__ . '/../data/newgeneralwithsteam.php';
|
||||
require_once __DIR__ . '/../data/newmills.php';
|
||||
require_once __DIR__ . '/../data/boilersslim.php';
|
||||
require_once __DIR__ . '/../data/boilersfull.php';
|
||||
require_once __DIR__ . '/../data/tanklevelsbar.php';
|
||||
require_once __DIR__ . '/../data/tanklevelswrap.php';
|
||||
require_once __DIR__ . '/../data/tanklvlsvert.php';
|
||||
require_once __DIR__ . '/../data/tablesandtd.php';
|
||||
require_once __DIR__ . '/../data/evaporators.php';
|
||||
require_once __DIR__ . '/../data/heaters.php';
|
||||
require_once __DIR__ . '/../data/dryers.php';
|
||||
|
||||
|
||||
358
overviews/testall/theme.css
Normal file
358
overviews/testall/theme.css
Normal file
@@ -0,0 +1,358 @@
|
||||
:root {
|
||||
--module-bg: #0b1220;
|
||||
--module-border: rgba(148, 163, 184, 0.35);
|
||||
--module-panel: #131d33;
|
||||
--module-panel-alt: #192642;
|
||||
--module-text: #f8fafc;
|
||||
--module-text-muted: #a0acc4;
|
||||
--module-accent: #38bdf8;
|
||||
--module-accent-soft: rgba(56, 189, 248, 0.16);
|
||||
--module-success: #34d399;
|
||||
--module-warn: #fbbf24;
|
||||
--module-alert: #f87171;
|
||||
--module-radius: 16px;
|
||||
--module-gap: 1rem;
|
||||
font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
|
||||
font-size: 18px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.18), transparent 55%),
|
||||
radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.12), transparent 50%),
|
||||
var(--module-bg);
|
||||
color: var(--module-text);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.module-shell {
|
||||
padding: 1.5rem clamp(1rem, 5vw, 2.5rem) 3rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.module-grid {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.module-card {
|
||||
background: var(--module-panel);
|
||||
border: 1px solid var(--module-border);
|
||||
border-radius: var(--module-radius);
|
||||
box-shadow: 0 16px 48px rgba(2, 6, 23, 0.42);
|
||||
padding: 1.25rem 1.5rem;
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.module-card--tight {
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.module-heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.module-heading__title {
|
||||
font-size: clamp(1.35rem, 2.3vw, 1.75rem);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.module-heading__meta {
|
||||
color: var(--module-text-muted);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.module-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.module-table th,
|
||||
.module-table td {
|
||||
padding: 0.65rem 0.75rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid rgba(148, 163, 184, 0.18);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.module-table th {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
font-size: 0.95rem;
|
||||
color: var(--module-text-muted);
|
||||
}
|
||||
|
||||
.module-table td {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.module-table tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.module-table--tight th,
|
||||
.module-table--tight td {
|
||||
padding: 0.5rem 0.6rem;
|
||||
}
|
||||
|
||||
.module-table__number {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.module-subcard {
|
||||
background: var(--module-panel-alt);
|
||||
border: 1px solid var(--module-border);
|
||||
border-radius: 12px;
|
||||
padding: 1rem 1.1rem;
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.module-subcard__title {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.module-subcard--compact {
|
||||
padding: 0.85rem 0.95rem;
|
||||
gap: 0.55rem;
|
||||
}
|
||||
|
||||
.module-vertical-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
|
||||
gap: 1rem;
|
||||
justify-items: center;
|
||||
}
|
||||
|
||||
.module-vertical {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
justify-items: center;
|
||||
}
|
||||
|
||||
.module-vertical__bar {
|
||||
width: 32px;
|
||||
height: 150px;
|
||||
border-radius: 10px;
|
||||
background: rgba(148, 163, 184, 0.16);
|
||||
border: 1px solid rgba(148, 163, 184, 0.25);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.module-vertical__fill {
|
||||
position: absolute;
|
||||
inset: auto 0 0 0;
|
||||
background: linear-gradient(180deg, rgba(56, 189, 248, 0.8), rgba(56, 189, 248, 0.35));
|
||||
transition: height 800ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.module-vertical__label {
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
color: var(--module-text-muted);
|
||||
}
|
||||
|
||||
.module-vertical__value {
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.module-split {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.module-metric-grid {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
||||
}
|
||||
|
||||
.module-metric {
|
||||
background: var(--module-panel-alt);
|
||||
border: 1px solid var(--module-border);
|
||||
border-radius: 14px;
|
||||
padding: 0.85rem 1rem;
|
||||
display: grid;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.module-metric__label {
|
||||
color: var(--module-text-muted);
|
||||
font-size: 0.95rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.module-metric__value {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.module-metric__note {
|
||||
font-size: 0.95rem;
|
||||
color: var(--module-text-muted);
|
||||
}
|
||||
|
||||
.module-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.35rem 0.9rem;
|
||||
border-radius: 999px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
background: rgba(148, 163, 184, 0.18);
|
||||
border: 1px solid rgba(148, 163, 184, 0.38);
|
||||
}
|
||||
|
||||
.module-pill--success {
|
||||
background: rgba(52, 211, 153, 0.2);
|
||||
border-color: rgba(52, 211, 153, 0.45);
|
||||
color: #c7f9de;
|
||||
}
|
||||
|
||||
.module-pill--warn {
|
||||
background: rgba(251, 191, 36, 0.2);
|
||||
border-color: rgba(251, 191, 36, 0.45);
|
||||
color: #fef3c7;
|
||||
}
|
||||
|
||||
.module-pill--alert {
|
||||
background: rgba(248, 113, 113, 0.22);
|
||||
border-color: rgba(248, 113, 113, 0.45);
|
||||
color: #fecaca;
|
||||
}
|
||||
|
||||
.module-bar {
|
||||
position: relative;
|
||||
height: 0.85rem;
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
background: rgba(148, 163, 184, 0.2);
|
||||
}
|
||||
|
||||
.module-bar__fill {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(90deg, rgba(56, 189, 248, 0.85), rgba(56, 189, 248, 0.45));
|
||||
transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.module-progress {
|
||||
display: grid;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.module-columns {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.module-col {
|
||||
display: grid;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.module-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.module-row__label {
|
||||
color: var(--module-text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.module-row__value {
|
||||
font-size: 1.15rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.module-grid--two {
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
}
|
||||
|
||||
.module-grid--stacked {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.module-divider {
|
||||
height: 1px;
|
||||
background: rgba(148, 163, 184, 0.25);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.module-tag {
|
||||
background: var(--module-accent-soft);
|
||||
color: var(--module-accent);
|
||||
font-weight: 600;
|
||||
padding: 0.4rem 0.75rem;
|
||||
border-radius: 10px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.module-grid + .module-grid {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.module-stack {
|
||||
display: grid;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
|
||||
.module-stack__item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
|
||||
.module-stack__item strong {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.module-notes {
|
||||
font-size: 0.95rem;
|
||||
color: var(--module-text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
:root {
|
||||
font-size: 17px;
|
||||
}
|
||||
.module-shell {
|
||||
padding-inline: clamp(1rem, 4vw, 1.75rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
:root {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
59
overviews/testall/theme.js
Normal file
59
overviews/testall/theme.js
Normal file
@@ -0,0 +1,59 @@
|
||||
(() => {
|
||||
const container = document.querySelector('[data-section-root]');
|
||||
const statusEl = document.querySelector('[data-section-status]');
|
||||
const errorEl = document.querySelector('[data-section-error]');
|
||||
const REFRESH_INTERVAL = 5000;
|
||||
|
||||
if (!container) {
|
||||
return;
|
||||
}
|
||||
|
||||
const formatTime = (date) =>
|
||||
date.toLocaleTimeString([], {
|
||||
hour: 'numeric',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
});
|
||||
|
||||
const setStatus = (text) => {
|
||||
if (!statusEl) return;
|
||||
statusEl.textContent = text;
|
||||
};
|
||||
|
||||
const refresh = async () => {
|
||||
try {
|
||||
const response = await fetch('main.php', {
|
||||
cache: 'no-store',
|
||||
headers: { 'X-Requested-With': 'XMLHttpRequest' },
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`Request failed: ${response.status}`);
|
||||
}
|
||||
|
||||
container.innerHTML = await response.text();
|
||||
setStatus(formatTime(new Date()));
|
||||
|
||||
if (errorEl) {
|
||||
errorEl.textContent = '';
|
||||
errorEl.setAttribute('aria-hidden', 'true');
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to refresh overview sections', error);
|
||||
container.setAttribute('data-refresh-error', 'true');
|
||||
if (errorEl) {
|
||||
errorEl.textContent = 'Connection lost — retrying';
|
||||
errorEl.setAttribute('aria-hidden', 'false');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
refresh();
|
||||
setInterval(refresh, REFRESH_INTERVAL);
|
||||
|
||||
document.addEventListener('visibilitychange', () => {
|
||||
if (!document.hidden) {
|
||||
refresh();
|
||||
}
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user