feat: inform users about empty link
This commit is contained in:
parent
57e515b7fe
commit
8517e9fa05
1 changed files with 12 additions and 8 deletions
20
index.html
20
index.html
|
@ -7,17 +7,21 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<noscript>PLEASE ENABLE JAVASCRIPT</noscript>
|
<noscript>PLEASE ENABLE JAVASCRIPT</noscript>
|
||||||
<p>You will be automatically directed to the <span id="info">ERROR - PLEASE ENABLE JAVASCRIPT OR CONTACT WITH ADMIN</span></p>
|
<div id="info1">You will be automatically directed to the <span id="info2">ERROR - PLEASE ENABLE JAVASCRIPT OR CONTACT
|
||||||
|
WITH ADMIN</span></div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var a = location.href;
|
var a = location.href;
|
||||||
var b = a.substring(a.indexOf("?") + 1);
|
if (a.indexOf("?") == -1) {
|
||||||
|
document.getElementById("info1").innerHTML = "<h3>You did not enter any url!</h3><br>Please type a proper link like <b>https://l.asandikci.com/?redirect-link</b>"
|
||||||
var c = "https://l.aliberksandikci.com.tr/" + b;
|
}
|
||||||
var d = "<a href='" + c + "'> l.aliberksandikci.com.tr/" + b;
|
else {
|
||||||
document.getElementById("info").innerHTML = d;
|
var b = a.substring(a.indexOf("?") + 1);
|
||||||
|
var c = "https://l.aliberksandikci.com.tr/" + b;
|
||||||
window.location.replace(c);
|
var d = "<a href='" + c + "'> l.aliberksandikci.com.tr/" + b;
|
||||||
|
document.getElementById("info2").innerHTML = d;
|
||||||
|
// window.location.replace(c);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue