forked from cadey/xesite
44 lines
1.3 KiB
HTML
44 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Christine Dodrill</title>
|
|
|
|
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
|
|
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
|
|
<link href="/app.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
|
|
<script>
|
|
// Forgive me
|
|
function eventFire(el, etype){
|
|
if (el.fireEvent) {
|
|
el.fireEvent('on' + etype);
|
|
} else {
|
|
var evObj = document.createEvent('Events');
|
|
evObj.initEvent(etype, true, false);
|
|
el.dispatchEvent(evObj);
|
|
}
|
|
}
|
|
|
|
interval = setInterval(function() {
|
|
e = document.getElementById("requestbutton");
|
|
if(e != null) {
|
|
eventFire(e, "click");
|
|
} else {
|
|
console.log("Tried so hard been so far")
|
|
}
|
|
clearInterval(interval);
|
|
|
|
e.style.display = "none";
|
|
}, 250);
|
|
</script>
|
|
</body>
|
|
</html>
|