最近の検索


最近の検索はありません

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

コメント