-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·127 lines (115 loc) · 5.75 KB
/
index.html
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Food Radar Project</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/radar-chart.min.css">
<style>
body {
padding-top: 50px;
padding-bottom: 20px;
}
</style>
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
</head>
<body>
<!-- github ribbon, need z-index more than 1030 to draw over navbar. -->
<a href="https://github.com/scomma/foodradar">
<img style="position: fixed; top: 0; right: 0; border: 0; z-index: 1337;"
src="https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67"
alt="Fork me on GitHub"
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png">
</a>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Food Radar Project</a>
</div>
</div>
</nav>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1>อาหารที่เรากินประกอบขึ้นจากอะไรบ้าง?</h1>
<p>ปริมาณสารอาหารที่ได้รับจากอาหารแต่ละชนิดในปริมาณ 100 ก.</p>
<p>
<div class="btn-group">
<button type="button" class="btn btn-info dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-expanded="true">เรียงตาม <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" onclick="$('.index').isotope({sortBy:'cal'})">ปริมาณแคลอรี</a></li>
<li class="divider"></li>
<li><a href="#" onclick="$('.index').isotope({sortBy:'carbohydrate'})">คาร์โบไฮเดรต</a></li>
<li><a href="#" onclick="$('.index').isotope({sortBy:'protein'})">โปรตีน</a></li>
<li><a href="#" onclick="$('.index').isotope({sortBy:'fat'})">ไขมัน</a></li>
<li><a href="#" onclick="$('.index').isotope({sortBy:'fiberInsoluble'})">กากใยอาหาร</a></li>
</ul>
</div>
</p>
</div>
</div>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-12 index" id="foods">
<div class="item">
<div id="radar-chart-0"></div>
<div class="item-label">
<div class="cal">
420 <span class="unit">kcal</span>
</div>
ข้าวกะเพราปลาหมึก
</div>
</div>
<div class="item">
<div id="radar-chart-1"></div>
<div class="item-label">
<div class="cal">
300 <span class="unit">kcal</span>
</div>
มะม่วงน้ำปลาหวาน
</div>
</div>
<!--<p><a class="btn btn-default" href="#" role="button">View details »</a></p>-->
</div>
</div>
<hr>
<footer>
<p>
งานชิ้นนี้เผยแพร่ภายใต้สัญญาอนุญาต <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC Attribution 4.0</a>.
·
<a href="http://github.com/scomma/foodradar">ฟอร์คจาก GitHub</a>
</p>
</footer>
</div> <!-- /container -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/vendor/isotope.pkgd.min.js"></script>
<script src="js/d3.min.js"></script>
<script src="js/radar-chart.min.js"></script>
<script src="js/main.js"></script>
<script src="js/card.js"></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>
</body>
</html>