1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-19 09:31:24 +00:00

"works best in firefox" message

This commit is contained in:
Steven Hugg 2017-04-29 14:38:50 -04:00
parent 5ae8d28922
commit 0933d8e54c
2 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,7 @@ body {
<button id="dbg_memory" type="submit" title="Show Memory" style="display:none"><span class="glyphicon glyphicon-sunglasses" aria-hidden="true"></span></button>
<button id="dbg_profile" type="submit" title="Show Profile" style="display:none"><span class="glyphicon glyphicon-stats" aria-hidden="true"></span></button>
</span>
<span id="best_in_firefox" style="display:none;font-size:12px;font-style:italic;float:right;color:#666">Note: Works best in Firefox</span>
</div>
<div id="notebook">
<div id="workspace">
@ -181,6 +182,11 @@ body {
startUI(true);
</script>
<script>
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
if (!isFirefox && platform_id != 'vcs') { $("#best_in_firefox").show(); }
</script>
</body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

View File

@ -741,6 +741,7 @@ function compileSDCC(code, platform) {
else code = preproc.code;
load("sdcc");
//load("wasm/sdcc");
//console.profile("sdcc");
var params = PLATFORM_PARAMS[platform];
if (!params) throw Error("Platform not supported: " + platform);