aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrankie B <floppydisk05@aol.com>2022-09-16 23:07:51 +0000
committerFrankie B <floppydisk05@aol.com>2022-09-16 23:07:51 +0000
commit1d76709b910e260b77e29ed84afc52bb77d10da5 (patch)
treec8300246cdd534a6bf984fa3bce38b3b0c293cce
parent6ffd5d8c5c48c8c436d4dcf4ea5ed340e1a22438 (diff)
Rename .min.css files to .css
-rwxr-xr-xcalculators/index.php2
-rwxr-xr-xcomputers/index.php2
-rw-r--r--header.php34
-rwxr-xr-xindex.php4
-rwxr-xr-xme/index.php2
-rwxr-xr-xpics/index.php2
-rwxr-xr-xprojects/index.php2
-rwxr-xr-xres/css/dark.css (renamed from res/css/dark.min.css)4
-rwxr-xr-xres/css/light.css (renamed from res/css/light.min.css)0
-rwxr-xr-xres/js/themeswap.js2
-rwxr-xr-xrevisions/index.html2
11 files changed, 27 insertions, 29 deletions
diff --git a/calculators/index.php b/calculators/index.php
index c850e46..ed2dd5a 100755
--- a/calculators/index.php
+++ b/calculators/index.php
@@ -5,7 +5,7 @@
<title>Calculators</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <link rel="stylesheet" id="theme" href="../res/css/dark.min.css" type="text/css" />
+ <link rel="stylesheet" id="theme" href="../res/css/dark.css" type="text/css" />
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
<meta property="og:type" content="website">
diff --git a/computers/index.php b/computers/index.php
index 1b02c0b..ff856f9 100755
--- a/computers/index.php
+++ b/computers/index.php
@@ -5,7 +5,7 @@
<title>Calculators</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <link rel="stylesheet" id="theme" href="../res/css/dark.min.css" type="text/css" />
+ <link rel="stylesheet" id="theme" href="../res/css/dark.css" type="text/css" />
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
<meta property="og:type" content="website">
diff --git a/header.php b/header.php
index f350537..8e0cc6e 100644
--- a/header.php
+++ b/header.php
@@ -1,19 +1,16 @@
-<?php
-ini_set('display_errors', 1);
-ini_set('display_startup_errors', 1);
-error_reporting(E_ALL);
-?>
-
<div class="header">
<nav>
<div>
- <a href="./me/">about</a> |
- <a href="./pics/">pics</a> |
- <a href="./projects/">projects</a> |
- <a href="./cgit">repos</a> |
- <a href="./calculators/">calculators</a> |
- <a href="./computers/">computers</a> |
+ <!--<a href="/me/">about</a> |
+ <a href="/projects/">projects</a> |
+ <a href="/pics/">pics</a> |-->
+ <a href="/dog/">dog</a> |
+ <a href="https://github.com/floppydisk05?tab=repositories">repos</a> |
+ <a href="/calculators/">calculators</a> |
+ <a href="/computers/">computers</a> |
+ <a href="/bookmarks/">bookmarks</a> |
<a href="https://blog.diskfloppy.me/">blog</a>
+ <!--<a href="/sitemap/">sitemap</a>-->
</div>
</nav>
<div class="pagetree">
@@ -21,21 +18,18 @@ error_reporting(E_ALL);
<span class="title">
<?php
$uri = $_SERVER['REQUEST_URI'];
- if ($uri === '/') {
- echo '~floppydisk';
- } else {
+ if ($uri === '/') { echo '~floppydisk'; }
+ else {
$uri = substr(substr($uri, 1), 0, -1);
- if (strpos($uri, '/')) {
+ if (!strpos($uri, '/')) {
$uriArr = explode('/', $uri);
$link = "/";
$links = '<a href="/">~floppydisk</a> / ';
$currentDir = basename(getcwd());
foreach($uriArr as $page) {
if ($page !== $currentDir) {
- if ($link !== '/')
- $link = $link . '/' . $page;
- else
- $link = $link . $page;
+ if ($link !== '/') $link = $link . '/' . $page;
+ else $link = $link . $page;
$links = $links . '<a href="' . $link . '">' . $page . '</a> / ';
}
}
diff --git a/index.php b/index.php
index 51e411e..323623f 100755
--- a/index.php
+++ b/index.php
@@ -5,7 +5,7 @@
<title>~floppydisk</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="stylesheet" id="theme" href="./res/css/dark.min.css" type="text/css" />
+ <link rel="stylesheet" id="theme" href="./res/css/dark.css" type="text/css" />
<meta property="og:type" content="website">
<meta property="og:title" content="~floppydisk">
@@ -15,7 +15,7 @@
<!--<script lang="javascript" href="/res/js/themeswap.js"></script>-->
<script>
function addStyleSheet(name, id) {
- var path = '/res/css/' + name + '.min.css';
+ var path = '/res/css/' + name + '.css';
var old = document.getElementById(id);
if (old && (old.href != path)) {
old.href = path;
diff --git a/me/index.php b/me/index.php
index 6ba29f2..c4f0bca 100755
--- a/me/index.php
+++ b/me/index.php
@@ -5,7 +5,7 @@
<title>Calculators</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <link rel="stylesheet" id="theme" href="../res/css/dark.min.css" type="text/css" />
+ <link rel="stylesheet" id="theme" href="../res/css/dark.css" type="text/css" />
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
<meta property="og:type" content="website">
diff --git a/pics/index.php b/pics/index.php
index 6ba29f2..c4f0bca 100755
--- a/pics/index.php
+++ b/pics/index.php
@@ -5,7 +5,7 @@
<title>Calculators</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <link rel="stylesheet" id="theme" href="../res/css/dark.min.css" type="text/css" />
+ <link rel="stylesheet" id="theme" href="../res/css/dark.css" type="text/css" />
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
<meta property="og:type" content="website">
diff --git a/projects/index.php b/projects/index.php
index c1b429a..9ae8167 100755
--- a/projects/index.php
+++ b/projects/index.php
@@ -5,7 +5,7 @@
<title>Calculators</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <link rel="stylesheet" id="theme" href="../res/css/dark.min.css" type="text/css" />
+ <link rel="stylesheet" id="theme" href="../res/css/dark.css" type="text/css" />
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
<meta property="og:type" content="website">
diff --git a/res/css/dark.min.css b/res/css/dark.css
index ebfa8a8..5c66ade 100755
--- a/res/css/dark.min.css
+++ b/res/css/dark.css
@@ -5,6 +5,10 @@ been moved to global.css and imported below.
*/
@import url('global.css');
+html {
+ color-scheme: dark;
+}
+
div.project pre {
border: 1px solid #666666
}
diff --git a/res/css/light.min.css b/res/css/light.css
index 96b5b4d..96b5b4d 100755
--- a/res/css/light.min.css
+++ b/res/css/light.css
diff --git a/res/js/themeswap.js b/res/js/themeswap.js
index 6ea7268..e619471 100755
--- a/res/js/themeswap.js
+++ b/res/js/themeswap.js
@@ -1,5 +1,5 @@
function addStyleSheet(name, id) {
- var path = '/res/css/' + name + '.min.css';
+ var path = '/res/css/' + name + '.css';
var old = document.getElementById(id);
if (old && (old.href != path)) {
old.href = path;
diff --git a/revisions/index.html b/revisions/index.html
index c9cdb8d..31345bb 100755
--- a/revisions/index.html
+++ b/revisions/index.html
@@ -5,7 +5,7 @@
<title>Calculators</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <link rel="stylesheet" id="theme" href="../res/css/dark.min.css" type="text/css" />
+ <link rel="stylesheet" id="theme" href="../res/css/dark.css" type="text/css" />
<link rel="shortcut icon" href="../res/img/icons/ico/calc.ico" type="image/x-icon">
<meta property="og:type" content="website">