mirror of
https://github.com/whscullin/apple1js.git
synced 2024-11-22 04:33:34 +00:00
190 lines
7.5 KiB
HTML
190 lines
7.5 KiB
HTML
<!DOCTYPE html>
|
|
<!--
|
|
Copyright 2010-2019 Will Scullin <scullin@scullinsteel.com>
|
|
|
|
Permission to use, copy, modify, distribute, and sell this software and its
|
|
documentation for any purpose is hereby granted without fee, provided that
|
|
the above copyright notice appear in all copies and that both that
|
|
copyright notice and this permission notice appear in supporting
|
|
documentation. No representations are made about the suitability of this
|
|
software for any purpose. It is provided "as is" without express or
|
|
implied warranty.
|
|
-->
|
|
<html>
|
|
<head>
|
|
|
|
<title>Apple 1js - An Apple 1 Emulator in JavaScript</title>
|
|
|
|
<meta name="viewport" content="width=device-width user-scalable=0" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta charset="utf-8" />
|
|
<meta name="description" content="Apple 1js is an Apple 1 emulator written using only JavaScript and HTML5. Works best in the Chrome and Safari browsers." />
|
|
<meta name="keywords" content="apple1,apple,i,javascript,emulator,html5" />
|
|
|
|
<link rel="apple-touch-icon" href="img/webapp-iphone.png" />
|
|
<link rel="apple-touch-icon" size="72x72" href="img/webapp-ipad.png" />
|
|
<link rel="shortcut icon" href="logoicon.png" />
|
|
<link rel="stylesheet" type="text/css" href="css/apple1.css" />
|
|
|
|
<meta property="og:title" content="Apple 1js" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:description" content="Apple 1js is an Apple 1 emulator written using only JavaScript and HTML5." />
|
|
<meta property="og:url" content="https://www.scullinsteel.com/apple1/" />
|
|
<meta property="og:image" content="https://www.scullinsteel.com/apple1/img/image.png" />
|
|
|
|
<!-- Tapes -->
|
|
<script type="text/javascript">
|
|
var tapes = {};
|
|
</script>
|
|
<script type="text/javascript" src="tapes/apple30th.js"></script>
|
|
<script type="text/javascript" src="tapes/applesoft.js"></script>
|
|
<script type="text/javascript" src="tapes/basic.js"></script>
|
|
<script type="text/javascript" src="tapes/blackjack.js"></script>
|
|
<script type="text/javascript" src="tapes/checkers.js"></script>
|
|
<script type="text/javascript" src="tapes/codebreaker.js"></script>
|
|
<script type="text/javascript" src="tapes/hamurabi.js"></script>
|
|
<script type="text/javascript" src="tapes/life.js"></script>
|
|
<script type="text/javascript" src="tapes/little_tower.js"></script>
|
|
<script type="text/javascript" src="tapes/lunar_lander.js"></script>
|
|
<script type="text/javascript" src="tapes/matrix.js"></script>
|
|
<script type="text/javascript" src="tapes/monitor.js"></script>
|
|
<script type="text/javascript" src="tapes/microchess.js"></script>
|
|
<script type="text/javascript" src="tapes/slots.js"></script>
|
|
<script type="text/javascript" src="tapes/startrek.js"></script>
|
|
<script type="text/javascript" src="tapes/startrek2003.js"></script>
|
|
<script type="text/javascript" src="tapes/volksforth.js"></script>
|
|
<script type="text/javascript" src="tapes/wumpus2.js"></script>
|
|
|
|
<!-- Web FE -->
|
|
</head>
|
|
<body>
|
|
<div style="margin: auto; width: 604px">
|
|
<h1 style="font-size: 24px" class="motter">Apple 1js</h1>
|
|
<h2 id="subtitle">An Apple 1 Emulator in JavaScript</h2>
|
|
<table id="display">
|
|
<tr>
|
|
<td style="vertical-align: top">
|
|
<div role="textbox" class="overscan"
|
|
onkeydown="_keydown(event);"
|
|
onkeyup="_keyup(event);">
|
|
<canvas id="text" width="560" height="384"></canvas>
|
|
</div>
|
|
<div style="color: #75d475; position: absolute; font-size: 10px">Type E000R for BASIC</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="inset">
|
|
<div id="khz" onclick="Apple1.toggleFPS()">0KHz</div>
|
|
<button onclick="Apple1.pauseRun(this)">Pause</button>
|
|
<button onclick="Apple1.openLoadText(event)">Load</button>
|
|
<div id="player">
|
|
<div id="tape"></div>
|
|
</div>
|
|
<div style="float: right">
|
|
<button onclick="window.open('about.html','_html')"
|
|
name="About">About</button>
|
|
<button type="button" onclick="Apple1.openOptions()"
|
|
name="Options">Options</button>
|
|
</div>
|
|
</div>
|
|
<div class="inset">
|
|
<div style="margin: 0px 0px">
|
|
<div id="keyboard"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal" id="options-modal" aria-hidden="true">
|
|
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
|
|
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Options">
|
|
<header class="modal__header">
|
|
<span class="modal__title" id="options-modal-title">
|
|
Options
|
|
</span>
|
|
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
|
|
</button>
|
|
</header>
|
|
<main class="modal__content" id="options-modal-content">
|
|
<h3>CPU</h3>
|
|
<ul>
|
|
<li>
|
|
<input type="checkbox" checked="checked" id="speed_toggle"
|
|
onclick="Apple1.toggleSpeed()"/>
|
|
<label for="speed_toggle">
|
|
Regulate Speed
|
|
</label>
|
|
</li>
|
|
</ul>
|
|
<h3>Monitor</h3>
|
|
<ul>
|
|
<li>
|
|
<input type="checkbox" id="green_screen"
|
|
onclick="Apple1.updateScreen()" />
|
|
<label for="green_screen">
|
|
Green Screen
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<input type="checkbox" id="show_scanlines"
|
|
onclick="Apple1.updateScreen()" />
|
|
<label for="show_scanlines">
|
|
Show Scanlines
|
|
</label>
|
|
</li>
|
|
</ul>
|
|
<h3>I/O</h3>
|
|
<ul>
|
|
<li>
|
|
<input type="checkbox" id="turbo_tape"
|
|
onclick="Apple1.setTurboTape(this.checked)" />
|
|
<label for="turbo_tape">
|
|
Turbo Tape Loading
|
|
</label>
|
|
</li>
|
|
</ul>
|
|
</main>
|
|
<footer class="modal__footer">
|
|
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Close</button>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal" id="input-modal" aria-hidden="true">
|
|
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
|
|
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Options">
|
|
<header class="modal__header">
|
|
<span class="modal__title" id="options-modal-title">
|
|
Input Text
|
|
</span>
|
|
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
|
|
</button>
|
|
</header>
|
|
<main class="modal__content" id="input-modal-content">
|
|
<form action="#">
|
|
<div class="controls">
|
|
<select id="tape_select">
|
|
<option>Or Select Tape...</option>
|
|
</select>
|
|
<button onclick="document.querySelector('#text_input').value = ''"
|
|
name="Clear">Clear</button>
|
|
</div>
|
|
<textarea id="text_input" rows="24" cols="80"></textarea>
|
|
</form>
|
|
</main>
|
|
<footer class="modal__footer">
|
|
<button class="modal__btn" aria-label="Send text to the keyboard" onclick="Apple1.doLoadText()">OK</button>
|
|
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Close</button>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="local" title="Load Local File" style="display: none">
|
|
<form action="#">
|
|
<input type="file" id="local_file" />
|
|
</form>
|
|
</div>
|
|
<script type="text/javascript" src="dist/apple1.js"></script>
|
|
</body>
|
|
</html>
|