mirror of
https://github.com/dockersrc/scripts
synced 2025-09-18 03:57:40 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
6
htdocs/www/js/errorpages/homepage.js
Normal file
6
htdocs/www/js/errorpages/homepage.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function homepage() {
|
||||
let proto = location.protocol;
|
||||
let port = location.port;
|
||||
let currentSite = window.location.hostname;
|
||||
window.location = proto + '//' + currentSite + ':' + port;
|
||||
}
|
7
htdocs/www/js/errorpages/isup.js
Normal file
7
htdocs/www/js/errorpages/isup.js
Normal file
@@ -0,0 +1,7 @@
|
||||
function isupme() {
|
||||
let proto = location.protocol;
|
||||
let port = location.port;
|
||||
let currentSite = window.location.hostname;
|
||||
fullurllocation = proto + '//' + currentSite + ':' + port;
|
||||
window.location = 'http://isup.me/' + fullurllocation;
|
||||
}
|
7
htdocs/www/js/errorpages/loaddomain.js
Normal file
7
htdocs/www/js/errorpages/loaddomain.js
Normal file
@@ -0,0 +1,7 @@
|
||||
function loadDomain() {
|
||||
let proto = location.protocol;
|
||||
let port = location.port;
|
||||
let url = location.hostname;
|
||||
var display = document.getElementById('display-domain');
|
||||
display.innerHTML = proto + '//' + url + ':' + port;
|
||||
}
|
20
htdocs/www/js/errorpages/scale.fix.js
Normal file
20
htdocs/www/js/errorpages/scale.fix.js
Normal file
@@ -0,0 +1,20 @@
|
||||
var metas = document.getElementsByTagName('meta');
|
||||
var i;
|
||||
if (navigator.userAgent.match(/iPhone/i)) {
|
||||
for (i = 0; i < metas.length; i++) {
|
||||
if (metas[i].name == 'viewport') {
|
||||
metas[i].content =
|
||||
'width=device-width, minimum-scale=1.0, maximum-scale=1.0';
|
||||
}
|
||||
}
|
||||
document.addEventListener('gesturestart', gestureStart, false);
|
||||
}
|
||||
|
||||
function gestureStart() {
|
||||
for (i = 0; i < metas.length; i++) {
|
||||
if (metas[i].name == 'viewport') {
|
||||
metas[i].content =
|
||||
'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user