Skip to content

Commit

Permalink
Implement RGEA
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpthemeus committed Nov 24, 2019
1 parent 075a5c5 commit a7c7069
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/js/rgea.js
@@ -0,0 +1,8 @@
(function(t,l){
let w=window,d=document,s=d.createElement('script'),f=d.getElementsByTagName('script')[0];
w[t]=w[t]||function(){(w["_rgea"]=w["_rgea"]||[["uts",new Date()]]).push(Array.prototype.slice.call(arguments));w.RGEA&&w.RGEA.p();};
s.type='text/javascript'; s.async=true; s.defer=true; s.src=l; f.parentNode.insertBefore(s,f);
})("rgea", "https://static.developer.riotgames.com/js/rgea.min.js");

rgea("propertyId", "RGEA0002-7196bd5b-7d1e-4b16-bb66-6216f45d907b");
rgea("anonymous", true);
4 changes: 4 additions & 0 deletions views/champion.handlebars
Expand Up @@ -7,6 +7,10 @@
<link rel="stylesheet" type="text/css" href="/css/champion.css">
{{/content}}

{{#content "scripts"}}
<script src="/js/rgea.js"></script>
{{/content}}

{{#content "body"}}
<h1>
<img id="championIcon" src="/img/championIcons/{{champion.icon}}">
Expand Down
1 change: 1 addition & 0 deletions views/highscores.handlebars
Expand Up @@ -10,6 +10,7 @@

{{#content "scripts"}}
<script src="/js/highscores.js"></script>
<script src="/js/rgea.js"></script>
{{/content}}

{{#content "body"}}
Expand Down
1 change: 1 addition & 0 deletions views/summoner.handlebars
Expand Up @@ -11,6 +11,7 @@

{{#content "scripts"}}
<script src="/js/summoner.js"></script>
<script src="/js/rgea.js"></script>
{{/content}}


Expand Down

0 comments on commit a7c7069

Please sign in to comment.