forked from B4CON4LIFE/Clack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.js
20 lines (18 loc) · 932 Bytes
/
dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
document.onkeyup = function(e)
{
if(e.ctrlKey && e.shiftKey && e.which == 85)
{
console.log("onkeyup registered");
if(location.pathname == '/gba' || location.pathname == '/gba/' || location.pathname == '/gba/index.html' || location.pathname == '/gba/index.html/' || location.pathname == '' || location.pathname =='/' || location.pathname == '/index.html' || location.pathname == '/index.html/')
{
window.open('dev.html', '_self', false);
console.log('Secret Combo Pressed! Opening Dev Page...');
}
else if (location.pathname == '/gba/dev.html' || location.pathname == '/gba/dev.html/' || location.pathname == '/dev.html' || location.pathname == '/dev.html/')
{
window.open('index.html', '_self', false);
console.log('Secret Combo Pressed! Moving back to Home Page...');
}
}
}
// console.log("dev.js loaded");