mirror of
https://github.com/seigler/seigler.github.io
synced 2025-07-27 07:16:09 +00:00
⚡ Add URL decoder/redirector, update node dependencies
This commit is contained in:
parent
982c1f6475
commit
cc1e58539a
4 changed files with 8189 additions and 724 deletions
6089
package-lock.json
generated
Normal file
6089
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -14,10 +14,10 @@
|
||||||
"gulp-if": "^2.0.2",
|
"gulp-if": "^2.0.2",
|
||||||
"gulp-less": "^3.3.0",
|
"gulp-less": "^3.3.0",
|
||||||
"gulp-notify": "^3.0.0",
|
"gulp-notify": "^3.0.0",
|
||||||
"gulp-plumber": "^1.1.0",
|
"gulp-plumber": "^1.2.1",
|
||||||
"gulp-rename": "^1.2.2",
|
"gulp-rename": "^1.2.2",
|
||||||
"gulp-rev-all": "^0.9.7",
|
"gulp-rev-all": "^0.9.7",
|
||||||
"gulp-sourcemaps": "^2.4.1",
|
"gulp-sourcemaps": "^2.6.5",
|
||||||
"gulp-svgmin": "^1.2.3",
|
"gulp-svgmin": "^1.2.3",
|
||||||
"gulp-svgstore": "^6.1.0",
|
"gulp-svgstore": "^6.1.0",
|
||||||
"gulp-util": "^3.0.8",
|
"gulp-util": "^3.0.8",
|
||||||
|
|
42
src/static/redirect/index.html
Normal file
42
src/static/redirect/index.html
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>URL hash redirector</title>
|
||||||
|
<style>
|
||||||
|
* { box-sizing: border-box; }
|
||||||
|
html, body { margin: 0; height: 100%; }
|
||||||
|
body {
|
||||||
|
font-family: sans-serif;
|
||||||
|
background-color: #EEE;
|
||||||
|
color: black;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Redirecting to:<br><a id="destination" href="#"></a></h1>
|
||||||
|
</body>
|
||||||
|
<script>
|
||||||
|
var dest = window.location;
|
||||||
|
var link = document.getElementById('destination');
|
||||||
|
function redirect() {
|
||||||
|
window.location = dest;
|
||||||
|
}
|
||||||
|
if (window.location.hash) {
|
||||||
|
dest = atob(window.location.hash.substr(1)); // base64 decode URL hash
|
||||||
|
link.href = dest;
|
||||||
|
link.innerHTML = dest;
|
||||||
|
window.setTimeout(redirect, 3000);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue