<body>
<div>
Hello World.
</div>
<script>
//TEST IN MOBILE FOR FALSE POSITIVES
//Sources: https://stackoverflow.com/a/26358856/6647188,
alert("hello world!");
function testBrowser() {
if(navigator.userAgent.indexOf("Opera") != -1 || navigator.userAgent.indexOf('OPR') != -1 ) {
//if Opera
function testOpera() {
var Opera = (navigator.userAgent.match(/Opera|OPR\//) ? true : false);
if (Opera) {
alert ("The Opera browser is not compatible with some features of our site such as Zoom Video Conferencing. Please consider switching browsers.")
}
}
testOpera();
}
else if(navigator.userAgent.indexOf("Chrome") != -1 ) {
//if Chrome 49 or below
function testChrome() {
var match = window.navigator.userAgent.match(/Chrome\/([0-9]+)\./);
var ver = match ? parseInt(match[1]) : 0;
// var is_chrome = userAgent.indexOf('chrome') > -1 && userAgent.indexOf('Safari/') == -1;
if (ver !== 0 && ver < 49) {
alert("You have Chrome version " + ver + ". Please consider updating Chrome to the latest version for best site functionality.");
}
}
testChrome();
}
else if(navigator.userAgent.indexOf("Safari") != -1) {
//if Safari 9 or below
function testSafari(){
var objappVersion = navigator.appVersion;
var objAgent = navigator.userAgent;
var objbrowserName = navigator.appName;
var objfullVersion = '' + parseFloat(navigator.appVersion);
var objBrMajorVersion = parseInt(navigator.appVersion, 10);
var objOffsetName, objOffsetVersion, ix;
// In Safari
if ((objOffsetVersion=objAgent.indexOf("Safari"))!=-1) {
objbrowserName = "Safari"; objfullVersion = objAgent.substring(objOffsetVersion+7);
if ((objOffsetVersion=objAgent.indexOf("Version"))!=-1) objfullVersion =...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.