chore: update deployed documentation
This commit is contained in:
34
Interactive/c64psu-schematic-viewer.html
Normal file
34
Interactive/c64psu-schematic-viewer.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<body>
|
||||
<script type="module" src="kicanvas.js"></script>
|
||||
<div id="no_file_access" style="display: none; ">
|
||||
<span>The browser can't read local files. Enable it to continue. I.e. use <i>--allow-file-access-from-files</i> on Chrome</span>
|
||||
</div>
|
||||
<kicanvas-embed controls="full">
|
||||
<kicanvas-source src="c64psu.kicad_sch"></kicanvas-source>
|
||||
</kicanvas-embed>
|
||||
<script>
|
||||
|
||||
function ready()
|
||||
{
|
||||
try
|
||||
{
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.open('GET', 'c64psu.kicad_sch', false);
|
||||
xmlhttp.send();
|
||||
}
|
||||
catch (error)
|
||||
{
|
||||
if (window.location.protocol === 'file:')
|
||||
{
|
||||
document.getElementById('no_file_access').style.display = 'block';
|
||||
}
|
||||
throw(error);
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('DOMContentLoaded', ready);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user