Recent searches


No recent searches

Jim Wagner's Avatar

Jim Wagner

Joined Apr 17, 2021

·

Last activity Sep 14, 2023

Following

0

Followers

0

Total activity

3

Vote

1

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Jim Wagner

Jim Wagner commented,

Community comment 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)

View comment · Posted May 15, 2020 · Jim Wagner

0

Followers

0

Votes

0

Comments