We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99dc98d commit b84b3daCopy full SHA for b84b3da
Writerside/cfg/head-script.html
@@ -43,13 +43,19 @@
43
44
/*横向广告*/
45
if (/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
46
+ alert('移动端?');
47
// 当前设备是移动设备
48
// https://www.ruanyifeng.com/blog/2021/09/detecting-mobile-browser.html
- window.onload=(event)=>{
49
- _addIns(() => {
+ window.addEventListener('load',(event) => {
50
+ _addIns(() => {
51
_pushAd('after ins append.');
52
});
- };
53
+ });
54
+ //window.onload=(event)=>{
55
+ // _addIns(() => {
56
+ // _pushAd('after ins append.');
57
+ // });
58
+ //};
59
} else {
60
document.addEventListener("DOMContentLoaded", (event) => {
61
try {
0 commit comments