Fixed an error with checking settings, added analytics (why not) and proper favicon.
This commit is contained in:
parent
9ec5e2a639
commit
c82d6eb932
BIN
public/images/favicon.png
Normal file
BIN
public/images/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
@ -260,12 +260,15 @@ var settings = {
|
|||||||
|
|
||||||
if (hash){
|
if (hash){
|
||||||
userSettings = JSON.parse(hash);
|
userSettings = JSON.parse(hash);
|
||||||
document.title = userSettings.title || settings.title;
|
if(userSettings && userSettings.title !== undefined){
|
||||||
settings.color = userSettings.color || settings.color;
|
document.title = userSettings.title;
|
||||||
|
}
|
||||||
|
|
||||||
if(typeof userSettings.gui !== undefined){
|
if(userSettings && userSettings.gui !== undefined){
|
||||||
settings.gui = userSettings.gui;
|
settings.gui = userSettings.gui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
settings.color = userSettings.color || settings.color;
|
||||||
}
|
}
|
||||||
|
|
||||||
var adjustCanvas = function(){
|
var adjustCanvas = function(){
|
||||||
|
@ -3,11 +3,21 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Gui Hacker</title>
|
<title>Gui Hacker</title>
|
||||||
<link rel='stylesheet' href='/stylesheets/style.css' />
|
<link rel='stylesheet' href='/stylesheets/style.css' />
|
||||||
|
<link rel="icon" href="/images/favicon.png" sizes="32x32">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<canvas class='hacker-3d-shiz'></canvas>
|
<canvas class='hacker-3d-shiz'></canvas>
|
||||||
<canvas class='bars-and-stuff'></canvas>
|
<canvas class='bars-and-stuff'></canvas>
|
||||||
<div class="output-console"></div>
|
<div class="output-console"></div>
|
||||||
<script src="/javascripts/hack.js"></script>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user