diff options
| author | Cadey Dodrill <me@christine.website> | 2016-12-14 06:20:25 -0800 |
|---|---|---|
| committer | Cadey Dodrill <me@christine.website> | 2016-12-14 06:20:25 -0800 |
| commit | 90f176019a1723aa0d4b7cbb97009944e60e963d (patch) | |
| tree | a816f40b0c8c823aef2c8efe60ba4ef8891d876b /frontend/support | |
| parent | 060a7c913a6eb1f30052504678e04fccc404b930 (diff) | |
| download | xesite-90f176019a1723aa0d4b7cbb97009944e60e963d.tar.xz xesite-90f176019a1723aa0d4b7cbb97009944e60e963d.zip | |
add API backend
Diffstat (limited to 'frontend/support')
| -rw-r--r-- | frontend/support/index.html | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/frontend/support/index.html b/frontend/support/index.html index b37e676..3b53f83 100644 --- a/frontend/support/index.html +++ b/frontend/support/index.html @@ -4,7 +4,7 @@ <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>Pux Starter App</title> + <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"> @@ -14,5 +14,30 @@ </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> |
