Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
114 lines (105 sloc) 3.47 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Badge Backpack</title>
<link rel="stylesheet" href="css/style.css" media="screen" />
<script type="text/javascript" src="/hub/jschannel/src/jschannel.js"></script>
<script type="text/javascript" src="js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="js/jquery.tmpl.js"></script>
<script type="text/javascript">
// provide some canned badges to give the appearance of having
// existing badges from other providers.
var canned_badges = [
title: "Grab The Viking By The Horns",
issuer: "",
issuerName: "MoFo Insider Awards",
title: "Chaotic Ball of Energy",
issuer: "",
issuerName: "MoFo Insider Awards",
// badge template
var markup = "<div class='badge'> \
<div class='pic'> \
<img src='${imageURL}' alt='badge' height='120' width='120' /> \
</div> \
<div class='info'> \
<h3 class='title'>${title}</h3> \
<h4 class='issuer'> \
<a href='${issuer}' title='' target='_blank'>${issuerName}</a> \
</h4> \
<a href='#' class='share'>share it!</a> \
</div> \
var loadBadges = function() {
var wrapper = $("#badges_wrapper_js");
Hub.getBadges("", function(badges) {
var dummy = $('<div/>');
$.template("badgesTemplate", markup);
$.tmpl("badgesTemplate", canned_badges).appendTo(dummy);
$.tmpl("badgesTemplate", badges).appendTo(dummy);
$(document).ready(function() {
$.template("badgesTemplate", markup);
$.tmpl("badgesTemplate", canned_badges).appendTo("#badges_wrapper_js");
$('#load').click(function() {
return false;
$('#issuer').bind('click', function(){'/issuer/', 'issuer' + Math.round(Math.random()*1000), 'width=600,height=400,scrollbars=1,resizable=1,menubar=0');
return false;
<div class="wrapper">
<a id="load" href="#">
Reload Badges
<div id="header">
<h1 class="page_title">Welcome to your Badge backpack!</h1>
<p class="description">
Nulla facilisi. In vel sem. Morbi id urna in diam dignissim feugiat. Proin molestie tortor eu velit. Aliquam erat volutpat. Nullam ultrices, diam tempus vulputate egestas, eros pede varius leo, sed imperdiet lectus est ornare odio.
<a href="#" id="issuer" >
Issue Badges
<div id="profile">
<div class="pic">
<img src="images/mark.jpg" alt="profile pic" />
<div class="info">
<h2 id="name">Mark Surman</h2>
<p class="description">
Executive Director, Mozilla Foundation
<div id="badges_wrapper_js">
<div id="footer">
<div id="container"></div>
<script type="text/javascript" src="/hub/src/hub.js"></script>