Skip to content

Commit

Permalink
tile
Browse files Browse the repository at this point in the history
  • Loading branch information
PrincessMtH committed Aug 2, 2024
1 parent fc94a4e commit d18a089
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>simple image tiler</title>
</head>
<body style="width:100%;height:100%;background-repeat:repeat;" onload="addimg();">
<div id="noimg">
<form action="">
<label for="img">Image URL: </label>
<input type="text" name="img">
<input type="submit" value="Load">
</form>
</div>
<script>
function addimg() {
const urlparams = new URLSearchParams(window.location.search);
if (!urlparams.has('img'))
return;
document.getElementById("noimg").style.display = "none";
document.body.style.backgroundImage = "url('"+urlparams.get('img')+"')";
}
</script>
</body>
</html>

0 comments on commit d18a089

Please sign in to comment.