DM / index.html
Omnibus's picture
Update index.html
e0f67b3
raw
history blame
1.04 kB
<!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) {
linkz = linkz.replace("'","");
console.log(linkz[i]);
var a = document.createElement('a');
var linkText = document.createTextNode(linkz[i]);
a.appendChild(linkText);
a.title = linkz[i];
a.href = linkz[i];
document.getElementById("in_html").appendChild(a);
i++;
};
//document.getElementById("in_html").innerHTML=links
</script>
</body>
</html>