Skip to content

Commit

Permalink
Google Analytics
Browse files Browse the repository at this point in the history
Google Analytics Support
  • Loading branch information
luciopanepinto committed Jun 29, 2018
1 parent 6c083aa commit 4d1422e
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 2 deletions.
21 changes: 21 additions & 0 deletions css/pacman.css
Expand Up @@ -269,6 +269,27 @@ h3 {
left: 5px;
}

.putchu {
position: absolute;
top: 450px;
left: 130px;
background-color: #4c6441;
padding: 10px 25px 40px 95px;
text-transform: uppercase;
}
.putchu img {
position: absolute;
bottom: -5px;
left: 5px;
}
#panel .putchu {
top: 0px;
right: 5px;
left: auto;
font-size: 16px;
padding: 10px 25px 30px 65px;
}

.help-button {
position: absolute;
text-align: center;
Expand Down
14 changes: 13 additions & 1 deletion index.html
Expand Up @@ -4,6 +4,16 @@

<head>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-121647007-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-121647007-2');
</script>

<meta property="og:image" content="https://pacman-e281c.firebaseapp.com/img/preview.png">
<meta property="og:url" content="https://pacman-e281c.firebaseapp.com/">
<meta property="og:description" content="Pac-Man game written in HTML5 + CSS3 + jQuery with Canvas. This WebApp is a Responsive Web Design (RWD) website.">
Expand Down Expand Up @@ -83,7 +93,7 @@
}
});

$(".github").click(function(e) {
$(".github,.putchu").click(function(e) {
e.stopPropagation();
});

Expand Down Expand Up @@ -207,10 +217,12 @@ <h3>Lucio PANEPINTO<br><em>2015</em></h3>
<div class="help-button">- help -</div>
<a class="sound" href="javascript:void(0);" data-sound="on"><img src="img/sound-on.png" alt="" border="0"></a>
<a class="github" target="_blank" href="https://github.com/luciopanepinto/pacman"><img src="img/github.png" alt="GitHub - Lucio PANEPINTO - Pac-Man"></a>
<a class="putchu" target="_top" href="http://www.putchu.be"><img src="http://www.putchu.be/img/intro/player.png" height="95px" alt="Putchu">www.putchu.be</a>
</div>

<div id="panel">
<h1>pac-man</h1>
<a class="putchu" target="_top" href="http://www.putchu.be"><img src="http://www.putchu.be/img/intro/player.png" height="65px" alt="Putchu">www.putchu.be</a>
<canvas id="canvas-panel-title-pacman"></canvas>
<div id="score"><h2>1UP</h2><span>00</span></div>
<div id="highscore"><h2>High Score</h2><span>00</span></div>
Expand Down
2 changes: 1 addition & 1 deletion js/sound.js
Expand Up @@ -29,7 +29,7 @@ var DIE_SOUND = new buzz.sound([
"./sound/die.mp3"
]);

var GROUP_SOUND = new buzz.group([ EATING_SOUND, SIREN_SOUND, EAT_PILL_SOUND, EAT_GHOST_SOUND, READY_SOUND, DIE_SOUND, WAZA_SOUND, GHOST_EATEN_SOUND, EXTRA_LIFE_SOUND, EAT_FRUIT_SOUND ]);
var GROUP_SOUND = new buzz.group( [ EATING_SOUND, SIREN_SOUND, EAT_PILL_SOUND, EAT_GHOST_SOUND, READY_SOUND, DIE_SOUND, WAZA_SOUND, GHOST_EATEN_SOUND, EXTRA_LIFE_SOUND, EAT_FRUIT_SOUND ] );

var EATING_SOUND_LOOPING = false;

Expand Down
Binary file modified sound/die.mp3
Binary file not shown.
Binary file modified sound/eat-fruit.mp3
Binary file not shown.
Binary file modified sound/extra-life.mp3
Binary file not shown.
Binary file modified sound/ready.mp3
Binary file not shown.
Binary file modified sound/siren.mp3
Binary file not shown.
Binary file modified sound/waza.mp3
Binary file not shown.

0 comments on commit 4d1422e

Please sign in to comment.