Permalink
Browse files

How To Commit Common Code in Esperanto

  • Loading branch information...
Lemon
Lemon committed Apr 17, 2016
1 parent 020baef commit 7a3f2bdd867291bfb87f5a10a550c0cdc4fdba47
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
@@ -47,7 +47,7 @@
<header id="ScoreHeader">
<div class="inner score-holder">
<div class="box score-box"><span class="score label">score</span><span id="ScoreNumber" class="score number">0</span></div>
<div class="box percent-box"><span class="percent label">percent</span><span id="ScorePercent" class="percent number">0%</span></div>
<div class="box percent-box"><span class="percent label">correct</span><span id="ScorePercent" class="percent number">0%</span></div>
<div class="box hamburger-holder">
<button class="hamburger">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
@@ -65,7 +65,8 @@
<div class="sidebar">
<ul>
<li><span class="label">Game by</span><span class="indent"><a href="https://thefpl.us/meet/lemon" target="blank" onclick="sendGA('outside link', 'https://thefpl.us/meet/lemon')">Lemon</a></span></li>
<li> <span class="label">Current round count</span><span class="indent"><span class="number-of-rounds">XXX</span></span></li>
<li> <span class="label">Current round count</span><span class="indent"><span class="number-of-rounds"></span></span></li>
<li><span class="label">Global average</span><span class="indent">63% correct</span></li>
<li> <span class="label">There's a</span><span class="indent"><a href="https://github.com/AhoyLemon/Damn-Dog" target="blank" onclick="sendGA('outside link', 'https://github.com/AhoyLemon/Damn-Dog')">GitHub repo</a></span></li>
<li><span class="label">You can</span><span class="indent"><a id="OpenSharebox">share this round.</a></span></li>
<li class="smaller">Your progress will be saved if you close this browser.</li>
@@ -4,7 +4,7 @@ header#ScoreHeader
span.score.label score
span.score.number#ScoreNumber 0
.box.percent-box
span.percent.label percent
span.percent.label correct
span.percent.number#ScorePercent 0%
.box.hamburger-holder
button.hamburger
@@ -7,7 +7,11 @@
li
span.label Current round count
span.indent
span.number-of-rounds XXX
span.number-of-rounds
li
span.label Global average
span.indent
| 63% correct
li
span.label There's a
span.indent
View
@@ -1,15 +1,19 @@
// jshint -W117
//@prepros-prepend partials/_photos.js
//@prepros-prepend partials/_analytics.js
//@prepros-prepend partials/_footer.js
$(document).ready(function() {
console.log('total rounds: '+wikiHow.length);
$('.number-of-rounds').text(wikiHow.length);
if(window.location.hash) {
var hash = window.location.hash.substring(1);
getPhoto(hash);
getChoices();
if (hash < wikiHow.length) {
getPhoto(hash);
getChoices();
} else {
getPhoto();
getChoices();
}
} else {
getPhoto();
getChoices();
@@ -83,8 +87,6 @@ function getPhoto(p) {
if (p) {
r = p;
reroll = 0;
//roundsPlayed.push(r);
//localStorage.setItem('roundsPlayed', roundsPlayed.toString());
wiki.gid = r;
if (!wikiHow[r].pic) {
wiki.pic = 'img/pics/'+wikiHow[r].slug.toLowerCase()+'.jpg';
@@ -106,8 +108,6 @@ function getPhoto(p) {
}
} else {
reroll = 0;
//roundsPlayed.push(r);
//localStorage.setItem('roundsPlayed', roundsPlayed.toString());
wiki.gid = r;
if (!wikiHow[r].pic) {
wiki.pic = 'img/pics/'+wikiHow[r].slug.toLowerCase()+'.jpg';
@@ -190,7 +190,7 @@ function showScore() {
$('header .percent').fadeIn(600);
$('#ScorePercent').text(player.percent+'%');
if (player.percent < 50) {
if (player.percent < 60) {
$('#ScorePercent').addClass('bad');
} else {
$('#ScorePercent').removeClass('bad');
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -539,6 +539,21 @@ var wikiHow = [
{
slug: "Track-Money"
},
{
slug: "Be-a-Stripper-Who-Knows-What-She-is-Doing"
},
{
slug: "Be-a-True-Hip-Hop-Artist"
},
{
slug: "Exercise-Mindfulness-to-Be-Happier"
},
{
slug: "Say-Some-Common-Phrases-in-Esperanto"
},
{
slug: "Spot-a-Catfish"
},
{
slug: "Be-Unique"
}
Oops, something went wrong.

0 comments on commit 7a3f2bd

Please sign in to comment.