Browse Source

Add quotes to site footer

In the Bumble object, I've added a selection of quotes from an
assortment of sources that have some meaning to me. On page load, one
quote will be randomly selected to put in the footer. Sources for the
quote are displayed in the browser's console.
Apis Necros 2 years ago
parent
commit
ed885b25a5
2 changed files with 199 additions and 0 deletions
  1. 1 0
      layouts/partials/footer.html
  2. 198 0
      static/js/Bumble.js

+ 1 - 0
layouts/partials/footer.html

@@ -1,5 +1,6 @@
 
 <div id="footer" class="panel text-center">
+	<div id="footer-quote" class="italic"></div>
 	&copy;{{ now.Format "2006" }} | <a id="footer-email" href="#"></a>
 </div>
 <script src="/projects/cipher/apiscipher.min.js"></script>

+ 198 - 0
static/js/Bumble.js

@@ -244,6 +244,203 @@ Bumble.XFN = {
     },
 }
 
+/**
+ * Quotes that either have a lot of meaning to me, or I just really enjoy
+ */
+Bumble.FooterQuotes = {
+    all_quotes: [
+        {
+            "text":"We can't rewind now; we've gone too far",
+            "source":"The Limousines - Interenet Killed The Video Star"
+        },
+        {
+            "text":"There is no justice or no peace, there's only forgiveness",
+            "source":"John Reuben - There's only Forgiveness"
+        },
+        {
+            "text":"Love is like a circle; there's no easy way to end",
+            "source":"Oliver Tree - Cowboys Don't Cry"
+        },
+        {
+            "text":"No crime is as bad as meaninglessness",
+            "source":"Futhermore - Letter To Myself"
+        },
+        {
+            "text":"Independence was the goal, now you miss home sick",
+            "source":"Futhermore - Letter To Myself"
+        },
+        {
+            "text":"Apathy's a tragedy, and boredom is a crime",
+            "source":"Bo Burnham - Welcome To The Internet"
+        },
+        {
+            "text":"All I ever wanted was a little bit of everything all of the time",
+            "source":"Bo Burnham - Welcome To The Internet"
+        },
+        {
+            "text":"The taste of blood; It's murder; This is your fault; You chose this path.",
+            "source":"Mayhem - It's Murder"
+        },
+        {
+            "text":"So it goes.",
+            "source":"Kurt Vonnegaut - Slaughter-house Five"
+        },
+        {
+            "text":"He has always pressed it, and he always will. We always let him and we always will let him. The moment is structured that way.",
+            "source":"Kurt Vonnegaut - Slaughter-house Five"
+        },
+        {
+            "text":"This isn't a man. It's a broken kite.",
+            "source":"Kurt Vonnegaut - Slaughter-house Five"
+        },
+        {
+            "text":"Why you? Why us for that matter? Why Anything? Because the moment simply is.",
+            "source":"Kurt Vonnegaut - Slaughter-house Five"
+        },
+        {
+            "text":"Poo-tee-tweet?",
+            "source":"Kurt Vonnegaut - Slaughter-house Five"
+        },
+        {
+            "text":"Yeah there's nothing left to ruin, yeah we finally got free / How's that for manifesting our destiny",
+            "source":"Sylvan Esso - PARAD(w/m)E"
+        },
+        {
+            "text":"Where you been? I wonder / We've been waitin so long around here for days, days, days",
+            "source":"Mr. Gnome - Pixie Dust"
+        },
+        {
+            "text":"We will laugh at the fact that we ever resisted this blissful togetherness",
+            "source":"Rachel Kann - I Know This"
+        },
+        {
+            "text":"Who mistook the steak for chicken?",
+            "source":"Moldy Peaches - Steak For Chicken"
+        },
+        {
+            "text":"We're not those kids, sitting on the couch",
+            "source":"Moldy Peaches - Steak For Chicken"
+        },
+        {
+            "text":"Death will give us back to God / Just like the setting sun is returned to lonesome ocean",
+            "source":"Bright Eyes - At The Bottom Of Everything"
+        },
+        {
+            "text":"I'm happy just because / I found out I am really no one",
+            "source":"Bright Eyes - At The Bottom Of Everything"
+        },
+        {
+            "text":"There'll always be a few things, maybe several things / That you're gonna find really difficult to forgive",
+            "source":"The Mountain Goates - Up The Wolves"
+        },
+        {
+            "text":"It's gonna take you people years to recover from all of the damage",
+            "source":"The Mountain Goates - Up The Wolves"
+        },
+        {
+            "text":"Your sleepy anarchy... Wake it Up! Wake it up!",
+            "source":"TeddyLoid Ft. Debra Zeer - D City Rock"
+        },
+        {
+            "text":"I just miss how it felt standing next to you / Wearing matching dresses before the world was big",
+            "source":"Girlpool - Before The World Was Big"
+        },
+        {
+            "text":"I have to be fucking with something I love if I'm burning both ends of my candle stick",
+            "source":"Girlpool - Before The World Was Big"
+        },
+        {
+            "text":"Why you tweetin' at the top of your lungs?",
+            "source":"Lil Darkie - COMFORT IN DISCOMFORT"
+        },
+        {
+            "text":"It's almost over / It's just begun",
+            "source":"Bo Burnham - All Eyes On Me"
+        },
+        {
+            "text":"You say the whole world's ending, honey, it already did",
+            "source":"Bo Burnham - All Eyes On Me"
+        },
+        {
+            "text":"You're drowning in the grief of Jupiter's waters",
+            "source":"Terrance Zdunich - Grief (Alternate Version)"
+        },
+        {
+            "text":"I'd rather nap than wonder, restlessly / Will you ever be impressed by me?",
+            "source":"Crying - ES"
+        },
+        {
+            "text":"How did you become this way?",
+            "source":"Crying - ES"
+        },
+        {
+            "text":"I'll embrace dreams again when I can breathe again / And at that point I won't be needing them",
+            "source":"John Reuben - Chapter 1"
+        },
+        {
+            "text":"The revolution didn't leave you, it never came",
+            "source":"John Reuben - Chapter 1"
+        },
+        {
+            "text":"When real life is reality TV, no wonder our youth don't belive in anything",
+            "source":"John Reuben - Chapter 1"
+        },
+        {
+            "text":"There are no heroes, just those of us with high hopes",
+            "source":"John Reuben - Chapter 1"
+        },
+        {
+            "text":"Puff the magic Jesus floats around the universe; The United States is his favorite place on the whole entire Earth",
+            "source":"John Reuben - What About Them?"
+        },
+        {
+            "text":"History is best forgotten and even better rewritten / And since there's no forgetting, let's remember it different",
+            "source":"John Reuben - What About Them?"
+        },
+        {
+            "text":"Four walls with no windows doesn't mean you're it / Four walls with no windows doesn't mean they don't exist",
+            "source":"John Reuben - What About Them?"
+        },
+        {
+            "text":"Ignore the crying outside the door / Sure, you'll pray for their burdens, but you don't want to make it yours",
+            "source":"John Reuben - What About Them?"
+        },
+        {
+            "text":"The more you have, the less you care / The less you care, the more you become unware",
+            "source":"John Reuben - What About Them?"
+        },
+        {
+            "text":"God bless us as we sweep this mess under the rug",
+            "source":"John Reuben - What About Them?"
+        },
+        {
+            "text":"It's not the way I'm meant to be / It's just the way the operation made me",
+            "source":"The Dresden Dolls - Girl Anachronism"
+        },
+        {
+            "text":"Behold the world's worst accident / I am the girl anachronism",
+            "source":"The Dresden Dolls - Girl Anachronism"
+        },
+        {
+            "text":"I don't necessarily belive there is a cure for this, so I might join your century as a doubtful guest",
+            "source":"The Dresden Dolls - Girl Anachronism"
+        },
+        {
+            "text":"Do you love me? Yes, no, maybe. I'll be seeing Hades soon",
+            "source":"JACK THE STRIPPER Ft. Byrds - PHANTASM"
+        },
+    ],
+
+    PlaceQuote: function() {
+        const div = document.getElementById("footer-quote");
+        if (div) {
+            quote = this.all_quotes[Math.floor(Math.random() * this.all_quotes.length)];
+            div.innerText = quote.text;
+            console.log(`Quote source: ${quote.source}`);
+        }
+    }
+}
+
 function page_init() {
     /* Initialize info panels */
     const panels = document.querySelectorAll('.infopanel');
@@ -253,6 +450,7 @@ function page_init() {
 
     Bumble._GET.__init();
     Bumble.XFN.init();
+    Bumble.FooterQuotes.PlaceQuote();
 }
 
 if(document.readyState != 'loading') {