微件:HidePerPlatform:修订间差异
跳转到导航
跳转到搜索
Imfrankliu(留言 | 贡献) 无编辑摘要 |
Imfrankliu(留言 | 贡献) 无编辑摘要 |
||
第1行: | 第1行: | ||
<noinclude> | <noinclude> | ||
<code><nowiki> | <code><nowiki>{{#widget:IsMobile|mobileContent|desktopContent}}</nowiki></code> | ||
</noinclude> | </noinclude> | ||
<includeonly><script> | <includeonly> | ||
<script> | |||
(function(d,e,t,E,c,T){ | |||
if (E.indexOf('mobile') !== -1) { | |||
d(e).css(c,T); | |||
} else { | |||
d(t).css(c,T); | |||
} | |||
})(jQuery, '.noMobile', '.noDesktop', navigator.userAgent, 'display', 'none'); | |||
</script> | |||
</includeonly> |
2016年7月4日 (一) 08:38的版本
{{#widget:IsMobile|mobileContent|desktopContent}}