forked from codeforamerica/bizfriendly-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlessons.html
More file actions
74 lines (64 loc) · 2.28 KB
/
lessons.html
File metadata and controls
74 lines (64 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<title>How to City</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta charset="utf-8">
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
<!-- <link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet"> -->
<link href="css/oldCSS.css" rel="stylesheet">
<!-- SUPPORT FOR IE6-8 OF HTML5 ELEMENTS -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="ico/favicon.ico">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/vendor/jquery.popupwindow.js"></script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="header">
<div class="container">
<img src="img/header_long.jpg">
</div>
</div>
</div>
<div class="container page">
<div class="content">
<div class="page-header">
<h2>Lessons</h2>
<div class="row">
<ul class="thumbnails">
</ul>
</div>
</div>
</div>
</div>
<footer class="footer container">
<p>© How to City</p>
</footer>
</body>
<script>
// Display on the page
$.getJSON('http://howtocity.herokuapp.com/api/v1/lessons',
function(response){
categories = response.objects;
// console.log(categories);
$(categories).each(function(i){
category = categories[i]
// console.log(categories[i].name);
category_html = '<li class="span4">'+
'<a href="'+category.url+'">'+
'<h4>'+category.name+'</h4>'+
'<p>'+category.description+'</p>'+
'</a>'+
'</li>'
$('.thumbnails').append(category_html);
})
})
</script>
<script src="http://twitter.github.io/bootstrap/assets/js/bootstrap.js"></script>
</html>