-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
修改多说评论UA显示样式 #489
修改多说评论UA显示样式 #489
Conversation
if (browserName.match(/safari/i)) browserIco = '<i class="fa fa-safari"></i> '; | ||
if (browserName.match(/ie/i)) browserIco = '<i class="fa fa-internet-explorer"></i> '; | ||
|
||
//return '<span class="this_ua platform '+sua.os.name+'">'+osIco+sua.os.name+' '+sua.os.version+'</span><span class="this_ua browser '+sua.browser.name+'"><i class="fa fa-globe"></i> '+sua.browser.name+'|'+sua.browser.version+'</span>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
Too many errors. (97% scanned).
} | ||
function hookDUOSHUO_tp() { | ||
var _D_post = DUOSHUO.templates.post | ||
DUOSHUO.templates.post = function (e, t) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'DUOSHUO' is not defined.
if (isiPad) { | ||
return false; | ||
} | ||
var isMobile = navigator.userAgent.match(/iphone|android|phone|mobile|wap|netfront|x11|java|opera mobi|opera mini|ucweb|windows ce|symbian|symbianos|series|webos|sony|blackberry|dopod|nokia|samsung|palmsource|xda|pieplus|meizu|midp|cldc|motorola|foma|docomo|up.browser|up.link|blazer|helio|hosin|huawei|novarra|coolpad|webos|techfaith|palmsource|alcatel|amoi|ktouch|nexian|ericsson|philips|sagem|wellcom|bunjalloo|maui|smartphone|iemobile|spice|bird|zte-|longcos|pantech|gionee|portalmmm|jig browser|hiptop|benq|haier|^lct|320x320|240x320|176x220/i) != null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
Use '!==' to compare with 'null'.
@iissnan 话说这个代码格式检查应该是个机器人吧,怎么添加的?以前从来没见过 |
Nice! Thanks |
@iissnan 这个代码格式自动检查的机器人是怎么回事,很是好奇啊:bowtie: |
这两天ios firefox出了,请在UA里添加对它的支持,谢谢 |
@mpc2008cn 请用ios的firefox打开http://faisalman.github.io/ua-parser-js/ 看下显示的UA信息是否正常,如果也是undefined那就要等ua-parser-js更新了。 |
@mpc2008cn 已修复,效果见http://me.iblogc.com/2015/11/15/duoshuo-comments-ua/ |
修改多说评论UA显示样式
修复在设置了duoshuo_info.user_id但没有设置duoshuo_info.admin_nickname时,不显示默认的admin_nickname问题
圆形头像请忽略,这是多说后台设置的,主题里默认的还是方形头像
新样式(黑白主题配黑白样式:smile:)
老样式