kopia lustrzana https://github.com/FacilMap/facilmap
25 wiersze
683 B
HTML
25 wiersze
683 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>FacilPad</title>
|
|
<meta name="robots" content="index,nofollow" />
|
|
</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" rel="nofollow">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> |