From 1d770f020d40d90f8697ce49899ba025b48cb06c Mon Sep 17 00:00:00 2001
From: will
Date: Thu, 12 Jan 2023 05:38:38 -0700
Subject: [PATCH] Things I Keep Having To Google blog post + Flatworm Friday
Full list of changes:
- Added new blog post, "Guide - Things I Keep Having To Google"
- Landing page now has a 1 in 10 chance to display a flatworm friday video on friday
- Added CSS for tables to highlight alternating rows with a certain class
- Landing page captions now include the current Swatch Internet Time
- Testing feature where the ?caption url parameter, if present, is put through the caption generator function instead of an array selection
- Updated changelog
---
blog/index.php | 2 +
.../{index.html => index.php} | 42 ++++++++++++++++++-
etc/changelog.php | 9 ++++
etc/index.php | 2 +-
index.php | 18 +++++++-
style.css | 6 +++
6 files changed, 74 insertions(+), 5 deletions(-)
rename blog/posts/guide_things_i_keep_having_to_google/{index.html => index.php} (53%)
diff --git a/blog/index.php b/blog/index.php
index f7dad99..6c576cc 100644
--- a/blog/index.php
+++ b/blog/index.php
@@ -67,6 +67,8 @@
echo "
Force a <td> element not to wrap by adding the nowrap attribute to it.
+
Webdev stuff
+
Tables
+
+
Force a <td> element not to wrap by adding the nowrap attribute to it.
+
Set the table-layout CSS property to fixed to force the the columns to be equal widths.
+
+
PHP
+
+
The date() function in PHP returns date information. The first argument is a format string and the second is an optional integer for a Unix timestamp. The valid format characters as of PHP 8 can be found here, and examples are listed in this table:
+
+ Show table
+ It is currently
+
+
Character
Output
Character
Output
+
Y
y
+
o
L
+
F
M
+
m
n
+
t
W
+
l
D
+
d
j
+
S
z
+
N
w
+
A
a
+
g
G
+
h
H
+
i
s
+
v
u
+
B
I
+
e
O
+
P
Z
+
U
+
c
+
r
+
+
+ The strtotime() function does the reverse operation, converting date strings to Unix timestamps. Storing dates as Unix timestamps and converting when needed is recommended.
+
+
Song Lyrics
+
I don't actually have a solution for this one, I just wish there was a resource for looking up the lyrics to songs and looking up songs by their lyrics that wasn't an SEO leech site.