diff options
| author | Kapil Viren Ahuja <k.v.ahuja@gmail.com> | 2017-03-23 15:46:46 +0530 |
|---|---|---|
| committer | Kapil Viren Ahuja <k.v.ahuja@gmail.com> | 2017-03-23 15:46:46 +0530 |
| commit | 8696db82cf5e627cfc96acd7eddbe4e494d0b9f6 (patch) | |
| tree | ce3d13b709d31644e7b232c4e990c6706faa284d | |
| parent | 638a80e76921d13d4ab4ce62358828a0f3229708 (diff) | |
| download | minionlivesmatter-8696db82cf5e627cfc96acd7eddbe4e494d0b9f6.tar.gz minionlivesmatter-8696db82cf5e627cfc96acd7eddbe4e494d0b9f6.zip | |
removing Dupe JS
| -rw-r--r-- | templates/index.html | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/templates/index.html b/templates/index.html index 1440676..6c7e2ce 100644 --- a/templates/index.html +++ b/templates/index.html @@ -407,18 +407,6 @@ No diggity, I gotta bag it up."</h4> }, 1000); </script> - - <script type="text/javascript"> - var minions_per_second = {{ sql_val("SELECT SUM(minion_kills)/SUM(match.duration)::FLOAT FROM participant JOIN roster ON participant.roster_api_id=roster.api_id JOIN match ON roster.match_api_id=match.api_id WHERE participant.created_at > NOW() - '1 day'::INTERVAL") }}; - var minions = 0; - // sum(minions killed) / sum(game lengh s) - setInterval(() => { - minions += minions_per_second; - $("#minions-killed-now").text(Math.floor(minions)); - }, 1000); - </script> - - <!-- Just for demo --> <script src="https://cdnjs.cloudflare.com/ajax/libs/masonry/3.3.1/masonry.pkgd.min.js"></script> |
