|
|
|
@ -34,18 +34,25 @@ |
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> |
|
|
|
|
<!-- Matomo --> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
var _paq = window._paq = window._paq || [] |
|
|
|
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
|
|
|
|
_paq.push(['disableCookies']); |
|
|
|
|
_paq.push(['enableLinkTracking']); |
|
|
|
|
_paq.push(['trackPageView']); |
|
|
|
|
(function() { |
|
|
|
|
var u="https://matomo.ethereum.org/"; |
|
|
|
|
_paq.push(['setTrackerUrl', u+'matomo.php']) |
|
|
|
|
_paq.push(['setSiteId', '27']) |
|
|
|
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0] |
|
|
|
|
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s) |
|
|
|
|
})() |
|
|
|
|
const domains = { |
|
|
|
|
'remix-alpha.ethereum.org': 27, |
|
|
|
|
'remix-beta.ethereum.org': 25, |
|
|
|
|
'remix.ethereum.org': 23 |
|
|
|
|
} |
|
|
|
|
if (domains[window.location.hostname]) { |
|
|
|
|
var _paq = window._paq = window._paq || [] |
|
|
|
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
|
|
|
|
_paq.push(['disableCookies']); |
|
|
|
|
_paq.push(['enableLinkTracking']); |
|
|
|
|
_paq.push(['trackPageView']); |
|
|
|
|
(function() { |
|
|
|
|
var u="https://matomo.ethereum.org/"; |
|
|
|
|
_paq.push(['setTrackerUrl', u+'matomo.php']) |
|
|
|
|
_paq.push(['setSiteId', domains[window.location.hostname]]) |
|
|
|
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0] |
|
|
|
|
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s) |
|
|
|
|
})() |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<!-- End Matomo Code --> |
|
|
|
|
</head> |
|
|
|
@ -70,8 +77,8 @@ |
|
|
|
|
} |
|
|
|
|
return params |
|
|
|
|
} |
|
|
|
|
const defaultVersion = '0.8.0' |
|
|
|
|
let versionToLoad = urlParams().appVersion ? urlParams().appVersion : defaultVersion |
|
|
|
|
const defaultVersion = '0.8.0' |
|
|
|
|
let versionToLoad = urlParams().appVersion ? urlParams().appVersion : defaultVersion |
|
|
|
|
|
|
|
|
|
let assets = { |
|
|
|
|
'0.8.0': ['https://use.fontawesome.com/releases/v5.8.1/css/all.css', 'assets/css/pygment_trac.css'], |
|
|
|
|