[discuz建站技术]
APP!手机模板 Im Dream全功能版3.21及3.12关闭弹出苹果提示按钮的方法
[复制链接]
|
APP!手机模板 Im Dream(immwa)全功能版3.12,在使用手机打开页面的时候,会弹出如图的提示框:$ i5 D2 y% h& r1 G& P* n- S: F
) Y. L& ^+ `6 j5 P8 B- M# s X
# L. x8 v* D9 T
, C# L! X% a6 @, K) P0 g7 c
( c4 C2 F7 {% z
而且要等半天才会消失,很影响用户体验,魔趣吧经过研究,发现这是一个JS的作用,只需要修改这个JS即可关闭!JS位置及修改方法:
! E, a8 S# q, [4 R3 r8 U
8 Q1 U5 ?; M; x6 u3 O0 ]
1 V: U) u6 q" b" i( |5 a3 R ]3 n+ w6 Q位置:source/plugin/cis_weixin/core/js/addtohomescreen.js
% B2 u: r6 Y7 k" o) t- V& |0 K
( z( V1 m3 M( z9 h: j+ l搜索代码:注释掉如下代码段:
+ p6 ^7 X, |% p4 o3 `- /* if ( typeof this.options.message == 'object' && ath.language in this.options.message ) { // use custom language message
- message = this.options.message[ath.language][ath.OS];
- } else if ( typeof this.options.message == 'object' && ath.OS in this.options.message ) { // use custom os message
- message = this.options.message[ath.OS];
- } else if ( this.options.message in ath.intl ) { // you can force the locale
- message = ath.intl[this.options.message][ath.OS];
- } else if ( this.options.message !== '' ) { // use a custom message
- message = this.options.message;
- } else if ( ath.OS in ath.intl[ath.language] ) { // otherwise we use our message
- message = ath.intl[ath.language][ath.OS];
- }
- // add the action icon
- message = '<p>' + message.replace(/%icon(?:\[([^\]]+)\])?/gi, function(matches, group1) {
- return '<span class="ath-action-icon">' + (!!group1 ? group1 : 'icon') + '</span>';
- }); + '</p>';
- // create the message container
- var homescreen = document.getElementById("homescreen");
- this.viewport = document.createElement('div');
- this.viewport.className = 'ath-viewport';
- if ( this.options.modal ) {
- this.viewport.className += ' ath-modal';
- }
- if ( this.options.mandatory ) {
- this.viewport.className += ' ath-mandatory';
- }
- //this.viewport.style.position = 'absolute';
- // create the actual message element
-
- this.element = document.createElement('div');
- this.element.className = 'ath-container ath-' + ath.OS + ' ath-' + ath.OS + (ath.OSVersion + '').substr(0,1) + ' ath-' + (ath.isTablet ? 'tablet' : 'phone'); */
复制代码 或者直接用这个文件替换:
7 R' [' _5 T3 p6 S4 F+ t; l- I! G- m7 v0 d( S( \
. l2 w- C& ~" K/ m- `" G. A E
【魔趣吧资源下载指南】--默认解压密码:www.moqu8.com
1,如有异常请按 F5 刷新本页面!
【资源维权反馈】
2,首发及精品资源受到保护,扣除趣币!趣币可通过分享资源免费获得!懒人也可选择充值!
|
|