Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaze committed Nov 19, 2024
2 parents 6eaf9c7 + 6c7578c commit 2974059
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 34 deletions.
8 changes: 8 additions & 0 deletions argo-crusade/static/scores.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,13 @@
{
"name": "last",
"score": "70"
},
{
"name": "Kevin",
"score": "40"
},
{
"name": "Jo",
"score": "40"
}
]
4 changes: 4 additions & 0 deletions argo-crusade/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@

function publish_score() {
var username = document.getElementById('username').value;
if((username=="Name")||username.length<2){
alert("Change your Name so we can congratulate you !!");
return;
}
var score = localStorage.getItem('gameScore');

var requeststr = 'username=' + username + '&score=' + score.toString()
Expand Down
31 changes: 17 additions & 14 deletions visuals/cake.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified visuals/g2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added visuals/g225.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added visuals/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 20 additions & 20 deletions visuals/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2974059

Please sign in to comment.