facilmap/frontend/index.html

24 wiersze
618 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>FacilPad</title>
</head>
<body>
<h1>FacilPad</h1>
<p>Welcome to FacilPad.</p>
<noscript><p><strong>FacilPad requires JavaScript to work.</strong></p></noscript>
<p><a id="create-pad-link">Create a new pad</a></p>
</form>
<script>
var LETTERS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
var LENGTH = 12;
var randomPadId = "";
for(var i=0; i<LENGTH; i++) {
randomPadId += LETTERS[Math.floor(Math.random() * LETTERS.length)];
}
document.getElementById("create-pad-link").href = randomPadId;
</script>
</body>
</html>