Cookies vs localStorage vs sessionStorage in JavaScript

Back in 2012, I posted How to store JavaScript values persistently, locally (a post that is apparently a bit broken).  I figured that it might be time to revisit the topic. Let’s start by looking at how to create and read cookies, first. See the Pen How to use cookies! by Joe Steinbring (@steinbring) on …

Continue reading "Cookies vs localStorage vs sessionStorage in JavaScript"

3 ways to concatenate strings with JavaScript

I genuinely thought that I had covered this topic already.  It appears that the closest that I came was “PHP: Fun with strings” (back in 2014), so let’s do it now? See the Pen String concatenation in JavaScript by Joe Steinbring (@steinbring) on CodePen. The three methods that I’m using about are concat(), “[string 1] …

Continue reading "3 ways to concatenate strings with JavaScript"

Fixing JWS.app: The “Superfeed” (Part 1)

One of the goals for JWS.app was for it to pull in activity from a bunch of sources and update itself.  That is the reason why I created the “superfeed”.  Let’s start by looking at its current state. See the Pen JWS.app – Superfeed (Before) by Joe Steinbring (@steinbring) on CodePen. Getting the content from …

Continue reading "Fixing JWS.app: The “Superfeed” (Part 1)"

Fixing JWS.app: Turning our attention to the footer

I have never been fond of the footer on JWS.app but I’ve been unsure what to use, there. After addressing the elements at the top of the page, it makes sense to turn our attention to the very bottom of the page.  Considering how much we have leveraged Bulma so far, it also makes sense …

Continue reading "Fixing JWS.app: Turning our attention to the footer"

Fixing JWS.app: Styling the content on the page

Previously, we have looked at the navigation bar, the hero image, and the combination of the two.  I figured that next natural step is to look at how to style the content on the page.  I want to add some sort of visually pleasing container and Bulma‘s box class seems to be a good option. …

Continue reading "Fixing JWS.app: Styling the content on the page"

Fixing JWS.app: What if we merged the nav bar with the hero image?

Previously, we looked at using Bulma to improve the nav bar and we looked at ways we could improve the hero image.  I figured that this week, we would combine the two. See the Pen JWS.app – Hero with Nav by Joe Steinbring (@steinbring) on CodePen. I kind of like this look but the nav …

Continue reading "Fixing JWS.app: What if we merged the nav bar with the hero image?"

Fixing JWS.app: The Hero Image

Last week, we looked at more ways to tweak the nav bar on JWS.app.  This week, I figured that we would move down to the hero image.  The current hero image is dynamically generated based upon a subset of images on photos.jws.app.  It doesn’t look great, though. See the Pen JWS.app – Hero (Before) by Joe Steinbring …

Continue reading "Fixing JWS.app: The Hero Image"

Fixing JWS.app: The Nav Bar (Part 2)

Last week, we looked at two ways to fix the nav on JWS.app.  For the first option, we simply added an additional header that displays when the screen width gets narrow enough.  For the second option, we introduced a hamburger menu.  This week, let’s look at two new options. The first of this week’s options …

Continue reading "Fixing JWS.app: The Nav Bar (Part 2)"