Pesquisas recentes
Sem pesquisas recentes

Jim Wagner
Entrou em 17 de abr. de 2021
·
Última atividade em 14 de set. de 2023
Seguindo
0
Seguidores
0
Atividade total
3
Votos
1
Assinatura
1
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por Jim Wagner
Jim Wagner comentou,
Comentário na comunidade 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)
Exibir comentário · Publicado 15 de mai. de 2020 · Jim Wagner
0
Seguidores
0
Votos
0
Comentários