Last active
August 30, 2017 19:45
-
-
Save korenmiklos/48f6f03265761ec128bddf495c1b9073 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> | |
<title>Econ Title Generator</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="random_titles.js"></script> | |
<script type="text/javascript"> | |
var generateLoremIpsum = function(len) { | |
var word = Math.floor(Math.random() * titles.length); | |
return titles[word]; | |
}; | |
window.onload=function(){ | |
var generate = document.getElementById('generate'); | |
var result = document.getElementById('result'); | |
generate.addEventListener('click', function() { | |
var text = generateLoremIpsum(1); | |
result.innerHTML = text; | |
}, false); | |
} | |
</script> | |
<center> | |
<button id="generate">Generate Econ Title</button> | |
<h1 id="result"></h1> | |
</center> | |
</body> | |
</html> |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment