33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="fr">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<link rel="icon" href="//api.gzod01.fr/pictures/gzod01.ico">
|
||
|
<link rel="stylesheet" href="//api.gzod01.fr/css/style.css">
|
||
|
<script src="//api.gzod01.fr/scripts/main.js"></script>
|
||
|
<title>index.html</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="header"></div>
|
||
|
<div class=content>
|
||
|
<ul><h1>Liste des versions</h1><li-a ref="V0.1/">Version 0.1</li-a><li-a ref="./V0.1.2:OPTIMIZED/">Version O.1.2 OPTIMISEE</li-a><li-a ref="V0.2/">Version 0.2 <span style="color:white; background-color:red">NEWEST</span></li-a></ul>
|
||
|
<script>
|
||
|
class ListAnchor extends HTMLElement { // (1)
|
||
|
connectedCallback() {
|
||
|
let t_li = document.createElement('li')
|
||
|
let t_a = document.createElement('a')
|
||
|
t_a.href= this.getAttribute('ref')
|
||
|
t_a.innerHTML = this.innerHTML
|
||
|
t_li.appendChild(t_a)
|
||
|
this.replaceWith(t_li)
|
||
|
}
|
||
|
}
|
||
|
customElements.define("li-a", ListAnchor);
|
||
|
</script>
|
||
|
</div>
|
||
|
<div id="footer"></div>
|
||
|
</body>
|
||
|
</html>
|