Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f801799
commit 7e1d714
Showing
1 changed file
with
131 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<link rel="shortcut icon" href="../../assets/ico/favicon.png"> | ||
|
||
<title>Cool Cats With Andy Boyle</title> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<!-- Bootstrap core CSS --> | ||
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css" rel="stylesheet"> | ||
|
||
<!-- Custom styles for this template --> | ||
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css" /> | ||
|
||
<!-- Custom styles for this template --> | ||
<link href="http://getbootstrap.com/examples/jumbotron/jumbotron.css" rel="stylesheet"> | ||
|
||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!--[if lt IE 9]> | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/respond.js/1.3.0/respond.js></script> | ||
<![endif]--> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="#">Project name</a> | ||
</div> | ||
<div class="navbar-collapse collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li class="active"><a href="#">Home</a></li> | ||
<li><a href="#about">About</a></li> | ||
<li><a href="#contact">Contact</a></li> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> | ||
<ul class="dropdown-menu"> | ||
<li><a href="#">Action</a></li> | ||
<li><a href="#">Another action</a></li> | ||
<li><a href="#">Something else here</a></li> | ||
<li class="divider"></li> | ||
<li class="dropdown-header">Nav header</li> | ||
<li><a href="#">Separated link</a></li> | ||
<li><a href="#">One more separated link</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<form class="navbar-form navbar-right"> | ||
<div class="form-group"> | ||
<input type="text" placeholder="Email" class="form-control"> | ||
</div> | ||
<div class="form-group"> | ||
<input type="password" placeholder="Password" class="form-control"> | ||
</div> | ||
<button type="submit" class="btn btn-success">Sign in</button> | ||
</form> | ||
</div><!--/.navbar-collapse --> | ||
</div> | ||
</div> | ||
|
||
<!-- Main jumbotron for a primary marketing message or call to action --> | ||
<div class="jumbotron"> | ||
<div class="container"> | ||
<h1>Hello, world!</h1> | ||
<p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p> | ||
<p><a class="btn btn-primary btn-lg">Learn more »</a></p> | ||
</div> | ||
</div> | ||
|
||
<div class="container"> | ||
<!-- Example row of columns --> | ||
<div class="row"> | ||
<div id="cat-list"> | ||
</div> | ||
</div> | ||
|
||
<hr> | ||
|
||
<footer> | ||
<p>© Company 2013</p> | ||
</footer> | ||
</div> <!-- /container --> | ||
|
||
<script id="cat-template" type="text/x-handlebars-template"> | ||
<h3>{{name}}</h4> | ||
<img src="{{photo}}"><p style="cat">This {{gender}} cat is {{age}}-years-old, {{color}} and was born in {{city}}.</p><hr> | ||
</script> | ||
|
||
<!-- Bootstrap core JavaScript | ||
================================================== --> | ||
<!-- Placed at the end of the document so the pages load faster --> | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script> | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/holder/2.0/holder.js"></script> | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/tabletop.js/1.1.0/tabletop.min.js"></script> | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.min.js"></script> | ||
|
||
<script type="text/javascript"> | ||
var public_spreadsheet_url = 'https://docs.google.com/spreadsheet/pub?key=0Ark-PJD-Ze_DdGw3RUQ0MnlPcEVmQ2VGR1hvRHIzTFE&output=html'; | ||
|
||
$(document).ready( function() { | ||
Tabletop.init( { key: public_spreadsheet_url, | ||
callback: showInfo, | ||
parseNumbers: true } ); | ||
}); | ||
function showInfo(data, tabletop) { | ||
var source = $("#cat-template").html(); | ||
var template = Handlebars.compile(source); | ||
|
||
$.each( tabletop.sheets("cats").all(), function(i, cat) { | ||
var html = template(cat); | ||
$("#cat-list").append(html); | ||
}); | ||
} | ||
</script> | ||
</body> | ||
</html> | ||
|
||
|