CSS-Only Chat
github.com
github.com
> What's cool is that a browser won't actually load that background image until this selector is used
Intuitively it strikes me as leaky, fingerprintable behavior. I don't see any obvious problem with it, but it does vaguely remind me of those hacks that could exfiltrate browsing history with clever usage of the :visited selector.
The readme explains how the CSS :active selector is used to detect button presses.
Edit: actually this should work even without mixed replace.
There’s no problem with either listed approach, GP just seems to consider a method without page reloads as adhering to a harder constraint.
Well, that's really only technically correct, since the strategy here is to replace the whole page with a new version of it on each virtual keypress, by using CSS to hide the previous HTML and then receiving the new updated version of the web page's content. The only tricks is to use a chunked content-transfer to have this all happen over a single HTTP request, so yes technically the page does noes reload, but it's pretty much the same thing as if it did.
Really cool trick nonetheless! And more importantly fun trick, and fun read :).
Thanks!
This tech was used in the nineties by a finnish chat site operated by a radio station. I used to go on dates from the site myself. Thought it would be valuable to have this archived in english too
https://www.iltalehti.fi/fiidifi/a/2015021119172724
”KissFM Chat - do you still remember? For many, KissFM's chat was their first contact with the internet.
This is what it looked like back then. KISSFM
Mari Pudas Thursday, February 12, 2015 at 10:40
In the mid-1990s, not every home had an internet connection, in fact, it was quite a luxury. But fortunately, there were computers with internet connections in libraries. Under the watchful eye of the librarian, you could use the computer for up to an hour, sometimes just half an hour.
There were no Youtubes, not to mention Facebook or Twitter. So what did we do on the internet back then? Of course, we went to KissFM's chat!
Kiss FM's chat was founded in 1996, and was initially known as a hotel. Around 1998, the chat site got a brighter, greenish color scheme and the hotel was abandoned. The chat became Chatropol. There you chose a "room" to chat with like-minded people based on your interests.
The most popular rooms, cafe, disco, erotic house, and singles bars, were always occupied, as they could only accommodate about a dozen chatters at a time. Then you had to be content with the office building or the hairdresser. But regardless of the name, the conversation was often hilariously fun.
Over the years, its popularity waned and Kiss also became Voice. But let's let the former chatters reminisce about Kiss's golden age:
My friend and I used to use the names of Finnish schlager stars as our nicknames in the Kiss FM chat. We didn't intend to deceive anyone, we just thought it was a fun joke. Until "Marita Taavitsainen" received a private message thanking her, saying that the new album is wonderful. We politely thanked and that ended the use of real names due to a bout of bad conscience.
Ilona
I spent time and looked for some company while studying in Tampere at the beginning of the millennium. I enjoyed most in the Tampere section of Kiss FM's chat, where I held a quiz for other chatters - the fastest correct answer gets a point, and ten points to win. My nickname was Joe DiMaggio.
The Tampere department also had a nickname, hilleri, and he always said hrrrrrrr when he joined the channel. Others happily welcomed him. I even went on a couple of dates with a girl I met through the chat, but nothing more serious came out of those.
Joe
-The time when there was no internet at home (even with a modem) and you had to reserve hourly slots from the library for chatting after school... and just when you were having a good conversation with some nice guy, the library lady came to complain and you had to stop.
-Choosing rooms based on names, and then they were full!
-When some guy tested if I was old enough by asking when my period starts... younger ones wouldn't probably have known how to crack the code ;)
Jepa
The greatest amusement for teenage girls was to find a boy from the Kiss chat, and we would all respond together. Back then we just exchanged harmless messages, asked about each other's well-being and hobbies. We had no idea if the boy on the other side of the internet existed or not. In middle school, we would sneak into the computer room during breaks to chat or visit that friend who had a computer. Then of course we were nervous that a landline phone call would interrupt the internet connection.
Anna
I participated in discussions, but unfortunately I don't remember any of the topics. I just thought of the most popular internet fashion words of that time such as "peelo" which described an idiot/troublemaker who doesn't follow netiquette (:D).
Oh boy! In middle school (around 1997), I chose ICT as an optional subject. The school had a new fancy computer room, where everyone had their own computers with internet. First, we had to learn touch typing, then we could do what we wanted, i.e., create restless gif animations for our homepages or surf the internet. There wasn't much content on the internet yet - or we didn't know how to find it. But the gates of Kiss FM's chat city were wide open! Initially, I remember the coloring of the site being black-neon green, then the site was renewed and diversified, and the graphic image became city-like. Usernames were of course something like "FlowerGirl82" and the conversation was quite innocent flirting. I guess I learned something from that, but I still wish I had learned that HTML.
FlowerGirl82
Late
Around the age of 12, we pretended to be a bit older and played like we were looking for company. We sweet-talked for a while until we managed to coax out phone numbers. Then we made prank calls to those numbers. This pattern was repeated numerous times.
I'm not proud, but I don't regret it either”
I even wrote one myself.
Just curious, what is the update frequency of `Transfer-Encoding: chunked` web pages in browser?
The server determines that - when it sends new HTML (whenever it wants to), the client loads and displays the new content immediately.
And now the unwritten contract between users and companies has been broken, so I’d very much prefer most applications to be in the browser where they are contained instead of installed on my computer.
But AFAIK, there is only CSS and JS.
You used to have to declare the Script tag as JS, but you don’t anymore since HTML5. Because all scripts are JS.
I don’t think SASS and LESS count, as are not supported by browsers natively, and require pre compilation. :-)
I wonder how much data transfer was wasted to this.
Rip vbscript
You can also declare style types (even an http header for it if i recall) but nobody bothered as nobody ever implemented anything else (not counting xslt but that was attached to documents differently and had a really different model)
Css was never meant to be a style language (if by language we understand "a syntax with logical constructs"). It was simply meant go be the stylesheet for a given website. Headers look like this. Body looks like that.
Except, they cascade: headers look like this, but headers that are emphasized look like so.
The idea was that one could define a stlesheet for screens, a stylesheet for print, a stylesheet for screenreaders, and so on.
As such, no programming "language" logic was considered, except "how do styles cascade" (ie, how do we resolve which style "wins" when there are multiple candidates).
The alternative to css was inline styles; styling but without the sheet part.
1. Everyone trying to build a do-all-the-things-junk-ware-drag-and-drop system. Turns out fixed styles are a pain with complex widgets that are supposed to talk to one-another.
2. Turns out that designing something for just desktops was a mistake - media queries sort-of came to the rescue for print/mobile. But opening the door for extensions like this made it all-to-easy to want to simplify/re-use stuff.
3. Semantic HTML was too light-weight. Everyone building single page apps wanted views, html turned into a sort of weird GUI structure language with semantic sprinkled on top, and it was incredibly tempting to see CSS as a main driver of that view (inline styles were awkward but CSS allowed you to sort-of-obviate that).
So we grew weird CSS/HTML extensions that turned into (DSL) languages that got folded back into CSS in a lot of cases.
If we could start over I'd scuttle CSS/HTML separation, styling would just be part of html and html would have first class support for templates. You wouldn't need to cascade anything, because the HTML would just know what it was supposed to look like, and practically auto-cascade. If there were any "style sheets", they would be just default value lists, and again, they would be a part of the html standard, not a separate "standard".
Which I think is practically what CSS used to be, lists of values that applied to various elements. This made it easy e.g. for early web to allow per-user customization by providing access to those lists, or in-browser modification of those values for quick feedback cycles. The mistake was calling it CSS and HTML's shortcomings, not how it functioned.
Though it appears to have required an external processor, rather than being an alternative to "text/css" handled by the user agent. For that, you'd want to look elsewhere on Wikipedia's list [1]; one partial candidate is JSSS (JavaScript Style Sheets) in Netscape Communicator, which were JavaScript snippets that could actually be placed in <style type="text/javascript"> tags.
[0] http://xml.coverpages.org/dsssl.html
[1] https://en.wikipedia.org/wiki/List_of_style_sheet_languages
I'm under the impression that eventually the Dom elements are just going to eventually crash the browser?
I guess in the end that a moot point given i really hope nobody uses this is production!
On another note, I once had to fetch data in powerbi, but there were some sandbox limitations on fetch requests or something
I ended up fetching images instead and encoding/decoding the image bits being sent to make an arbitary fetch request
Does anybody know of a viable way to implement (geographic) maps without JavaScript?
I suppose you could use similar tricks as CSS-only chat to get the pan buttons to work without a page refresh