duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
var f = function() { | |
var v = speechSynthesis.getVoices().filter(function(v) { return v.name == 'Hysterical'; })[0], | |
s = ["ahahahaha", "stop it", "don't tickle me"], | |
t = new SpeechSynthesisUtterance(s[~~(Math.random()*s.length)]); | |
t.voice = v; speechSynthesis.speak(t); | |
}; | |
Array.prototype.slice.call(document.querySelectorAll('a')).forEach(function(a) { | |
a.addEventListener('mouseover', f); | |
}); |
function retry(isDone, next) { | |
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
var id = window.setInterval( | |
function() { | |
if (isDone()) { | |
window.clearInterval(id); | |
next(is_timeout); | |
} | |
if (current_trial++ > max_retry) { | |
window.clearInterval(id); |