This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/bundle/doric-web.html

28 lines
758 B
HTML
Raw Normal View History

2021-11-08 13:53:46 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
2021-11-08 15:19:55 +08:00
<title>Web shell for doric</title>
2021-11-08 13:53:46 +08:00
</head>
<body>
<p>Hello HTML5</p>
</body>
2021-11-08 15:19:55 +08:00
<script type="text/javascript" src="http://shell.doric/doric-web.js"></script>
2021-11-08 13:53:46 +08:00
<script type="text/javascript">
function addScriptElement(scriptId, source) {
const scriptElement = document.createElement("script");
scriptElement.type = "text/javascript";
scriptElement.id = scriptId;
scriptElement.src = source;
document.body.appendChild(scriptElement);
}
2021-11-08 15:19:55 +08:00
2021-11-08 13:53:46 +08:00
function removeScriptElement(scriptId) {
const scriptElement = document.getElementById(scriptId);
document.body.removeChild(scriptElement);
}
2021-11-08 15:19:55 +08:00
NativeClient.ready();
2021-11-08 13:53:46 +08:00
</script>
</html>