File size: 1,053 Bytes
4d2184b 1153769 4d2184b 13da775 c4268a5 e0f67b3 4768d99 a734d2d 9efc93c e0f67b3 61fc6de 9d7e788 61fc6de 9d7e788 61fc6de 9d7e788 1b77281 e4d7293 59c23e0 13da775 4d2184b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>My static Space</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="card" id = "in_html" name="in_card">
</div>
<script>
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const links = urlParams.get("links");
var linkz= links.split(",");
let i = 0;
while (i < linkz.length) {
linkzz = linkz[i].replace("'","").replace("'","");
console.log(linkzz);
var a = document.createElement('a');
var linkText = document.createTextNode(linkzz);
a.appendChild(linkText);
a.title = linkzz;
a.href = linkzz;
document.getElementById("in_html").appendChild(a);
i++;
};
//document.getElementById("in_html").innerHTML=links
</script>
</body>
</html>
|