Add js conf.
This commit is contained in:
@@ -5,5 +5,8 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>Application HTML</h1>
|
||||
|
||||
<div id="app-js"></div>
|
||||
<script type="text/javascript" src="./app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
7
www/app.js
Normal file
7
www/app.js
Normal file
@@ -0,0 +1,7 @@
|
||||
function helloFromJS() {
|
||||
document.getElementById('app-js').innerHTML = 'Application JS';
|
||||
}
|
||||
|
||||
window.onload = () => {
|
||||
helloFromJS();
|
||||
}
|
||||
Reference in New Issue
Block a user