Fixed an error with checking settings, added analytics (why not) and proper favicon.

This commit is contained in:
Jason Brown 2014-06-11 01:06:46 -05:00
parent 9ec5e2a639
commit c82d6eb932
3 changed files with 16 additions and 3 deletions

BIN
public/images/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -260,12 +260,15 @@ var settings = {
if (hash){
userSettings = JSON.parse(hash);
document.title = userSettings.title || settings.title;
settings.color = userSettings.color || settings.color;
if(userSettings && userSettings.title !== undefined){
document.title = userSettings.title;
}
if(typeof userSettings.gui !== undefined){
if(userSettings && userSettings.gui !== undefined){
settings.gui = userSettings.gui;
}
settings.color = userSettings.color || settings.color;
}
var adjustCanvas = function(){

View File

@ -3,11 +3,21 @@
<head>
<title>Gui Hacker</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
<link rel="icon" href="/images/favicon.png" sizes="32x32">
</head>
<body>
<canvas class='hacker-3d-shiz'></canvas>
<canvas class='bars-and-stuff'></canvas>
<div class="output-console"></div>
<script src="/javascripts/hack.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-1702440-20', 'guihacker.com');
ga('send', 'pageview');
</script>
</body>
</html>