Skip to content

Commit

Permalink
Import Files Working-ish
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMcClernan committed Jul 2, 2024
1 parent a98d497 commit 6986010
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 986 deletions.
Binary file added OLD.zip
Binary file not shown.
Binary file modified OpenXTalkWebPlayground.oxtstack
Binary file not shown.
6 changes: 0 additions & 6 deletions README 2.md

This file was deleted.

347 changes: 0 additions & 347 deletions docs/Index.html~~

This file was deleted.

315 changes: 0 additions & 315 deletions docs/OpenXTalk Web Playground.html

This file was deleted.

24 changes: 21 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@
<div class="emscripten" id="status">Downloading...</div>

<span id='controls'>
<span><input type="checkbox" id="resize">Resize canvas</span>
<span><!-- input type="checkbox" id="resize">Resize canvas</span>
<span><input type="checkbox" id="pointerLock" checked>Lock/hide mouse pointer &nbsp;&nbsp;&nbsp;</span>
<span><input type="button" value="Fullscreen" onclick="Module.requestFullScreen(document.getElementById('pointerLock').checked,
document.getElementById('resize').checked)">
document.getElementById('resize').checked)"-->
</span>
</span>

Expand Down Expand Up @@ -318,6 +318,24 @@
script.src = "standalone-community-9.6.3.js";
document.body.appendChild(script);

</script>
</script>

<script>
function readFile() {
var inputData = document.getElementById('inputData');
var reader = new FileReader();
reader.onload = function() {
document.liveCode.findStackWithName('WebStack').
JSimport(reader.result, inputData.files[0].name);
};
reader.readAsDataURL(inputData.files[0]);
};
function saveFile(txt, data) {
var saveData = document.getElementById('saveData');
saveData.setAttribute('download', txt);
saveData.setAttribute('href', data);
};
</script>

</body>
</html>
315 changes: 0 additions & 315 deletions docs/index.html~

This file was deleted.

0 comments on commit 6986010

Please sign in to comment.