#ZegnatI think it should be able to run the same extension code on Chrome and Firefox, just need to find the time to update it to the proper stuff... Did you want this done before the Mastodon release, [kevinmarks] ?
#Loqiknown has -1 karma in this channel over the last year (0 in all channels)
ludovicchabant and [Vincent] joined the channel
#[eddie]So I added a dark mode to my website for macOS Mojave users with the Safari Tech Preview (and eventually after the new Safari version, any Mojave user with dark mode). The biggest question is, should I provide an actual “dark/light” mode switcher to allow someone to switch between themes?
#[eddie]Because someone MAY prefer to use a dark version of my website even if they don’t have macOS Mojave or they may not use Dark Mode
#[eddie]I’m thinking I will, but that leads to the following question. Do I add a query parameter to every page of my website? ?theme=dark and alter the display based on that. OR do I just provide a JS switcher
#[eddie]I can do it easily either way because it’s really just adding a css class to the page body
#[eddie]but I don’t really like the idea of altering my url for a theme
#[eddie]I guess I could just do cookies, which could work on both sides?
#[eddie]When you are on the page if you click the theme switcher the JS will add a theme cookie and change the css class on the body
#[eddie]That’s probably the way to go as the more I think about it, I really don’t want to mess with my url structure for theming
#sknebelseems like a fair use case for cookie/localstorage + JS
eli_oat joined the channel
#[eddie][Vincent] So you are saying you would consider dark mode (due to accessibility POV) a basic user need, thus you would shy away from js?
#[eddie]I definitely see Dark Mode as useful for accessibility
#[eddie]and I definitely think JS should be progressive enhancement
#[eddie]I guess I’m just not sure where I fall on Dark Mode being need or enhancement
#aaronpk[eddie]: id set a cookie to toggle dark mode. You can do it from JavaScript or server side
#[eddie]So if <no script> make the toggle button a POST form?
#[eddie]that would change the cookie and redirect back to the existing page?
#[eddie]If js it intercepts and just changes on the fly and updates the cookie?
#[Vincent][eddie] yeah I would these days. It’s amazing how many visual impairments are affected by it. It’s on my backlog for my blog, once I find time
#[eddie]Interesting. I have 0 visual impairments (besides being near-sighted) so I’m not as familiar with how dark mode helps out
#sknebel(I think I went through last year some point and just sorted them that way, but didn't go further than that)
#aaronpkYeah at least it should link to the spec section
#sknebelcareful with server-side style changes and caching tho :D
#petermolnarre dark mode; I see it' possible to use it with a media query, but I keep wondering how it could be triggered by hand as well. Currently I have a theme switcher which either turns a light-override set of CSS on or off, but if I want to support automatic light/dark mode, I need to figure a way to trigger it with JS as well, if needed. Anyone aware of any solution for it?
#sknebelyou can enable/disable CSS in JS by turning on/off the link tags
#[Vincent]about 50% of the population have some eye condition that makes black text against white be a problem in some way
[Rose] joined the channel
#[Rose]A note: I, and several people I know with mild astigmatisms, don't find it to be too much of a problem. But accessibility is a good thing regardless of course.
#[Rose]With contact lenses or glasses my vision is excellent (better than 20/20 one optician said), though of course tiredness plays a role
#petermolnarwould someone be so kind to visit my site ( https://petermolnar.net/ ) with cleared localstorage in light mode on mac an tell me if the site is light or dark? (ENOMAC)
#[schmarty]note to self: don't blindly re-fetch a bunch of webmention data and just assume that jekyll can consume it before embarking on 2 days of travel and three days of sickness.
jgmac1106 joined the channel
#[schmarty]is so close to feature parity with the new hugo templates for his site.
#[schmarty]looks like a couple of swarm posts got flipped in time, also.
#[eddie]!tell aaronpk In order for Compass’ Web Hooks to run, does it require the background process to run? because I’m not seeing the pings on my server. But I haven’t run the background process, so I’m wondering if that’s what is missing
#[eddie]schmarty the Swarm stuff is probably because a couple days ago OYS had API denial issues from Foursquare
[jgmac1106] joined the channel
#[schmarty]these posts went through before that. the ordering problem is from a "safety feature" on my micropub server where i decided never to trust incoming publish dates and times. :}
#[schmarty]oh, nvm, they seem to have come through a couple of days late, so it's a combination of those issues. :}
swentel, snarfed, [chrisaldrich], [kevinmarks], eli_oat and gRegorLove joined the channel
#aaronpk[eddie] yeah you need to run the background script for the trip stuff and web hooks to run
#Loqiaaronpk: [eddie] left you a message 1 hour, 31 minutes ago: In order for Compass’ Web Hooks to run, does it require the background process to run? because I’m not seeing the pings on my server. But I haven’t run the background process, so I’m wondering if that’s what is missing
#aaronpkI don't like relying on the HTTP connection from the phone to also do long-running stuff like that
[eddie] joined the channel
#[eddie]Gotcha. I intentionally don't have the background process because the trip stuff doesn't use a media endpoint yet it still just sends it in that multipart that breaks on my Micropub endpoint. haha
#[eddie]If I let the background process run and all the trips are "sent" is there anyway to retrieve them?
#aaronpkthe trips are kind weird, and I probably need to redo how it's handled completely
#[eddie]haha I basically have it not running in the hope that when I get Compass to send the geodata via media endpoint, I can turn it on and all my trips will send.
#aaronpkreally a trip is just a few additional properties on the start and end location in the regular collection of locations
#aaronpkwhen the HTTP endpoint recognizes that a trip has ended, it queues a job to process it
#[eddie]So I guess if I wanted to "query the trips" from the past, I could just scrape each day and look for the start and end parameters
#aaronpkso depending on what you've configured for your job queue, you might have a bunch of jobs queued up already now. but if not, the trip data is still in there but you'd have to iterate over all the records to find them
#aaronpkI probably should have stored the trip start/end markers in a separate database table so they'd be easier to find :sigh:
#[eddie]Gotcha. I *think* the jobs are in the queue because when I ran the background worker for a minute awhile ago it started sending stuff
#[eddie]So I've left the background worker off so my queue builds up
#[eddie]I'm guessing it's probably just easier for me to dump the queue, turn on the background worker and then fetch the past trips by iterating over the content in the future