Add deferred scripts for dynamic age

master
Raymonzut 5 years ago
parent 318ab4c6ca
commit 1a42c6ef77
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 3
      client/public/index.html
  2. 4
      client/public/index.mjs

@ -12,6 +12,9 @@
>
<link rel="stylesheet" href="css/themes.css" media="all">
<link rel="stylesheet" href="css/index.css" media="all">
<script defer type= "module" src="js/me.mjs"></script>
<script defer type= "module" src="index.mjs"></script>
</head>
<body>

@ -0,0 +1,4 @@
import { age } from "./lib/me.mjs"
const age_span = document.getElementById("age")
age_span.textContent = age().toString()
Loading…
Cancel
Save