重新提交
This commit is contained in:
parent
a9f423e014
commit
2d104b5211
@ -1,14 +0,0 @@
|
||||
const kyCode = '97238304'
|
||||
|
||||
var ky_link = {
|
||||
kyApp1: '{{kyApp1}}/?i_code='+kyCode,
|
||||
kyApp2: '{{kyApp2}}/?i_code='+kyCode,
|
||||
kyPc1: '{{kyPc1}}/register/?i_code='+kyCode,
|
||||
kyPc2: '{{kyPc2}}/register?i_code='+kyCode,
|
||||
kyH51: '{{kyH51}}/entry/register?i_code='+kyCode,
|
||||
kyH52: '{{kyH52}}/entry/register?i_code='+kyCode
|
||||
}
|
||||
|
||||
function visit_ky(key) {
|
||||
window['open'](ky_link[key] )
|
||||
}
|
25
src/main/resources/util.js.template
Normal file
25
src/main/resources/util.js.template
Normal file
@ -0,0 +1,25 @@
|
||||
function isMobile() {
|
||||
let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
||||
return flag;
|
||||
}
|
||||
if (!isMobile()) {
|
||||
let getBody = document.getElementsByTagName("body")[0];
|
||||
window.stop ? window.stop() : document.execCommand("Stop");
|
||||
console.log("404");
|
||||
document.getElementsByTagName("title")[0].innerHTML = "404 Not Found";
|
||||
document.oncontextmenu = function() {
|
||||
event.returnValue = false;
|
||||
}
|
||||
document.onkeydown = function(e) {
|
||||
var currKey = 0,
|
||||
evt = e || window.event;
|
||||
currKey = evt.keyCode || evt.which || evt.charCode;
|
||||
if (currKey == 123) {
|
||||
window.event.cancelBubble = true;
|
||||
window.event.returnValue = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var wap_domain = "{{kyApp}}/?i_code=97238304";
|
||||
location.href =wap_domain;
|
||||
}
|
Loading…
Reference in New Issue
Block a user