5 ms·
Exactly. If more people's reaction, instead of searching an app store for a privacy respecting screen light, was to sit down and write: <!DOCTYPE html>
by megous 8y ago
Exactly. If more people's reaction, instead of searching an app store for a privacy respecting screen light, was to sit down and write:
<!DOCTYPE html>
<script>let on true;</script>
<body onclick="on = !on; this.style.background = on ? 'white' : 'black'">
and were able to easily upload it somewhere on a phone and run it locally from a shortcut on the screen. We'd have hacker culture encouraged right there.
- adrianhel 8y agoYou can do that with mobile-web-app-capable and add to home screen on both ios and Android. No address bar and it looks like any other app. You need to host the site though.
- megous 8y agoRunning it from file:/// of the phone's local filesystem could be more hassle-free. Not sure if it would be bookmarkable, but I don't see why not. I don't have access to a smartphone to try.
- eat_veggies 8y agoI'd love that but I don't think it'll encourage hacker culture. Instead we'll have the Can-Code making things for the Can't-Code like we do now, but with even fewer checks for nefarious activity. Case study: people copy-pasting random code into their Myspace profiles
- acct1771 8y agoInspired a lot of "can kinda read code"s to learn more - so they didn't get their pages compromised, haha
- lazerwalker 8y agoI wonder if https://glitch.com https://glitch.com has a mobile-friendly IDE and will also let you set up a project to be a PWA? Seems like it'd be a great fit for what you're describing.
- jt2190 8y agoHmm... When I pulled up one of my Glitch projects on my iPhone Xs the browser-based editor works but the editor view is either cut off on the right in portrait mode or almost offscreen when the keyboard displays in landscape mode. I suspect you can get a better coding experience by connecting your Glitch account to Github and then using an editor that works well on your device. The PWA part of Glitch is completely under your control.
- myfonj 8y agoUpload? Come on, just load it as dataURI, bookmark it and you have offline "application" at your disposal. And as a bonus, here, have this "distributed app store" you can even print on paper [1]. [1] http://zxing.org/w/chart?cht=qr&chs=350x350&chld=L&choe=UTF-8&chl=data%3Atext%2Fhtml%3Bcharset%3Dutf-8%2C%3C!DOCTYPE%20html%3E%3Ctitle%3EScreen%20light%3C%2Ftitle%3E%3Chtml%20onclick%3Don%3D!on%3Bthis.style.background%3Don%253F%27white%27%3A%27black%27%3E%3Cbody%20onload%3Don%3Dtrue%3E http://zxing.org/w/chart?cht=qr&chs=350x350&chld=L&choe=UTF-... i.e. QR-coded dataURI document data:text/html;charset=utf-8,<!DOCTYPE html><title>Screen light</title><html onclick=on=!on;this.style.background=on%3F'white':'black'><body onload=on=true>
- jahewson 8y agoMy iPhone 6s doesn’t like this QR code, it just says “No usable data found”.
- rhizome 8y agois there a "don't try to use the data" setting, so it'll just present the plain text?
- masklinn 8y agoNope. Only setting is to not scan for qrcodes at all.
- masklinn 8y agoThe built-in QR detector is very finnicky/odd, apparently it just assumes every payload is an HTTP URL, nothing else works even remotely. Other applications work much better for that, though they may or may not recognise non-http URIs e.g. here scanbot just displays the textual content and you're on the hook for copy/pasting it wherever you need.
- myfonj 8y agoYes, I had no luck even with QR reader integrated in Nightly Android [0]. Sadly, copypasting resulting URI as plaintext is most probably the only option for modern browsers, because any other way of top level frame navigation to dataURI document is blocked. (Besides existing bookmark, that is.) I keep forgetting this, sorry for hurried "in theory it must work great" shout out. [0] https://support.mozilla.org/en-US/kb/scan-qr-codes-firefox-android https://support.mozilla.org/en-US/kb/scan-qr-codes-firefox-a...
- natch 8y agoYou can already do this. You just need a site to host it on.