detect IE, add page of browser trouble, static image
This commit is contained in:
parent
efddb36049
commit
7ef9dc4c43
|
@ -0,0 +1,33 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Visual 6502 in JavaScript</title>
|
||||||
|
<style type="text/css">@import "wires.css";</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<span id="title"><a href="http://visual6502.org">The Visual 6502</a></span>
|
||||||
|
<span id="plain">
|
||||||
|
<br />
|
||||||
|
<span id="title">Browser Trouble?</span>
|
||||||
|
<br />
|
||||||
|
<a href="http://www.visual6502.org/faq.html">FAQ</a>
|
||||||
|
<a href="http://blog.visual6502.org">Blog</a>
|
||||||
|
<a href="http://www.visual6502.org/links.html">Links</a> 
|
||||||
|
<p>
|
||||||
|
Our chip simulator makes heavy use of the latest version of HTML5 drawing technology.
|
||||||
|
<p>
|
||||||
|
It will only run on recent browsers and on a computer with sufficient memory (we recommend at least 2Gbytes.)
|
||||||
|
<p>
|
||||||
|
We've tested it on Chrome, Firefox, Safari and Opera. Unfortunately Internet Explorer isn't yet capable of running the graphics.
|
||||||
|
<p>
|
||||||
|
If you're using one of the above browsers and having trouble, please restart the browser.
|
||||||
|
<p>
|
||||||
|
If you have a problem report or you're able to help us with compatilibity, please get in touch - our contact details are on the main page.
|
||||||
|
<p>
|
||||||
|
In the meantime, here's a picture of what you're missing:
|
||||||
|
<p>
|
||||||
|
<a href="http://visual6502.org"><img src="images/jssim2.png" style="border:10px"></a>
|
||||||
|
</span>
|
||||||
|
</body>
|
||||||
|
</html>
|
Binary file not shown.
After Width: | Height: | Size: 312 KiB |
21
index.html
21
index.html
|
@ -10,9 +10,22 @@
|
||||||
<script src="chipsim.js"></script>
|
<script src="chipsim.js"></script>
|
||||||
<script src="memtable.js"></script>
|
<script src="memtable.js"></script>
|
||||||
<script src="macros.js"></script>
|
<script src="macros.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function handleOnload() {
|
||||||
|
if(navigator.appName != 'Microsoft Internet Explorer'){
|
||||||
|
setTimeout(setup,200);
|
||||||
|
}else{
|
||||||
|
document.getElementById('browsertrouble').innerHTML=
|
||||||
|
'<p>Sorry, '+navigator.appName+' not supported - showing you a picture instead!</p>';
|
||||||
|
document.getElementById('frame').innerHTML='<a href="browsertrouble.html"><img src="images/jssim2.png" style="border:10px"></a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onload="setTimeout(setup,200)">
|
<body onload="handleOnload();">
|
||||||
<br />
|
<br />
|
||||||
<span id="title"><a href="http://visual6502.org">The Visual 6502</a></span>
|
<span id="title"><a href="http://visual6502.org">The Visual 6502</a></span>
|
||||||
<span id="plain">
|
<span id="plain">
|
||||||
|
@ -21,8 +34,10 @@
|
||||||
<a href="http://blog.visual6502.org">Blog</a>
|
<a href="http://blog.visual6502.org">Blog</a>
|
||||||
<a href="http://www.visual6502.org/links.html">Links</a> 
|
<a href="http://www.visual6502.org/links.html">Links</a> 
|
||||||
<br /><br />
|
<br /><br />
|
||||||
If the chip does not load, try another browser: Chrome, Safari, or Firefox
|
This simulator uses HTML5 features only found on the latest versions of browsers and needs
|
||||||
|
lots of RAM. If you have trouble, please <a href="browsertrouble.html">check compatibility.</a>
|
||||||
<br />
|
<br />
|
||||||
|
<span id="browsertrouble"></span>
|
||||||
<br />
|
<br />
|
||||||
Hit '>' to zoom in, '<' to zoom out
|
Hit '>' to zoom in, '<' to zoom out
|
||||||
<br />
|
<br />
|
||||||
|
@ -33,7 +48,7 @@ Enter your own program into the array of RAM
|
||||||
<br />
|
<br />
|
||||||
</span>
|
</span>
|
||||||
<div class="frame" id="frame">
|
<div class="frame" id="frame">
|
||||||
<div class="chip">
|
<div class="chip" id="chip">
|
||||||
<canvas class="chip" id="chipbg"></canvas>
|
<canvas class="chip" id="chipbg"></canvas>
|
||||||
<canvas class="chip" id="overlay"></canvas>
|
<canvas class="chip" id="overlay"></canvas>
|
||||||
<canvas class="chip" id="hilite"></canvas>
|
<canvas class="chip" id="hilite"></canvas>
|
||||||
|
|
Loading…
Reference in New Issue