apple2js/apple2jse.html

320 lines
12 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2015-07-11 05:55:36 +00:00
<!--
2019-03-01 05:21:18 +00:00
Copyright 2010-2019 Will Scullin <scullin@scullinsteel.com>
2015-07-11 05:55:36 +00:00
2013-12-19 22:28:55 +00:00
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 //jse - An Apple //e Emulator in JavaScript</title>
2020-06-07 18:57:42 +00:00
<meta name="viewport" content="width=640, user-scalable=no" />
2013-12-19 22:28:55 +00:00
<meta name="apple-mobile-web-app-capable" content="yes">
2013-12-19 22:31:11 +00:00
<meta name="apple-mobile-web-app-title" content="Apple //jse">
2013-12-19 22:28:55 +00:00
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta charset="utf-8" />
<meta name="description" content="Apple //jse is an Apple //e emulator written using only JavaScript and HTML5. It has color display, sound and disk support." />
<meta name="keywords" content="apple2e,apple,ii,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="img/logoicon.png" />
2013-12-19 22:28:55 +00:00
<link rel="stylesheet" type="text/css" href="css/apple2.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.2/css/all.css" />
2013-12-19 22:28:55 +00:00
2020-06-18 09:34:31 +00:00
<script>
window.e = true
</script>
2013-12-19 22:28:55 +00:00
<!-- Disk Index -->
<script type="text/javascript" src="json/disks/index.js"></script>
</head>
<body class="apple2e"
ondragover="Apple2.handleDragOver(0, event)"
ondrop="Apple2.handleDrop(0, event)"
ondragend="Apple2.handleDragEnd(0, event)">
<div class="outer">
2017-09-23 04:42:57 +00:00
<div id="header">
2019-12-30 21:55:07 +00:00
<a href="https://github.com/whscullin/apple2js#readme" target="_blank">
<img src="img/badge2e.png" id="badge" />
2017-09-23 04:42:57 +00:00
</a>
2020-04-24 02:48:52 +00:00
<div id="subtitle">An Apple //e Emulator in JavaScript</div>
2017-09-23 04:42:57 +00:00
</div>
<div id="display">
2020-06-21 22:52:39 +00:00
<div class="overscan">
<canvas id="screen" width="592" height="416"></canvas>
2017-09-23 04:42:57 +00:00
</div>
</div>
2013-12-19 22:28:55 +00:00
<div class="inset">
2020-04-24 02:48:52 +00:00
<div class="disk"
ondragover="Apple2.handleDragOver(1, event)"
ondrop="Apple2.handleDrop(1, event)"
ondragend="Apple2.handleDragEnd(1, event)">
2020-04-24 02:48:52 +00:00
<div class="disk-light" id="disk1"></div>
<button title="Load Disk"
onclick="Apple2.openLoad(1, event);">
<i class="fas fa-folder-open"></i>
2013-12-19 22:28:55 +00:00
</button>
2020-04-24 02:48:52 +00:00
<button title="Save Disk"
onclick="Apple2.openSave(1, event);">
<i class="fas fa-save"></i>
2013-12-19 22:28:55 +00:00
</button>
2020-04-24 02:48:52 +00:00
<div id="disk-label1" class="disk-label">Disk 1</div>
2013-12-19 22:28:55 +00:00
</div>
2020-04-24 02:48:52 +00:00
<div class="disk"
ondragover="Apple2.handleDragOver(2, event)"
ondrop="Apple2.handleDrop(2, event)"
ondragend="Apple2.handleDragEnd(2, event)">
2020-04-24 02:48:52 +00:00
<div class="disk-light" id="disk2"></div>
<button title="Load Disk"
onclick="Apple2.openLoad(2, event);">
<i class="fas fa-folder-open"></i>
2013-12-19 22:28:55 +00:00
</button>
2020-04-24 02:48:52 +00:00
<button title="Save Disk"
onclick="Apple2.openSave(2, event);">
<i class="fas fa-save"></i>
2013-12-19 22:28:55 +00:00
</button>
2020-04-24 02:48:52 +00:00
<div id="disk-label2" class="disk-label">Disk 2</div>
2013-12-19 22:28:55 +00:00
</div>
</div>
2020-04-24 02:48:52 +00:00
<div id="reset-row">
2017-08-20 17:46:10 +00:00
<div id="controls" class="inset">
2019-12-30 19:13:35 +00:00
<div id="khz" onclick="Apple2.toggleShowFPS()">0 kHz</div>
2020-04-24 02:48:52 +00:00
<button id="pause-run" onclick="Apple2.pauseRun()" title="Pause/Run">
<i class="fas fa-pause"></i>
</button>
2020-04-24 02:48:52 +00:00
<button id="toggle-sound" onclick="Apple2.toggleSound()" title="Toggle Sound">
<i class="fas fa-volume-off"></i>
</button>
<button id="toggle-printer" onclick="Apple2.openPrinterModal()" title="Toggle Printer">
<i class="fas fa-print"></i>
</button>
2020-04-24 02:48:52 +00:00
<div class="spacer"></div>
<button onclick="window.open('https://github.com/whscullin/apple2js#readme', 'blank')" title="About">
<i class="fas fa-info"></i>
</button>
<button onclick="Apple2.openOptions()" title="Options">
<i class="fas fa-cog"></i>
</button>
2013-12-19 22:28:55 +00:00
</div>
2019-12-30 22:19:12 +00:00
<button id="reset" type="button"
onclick="Apple2.reset(event)"
oncontextmenu="Apple2.reset(event)">
Reset
</button>
2013-12-19 22:28:55 +00:00
</div>
<div class="inset">
2014-01-05 15:42:03 +00:00
<div id="keyboard"></div>
2013-12-19 22:28:55 +00:00
</div>
</div>
<div class="modal" id="loading-modal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Loading" >
<header class="modal__header">
<div class="modal__title" id="loading-modal-title">
Loading...
</div>
</header>
<main class="modal__content" id="loading-modal-content">
<div class="meter">
<div class="progress"></div>
</div>
</div>
</div>
</div>
2013-12-19 22:28:55 +00:00
</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">
2019-03-14 02:27:55 +00:00
<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">
</main>
<footer class="modal__footer">
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Close</button>
</footer>
</div>
</div>
2013-12-19 22:28:55 +00:00
</div>
<div class="modal" id="save-modal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Save Disk">
<header class="modal__header">
2020-04-24 02:48:52 +00:00
<span class="modal__title" id="save-modal-title">
Save Disk
</span>
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
</button>
</header>
<main class="modal__content" id="save-modal-content">
<form action="#" onsubmit="return false;">
2019-03-14 02:27:55 +00:00
<h3>Save to Browser</h3>
2020-04-24 02:48:52 +00:00
Save Name: <input type="text" name="name" id="save_name" />
</form>
<hr />
<div>
2019-03-14 02:27:55 +00:00
<h3>Download to Local Disk</h3>
<a id="local_save_link" class="button">Download</a>
</div>
</main>
<footer class="modal__footer">
<button class="modal__btn" onclick="Apple2.doSave()" aria-label="Save disk locally">Save</button>
</footer>
</div>
2016-11-28 01:28:49 +00:00
</div>
2013-12-19 22:28:55 +00:00
</div>
<div class="modal" id="manage-modal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Load Disk">
<header class="modal__header">
<span class="modal__title" id="manage-modal-title">
Manage Local Saves
</span>
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
</button>
</header>
<main class="modal__content" id="manage-modal-content">
</main>
<footer class="modal__footer">
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">OK</button>
</footer>
</div>
</div>
2013-12-19 22:28:55 +00:00
</div>
<div class="modal" id="http-modal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Load Disk">
<header class="modal__header">
<span class="modal__title" id="http-modal-title">
Load URL
</span>
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
</button>
</header>
<main class="modal__content" id="http-modal-content">
<form action="#">
2020-04-24 02:48:52 +00:00
<input type="text" id="http_url" />
</form>
</main>
<footer class="modal__footer">
2020-04-24 02:48:52 +00:00
<button class="modal__btn" data-micromodal-close aria-label="Load this URL">OK</button>
</footer>
</div>
</div>
2016-11-28 01:28:49 +00:00
</div>
<div class="modal" id="load-modal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Load Disk">
<header class="modal__header">
<span class="modal__title" id="load-modal-title">
Load Disk
</span>
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
</button>
</header>
<main class="modal__content" id="load-modal-content">
<table>
<tr>
<td>
<select id="category_select" multiple="multiple"
onchange="Apple2.selectCategory(event)" >
</select>
</td>
<td>
<select id="disk_select" multiple="multiple"
onchange="Apple2.selectDisk(event)"
ondblclick="Apple2.clickDisk(event)">
</select>
</td>
</tr>
</table>
<form action="#">
<input type="file" id="local_file" />
</form>
</main>
<footer class="modal__footer">
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Cancel</button>
<button class="modal__btn" onclick="Apple2.doLoad()" aria-label="Open the selected disk">Open</button>
</footer>
</div>
</div>
2013-12-19 22:28:55 +00:00
</div>
<div class="modal" id="printer-modal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Printer">
<header class="modal__header">
<span class="modal__title" id="printer-modal-title">
Printer
</span>
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
</button>
</header>
<main class="modal__content" id="printer-modal-content">
<div class="paper"></div>
</main>
<footer class="modal__footer">
<a id="raw_printer_output" class="button">Download Raw Output</a>
<button class="modal__btn" onclick="Apple2.clearPrinterPaper()" aria-label="Clear the paper">Clear</button>
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Close</button>
</footer>
</div>
</div>
</div>
<div class="modal" id="alert-modal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
2020-04-24 02:48:52 +00:00
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="Alert">
<header class="modal__header">
2020-04-24 02:48:52 +00:00
<span class="modal__title" id="alert-modal-title">
Alert
</span>
<button class="modal__close" aria-label="Close modal" data-micromodal-close>
</button>
</header>
<main class="modal__content" id="alert-modal-content">
<div class="message">
</div>
</main>
<footer class="modal__footer">
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Close</button>
</footer>
</div>
</div>
</div>
2020-06-09 02:21:53 +00:00
<svg width="0" height="0" xmlns="http://www.w3.org/2000/svg">
<filter id="green">
<feColorMatrix
type="matrix"
values="0.0 0.0 0.0 0.0 0
0.0 1.0 0.0 0.0 0
0.0 0.0 0.5 0.0 0
0.0 0.0 0.0 1.0 0"
/>
</filter>
</svg>
<script src="dist/main2e.js"></script>
2013-12-19 22:28:55 +00:00
</body>
</html>