Created
January 17, 2011 21:44
-
-
Save nikibrown/783539 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="shortcut icon" type="image/x-icon" href=""> | |
<title>Metropolis Creative Presents: Boston Extreme Website Makeover 2011</title> | |
<meta name="description" content="Metropolis Creative Presents: Boston Extreme Website Makeover 2011"> | |
<meta name="keywords" content="website design, website redesign, website makeover, extreme website makeover, boston website makeover"> | |
<link rel="stylesheet" href="assets/css/style.css" media="screen"> | |
<link rel="stylesheet" href="assets/css/960.css" media="screen"> | |
<link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon" /> | |
<meta property="og:image" content="http://bostonwebsitemakeover.com/assets/img/fb-thumb.gif" /> | |
</head> | |
<body> | |
<div style="margin:50px auto; width:700px;"> | |
<h4>See who's coming to the party:</h4> | |
<ul id="entries"> | |
<!-- entries go here via some wufoo + jQuery magic!!! --> | |
</ul> | |
</div> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<script type="text/javascript" src="assets/js/jquery-1.4.4.min.js"></script> | |
<script type='text/javascript' src='j/js/jquery.wufooapi.js'></script> | |
<script type='text/javascript'> | |
$(function() { | |
function processEntries(data) { | |
// Loop for each entry | |
$.each(data.Entries, function(entriesIndex, entriesObject) { | |
// reset | |
allValues = ""; | |
// Loop for each field in the entry | |
$.each(entriesObject, function(fieldID, value) { | |
if (entriesObject.Field17) { | |
// Create a new li, fill with the values | |
$("<li />", { | |
class: "entry", | |
html: "<p>" + entriesObject.Field1 + " " + entriesObject.Field2 + "<br />" + allValues + entriesObject.Field4 + "<br />" + '<a href="http://twitter.com/' + entriesObject.Field17 + '">@' + entriesObject.Field17 +"</a></p>" | |
// Add it to the page | |
}).appendTo("#entries"); | |
}; | |
}); // end loop | |
}); | |
}; | |
$.wufooAPI.getEntries({ | |
"callback" : processEntries, | |
"formHash" : "q7p4q7", | |
"getterPath" : "http://bostonwebsitemakeover.com/j/", | |
"sortID" : "EntryID", | |
"sortDirection" : "DESC" | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment