aboutsummaryrefslogtreecommitdiff
path: root/entries/davepagurek
diff options
context:
space:
mode:
authorfunemy2022-10-25 07:14:52 +0000
committerfunemy2022-10-25 07:14:52 +0000
commit998ef837b43203319397f191036a97a5adc42220 (patch)
tree920558bd60d282c663fd2da1cd4144cac1849a1d /entries/davepagurek
parentfdac6c60e115297a58f5b81da0c4b7f18ac758f2 (diff)
parentce7544a6db594f7d3dfad0d7dc65d01515e57ad6 (diff)
Merge branch 'main' of github.com:braxtonhall/fib
Diffstat (limited to 'entries/davepagurek')
-rw-r--r--entries/davepagurek/index.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/entries/davepagurek/index.html b/entries/davepagurek/index.html
new file mode 100644
index 0000000..bfa8791
--- /dev/null
+++ b/entries/davepagurek/index.html
@@ -0,0 +1,67 @@
+<html>
+ <head>
+ <style>
+.initialize {
+ --prev: 0;
+ --next: 1;
+}
+
+.copyPrevToTmpVars {
+ --tmp-prev: var(--prev);
+ --tmp-next: var(--next);
+}
+
+.setVarsToSumOfTmps {
+ --prev: var(--tmp-next);
+ --next: calc(var(--tmp-prev) + var(--tmp-next));
+}
+
+.setVarsToSumOfTmps::before {
+ counter-set: fib var(--prev);
+ content: counter(fib);
+}
+ </style>
+ </head>
+ <body>
+
+ <!--
+ These are all nested divs, but browsers are happy to fix my
+ bad code, so I can write one on each line as if they're statements!
+ -->
+
+ <div class="initialize">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+
+ <div class="copyPrevToTmpVars">
+ <div class="setVarsToSumOfTmps">
+ </body>
+</html>