Using their example I can run this in Dreamweaver exactly as is and it reports correctly.
<script type="text/javascript" src="https://js.frubil.info/"></script>
<SCRIPT type='text/javascript' language='javascript'>
if(FRUBIL.status.value == 1) {
document.write('Class: ' + FRUBIL.client.class + '<br />');
document.write('Name: ' + FRUBIL.client.name + ' ' + FRUBIL.client.version + '<br />');
document.write('OS: ' + FRUBIL.client.os + '<br />');
document.write('Device class: ' + FRUBIL.device.class + '<br />');
if(FRUBIL.client.isOs('Windows XP', 'Windows 98')) {
document.write('OS is Windows XP or Windows 98 <br />');
}
else {
document.write('OS is not Windows XP or Windows 98 <br />');
}
if(FRUBIL.device.isClass('Game console')) {
document.write('Device class is Game console <br />');
}
else {
document.write('Device class is NOT Game console <br />');
}
}
</SCRIPT>
I have tried to run this in NSB but have been unsuccessful.
Q1
How do implement this line to reference the external js resource file. <script type="text/javascript" src="https://js.frubil.info/"></script>
I think if I can get that sorted the rest of the code may work.
I just cannot find any info in the documentation about how to do that.