-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_debug.html
1 lines (1 loc) · 2.21 KB
/
index_debug.html
1
<html><head><title>XVR - LeapChess - Default dynamic html page</title></head><body style="background-color:#FFFFFF;margin:0%;padding:0%;" scroll="yes"><div id="__xvr__plugin__placeholder"></div><div id="wrog_browser"></div></body><script type="text/javascript">function gup( name ){name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS = "[\\?&]"+name+"=([^&#]*)";var regex = new RegExp(regexS, ["i"]);var results = regex.exec( window.location.href );if( results == null )switch(name){case "ScriptName": return "LeapChess.s3d.bin"; break;case "EngineVersion": return "0155"; break;case "BackgroundColor": return "#E4E4E4"; break;case "EngineParam": return ""; break;case "UserParam": return ""; break;default: return ""; break; } else return results[1]; }function createxvrengine(){ var xvrObj = "<object id=\"__xvr__obj\" classid=\"CLSID:5D589287-1496-4223-AE64-65FA078B5EAB\" type=\"application/x-oleobject\" codebase=\"http://client.vrmedia.it/XVRPlayer.cab#Version=1,0,0,1000\" width=\"100%\" height=\"100%\"><param name=\"ScriptName\" value=\"" + decodeURI(gup ('ScriptName')) + "\" /><param name=\"EngineVersion\" value=\"" + gup ('EngineVersion') + "\" /><param name=\"BackgroundColor\" value=\"" + gup ('BackgroundColor') + "\" /></object>";document.getElementById('__xvr__plugin__placeholder').innerHTML = xvrObj;} function addWrongBrowser(text, ref) { var xvrObj = "<div> Install <a href=" + ref + ">IE TAB</a> " + text + ".</div>"; document.getElementById('wrog_browser').innerHTML = xvrObj; }(function() {var is_firefox = navigator.userAgent.toString().toLowerCase().indexOf("firefox") != -1;var is_chrome = navigator.userAgent.toLowerCase().indexOf("chrome") != -1;if (is_firefox) {addWrongBrowser("for Firefox", "http://software-files-a.cnet.com/s/software/13/33/30/64/ie_tab-4.0.20130422-fx-windows.xpi?lop=link&ptype=3001&ontid=11745&siteId=4&edId=3&spi=ec96595b072f017cf2d587435dee3e5e&pid=13333064&psid=10470729&token=1389378787_0bf57634a2f5678e90b599dd2577700f&fileName=ie_tab-4.0.20130422-fx-windows.xpi");} else if (is_chrome) {addWrongBrowser("for Chrome", "https://chrome.google.com/webstore/detail/ie-tab/hehijbfgiekmjfkfjpbkbammjbdenadd")}else { createxvrengine(); }})();</script></html>