All checks were successful
continuous-integration/drone/push Build is passing
56 lines
1.8 KiB
HTML
56 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-us">
|
|
<head>
|
|
<title>Javascript Redirector for RFID / NFC / nTAG</title>
|
|
<meta name="robots" content="noindex,nofollow">
|
|
<meta charset="utf-8">
|
|
<script type="text/JavaScript">
|
|
|
|
const ntag_list = [
|
|
"/s/articles/2021/09/21/vpp-linux-cp-part7/",
|
|
"/s/articles/2021/12/23/vpp-linux-cp-virtual-machine-playground/",
|
|
"/s/articles/2022/01/12/case-study-virtual-leased-line-vll-in-vpp/",
|
|
"/s/articles/2022/02/14/case-study-vlan-gymnastics-with-vpp/",
|
|
"/s/articles/2022/03/27/vpp-configuration-part1/",
|
|
"/s/articles/2022/10/14/vpp-lab-setup/",
|
|
"/s/articles/2023/03/11/case-study-centec-mpls-core/",
|
|
"/s/articles/2023/04/09/vpp-monitoring/",
|
|
"/s/articles/2023/05/28/vpp-mpls-part-4/",
|
|
"/s/articles/2023/11/11/debian-on-mellanox-sn2700-32x100g/",
|
|
"/s/articles/2023/12/17/debian-on-ipngs-vpp-routers/",
|
|
"/s/articles/2024/01/27/vpp-python-api/",
|
|
"/s/articles/2024/02/10/vpp-on-freebsd-part-1/",
|
|
"/s/articles/2024/03/06/vpp-with-babel-part-1/",
|
|
"/s/articles/2024/04/06/vpp-with-loopback-only-ospfv3-part-1/",
|
|
"/s/articles/2024/04/27/freeix-remote/"
|
|
];
|
|
|
|
var redir_url = "https://ipng.ch/";
|
|
var key = window.location.hash.slice(1);
|
|
if (key.startsWith("ntag")) {
|
|
let week = Math.round(new Date().getTime() / 1000 / (7*24*3400));
|
|
let num = parseInt(key.slice(-2));
|
|
let idx = (num + week) % ntag_list.length;
|
|
console.log("(ntag " + num + " + week number " + week + ") % " + ntag_list.length + " = " + idx);
|
|
redir_url = ntag_list[idx];
|
|
}
|
|
|
|
console.log("Redirecting to " + redir_url + " - off you go!");
|
|
window.location = redir_url;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<pre>
|
|
Usage: https://ipng.ch/app/go/#<key>
|
|
Example: <a href="/app/go/#ntag00">#ntag00</a>
|
|
|
|
Also, this page requires javascript.
|
|
|
|
Love,
|
|
IPng Networks.
|
|
</pre>
|
|
|
|
</body>
|
|
</html>
|