From 529588b8424fab2c5862cfb9844ade7c98ab19b4 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 23 Apr 2013 02:22:22 -0700 Subject: More fiddling with challenges --- pages/challengelist.php | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/pages/challengelist.php b/pages/challengelist.php index 1e199d7..05a8000 100644 --- a/pages/challengelist.php +++ b/pages/challengelist.php @@ -35,7 +35,7 @@ function navShowLevels(tier) { .html("") .slideDown('fast'); - var urlString = 'http://www.mazetd.4xg.net/ajax/challenges.ajax.php?getChallengeIDs=true&userID=3'; + var urlString = 'ajax/challenges.ajax.php?getChallengeIDs=true&userID=3'; $.ajax({ type: "GET", url: urlString, @@ -54,17 +54,38 @@ function showLevelsResponse(response) { $("#t").append(formatChallengeThumbnail(challengeObj.mapObject)).show(); mapdata[key] = challengeObj.mapObject; }); - $("#t").append('
Grayed out Obscured Map Here.
').show(); - $("#t").append('
Grayed out Obscured Map Here.
').show(); - $("#t").append('
Grayed out Obscured Map Here.
').show(); + $("#t").append('
Grayed out Obscured Map Here.
').show(); + $("#t").append('
Grayed out Obscured Map Here.
').show(); + $("#t").append('
Grayed out Obscured Map Here.
').show(); + $("#t").append('
Grayed out Obscured Map Here.
').show(); } function formatChallengeThumbnail(map) { - return '
'+mapThumbnailHTML(map, 200, false)+'
'; + var r = '
'; + return r; } function displayChallengeMap(challengeMapID) { $("#t").html(mapAsHTML(mapdata[challengeMapID])); + $("#t").append(challengesHTML()); +} + +function challengesHTML(challenges) { + + var r = '
'; + r += '
Challenges
'; + r += '
    '; + + $.each({}, function(key, challenges) { + r += "
  • "; + //r += getChallengeDisplayString($challenge); + r += " $loadSolutionString
  • "; + }); + r += "
"; + + return r; } function hideNav() { @@ -80,12 +101,12 @@ function showNav() {
-

Challenges - Pre-Beta, AKA Alpha.

+

Challenges - I'z working on this stuff.

-
- Easy +
+

Easy

Normal -- cgit v1.2.3