最近搜索


没有最近搜索

Jim Wagner's Avatar

Jim Wagner

已加入2021年4月17日

·

最后活动2023年9月14日

关注

0

关注者

0

活动总数

3

投票

1

订阅

1

活动概览

的最新活动 Jim Wagner

Jim Wagner 进行了评论,

社区评论 Discussion - Tips and best practices from the community

We are using the Copenhagen theme, which apparently does not include JQuery. So I had to modify the bottom part of the script to use vanilla JS:

document.querySelector('#request_custom_fields_' + browserfield_id).value = 
'OS: ' + jscd.os +' '+ jscd.osVersion + '\n' +
'Browser: ' + jscd.browser +' '+ jscd.browserMajorVersion +
' (' + jscd.browserVersion + ')\n' +
'Mobile: ' + jscd.mobile + '\n' +
'Flash: ' + jscd.flashVersion + '\n' +
'Cookies: ' + jscd.cookies + '\n' +
'Screen Size: ' + jscd.screen + '\n\n' +
'Full User Agent: ' + navigator.userAgent;
document.querySelector('.request_custom_fields_' + browserfield_id).hidden = true;

The template looks like it has errors, since the color highlighting is all screwy, but it works. I even left this line as-is, with the apostrophe:

// flash (you'll need to include swfobject)

查看评论 · 已于 2020年5月15日 发布 · Jim Wagner

0

关注者

0

投票

0

评论