harness the power of the web

This commit is contained in:
Moritz Poldrack 2021-04-25 22:45:15 +02:00
parent 5f928128b3
commit 8fdbdbbaf6
No known key found for this signature in database
GPG key ID: 27F176BA13437B7C

26
next-prime/next.html Normal file
View file

@ -0,0 +1,26 @@
<html>
<head>
<title>Get next prime</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Gloria+Hallelujah">
<style>
body {
width: 100%;
height: 100%;
background-color: #0000BF;
color: #00FF00;
font-family: "Comic Sans", "Gloria Hallelujah", sans-serif;
}
</style>
</head>
<body>
<h1>FILL OUT THIS FORM TO GET THE NEXT PRIME NUMBER</h1>
<input type="number" id="n">
<button onclick="getNextPrime()">Tell me!</button
</body>
<script>
function getNextPrime(){
var n = document.getElementById('n').value;
window.location.replace("https://www.wolframalpha.com/input/?i=1st+prime+after+"+n);
}
</script>
</html>