-
7 votes
-
Tiny Sprite Sheet Generator 👾
16 votes -
Svelte & Capacitor - Build hybrid mobile apps with livereloading and access to device APIs
4 votes -
Announcing TypeScript 4.0
13 votes -
Welcome To OS13k – A Tiny Web Based OS and Game Engine
8 votes -
Digit Dilemma Plus - A mind bending puzzle game in only 1k of JavaScript
15 votes -
1Keys: my 1 kilobyte JavaScript piano is open source on GitHub
17 votes -
Create No-JavaScript friendly sites
22 votes -
Comprehensive guide on the JavaScript tooling system by MDN
5 votes -
Free open source app to create GitHub issues faster
4 votes -
Easy JavaScript unit tests in WordPress with Jest
3 votes -
I created a simple JS library for the Johns Hopkins University CSSE COVID-19 data
8 votes -
Promise.all vs Promise.allSettled
3 votes -
Making of Impacts – Programming ⋂ Art
6 votes -
The cost of JavaScript frameworks
5 votes -
Wikimedia RFC: Adopt a modern JavaScript framework for use with MediaWiki
6 votes -
GitHub acquires npm
26 votes -
The main Avast antivirus service contained a custom JavaScript interpreter, enabling wormable pre-auth RCEs. Avast has now disabled the emulator in response to a vulnerability report
13 votes -
Why the world needs CSS developers
6 votes -
Hue Jumper - This entire game fits in a 2048 byte zip file! Made for 2kPlus Jam
19 votes -
Fixing memory leaks in web applications
6 votes -
Why JavaScript is eating HTML
33 votes -
TSLint will be deprecated by the end of 2020 in favor of ESLint
7 votes -
Smaller HTML Payloads with Service Workers
7 votes -
The Mysterious Double Tilde (~~) Operation
12 votes -
Firefox UI is now built with Web Components
21 votes -
Build your own React
7 votes -
Dissecting A Dweet: Shattered Tunnel - How to make a 3D tunnel in 140 bytes of JavaScript!
8 votes -
JS13k Results Are Out! - Small JavaScript games playable in browser + source code
5 votes -
NPM CEO Bryan Bogensberger Resigned
6 votes -
Bounce Back ~ My Boomerang Roguelite / Zelda Homage for JS13k
9 votes -
Ember.js, Dr. Carvers Shave Butter, and disappearing products
10 votes -
Lezer (the parser used in CodeMirror 6)
3 votes -
QuickJS: A new JS interpreter/compiler by Fabrice Bellard
11 votes -
The Baseline Interpreter: a faster JS interpreter in Firefox 70
13 votes -
All the new ES2019 tips and tricks
7 votes -
StandardJS, a Javacript linter config with 3 million downloads/month starts showing advertisements in users terminals
20 votes -
Dissecting A Dweet: Parallax Mountains (Analyzing a 140 byte JavaScript demo)
3 votes -
A Simple Intro To Svelte
4 votes -
Dissecting A Dweet: Breaking Broke
6 votes -
Why is modern web development so complicated?
17 votes -
Dissecting a Dweet: Strange Attractor (a tiny 3D Lorenz system in javascript)
9 votes -
JavaScript: What’s new in ES2019
13 votes -
Dissecting A Dweet: Ring Weave ~ a 140 byte javascript animation
9 votes -
Dissecting A Dweet: Mini Black Hole
6 votes -
MDN (beta) is now built with React
6 votes -
Dissecting A Dweet ~ Spirograph Design Generator
6 votes -
Dissecting A Dweet ~ Spiral Javascript Quine Explained
12 votes -
Need a simple way to password protect a webpage
Hey Tildes! I've got a static, basic website, HTML and CSS. It's one page only. But I'd like to create a second page with some more private content that is password protected. I know that I can...
Hey Tildes!
I've got a static, basic website, HTML and CSS. It's one page only. But I'd like to create a second page with some more private content that is password protected.
I know that I can accomplish this via .htaccess but what I don't like about this method is that when the user navigates to the page, they get a pop up asking for a username and password. What I would like is having the user navigate to the page, and then they are met with a simple form asking for just a password (no username). After they enter the password, the "veil" lifts or the page forwards and they get the private content.
Here's the thing... the content really only needs to seem private. It's not super secret, personal information. I don't want it indexed by search engines (nofollow), and I want it basically hidden, but the password is only there to make the user feel exclusive. If some tech-minded person encountered this page and jumped through a bunch of hoops to get in without the password, it's not a big deal to me. In reality, 99.9% of people accessing this page will not be able to bypass the password.
I'm guessing this can be accomplished easily in Javascript, but I don't really know much Javascript apart from finding code snippets and plunking them in. I also want to be able to fully design the password entry page so that it looks branded, so a code snippet plunked down into my HTML doc would be great for this.
If there is an easy way to actually protect the content behind the password, that would be excellent. In this case, I imagine it would be much like a news site with an ad-blocker-blocker. Just some kind of pop-up that blocks all the content. Enter the password, and you're in.
Anyhow, I hope I've described what I'm looking for accurately enough. Anybody have any easy and quick ways to accomplish this?
14 votes -
Hacking thousands of websites via third-party JavaScript libraries
5 votes