forked from adambard/angular-elasticsearch-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (53 loc) · 1.88 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
<title>
MyOpenRecipes: An openrecipe search
</title>
<link href="css/screen.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body class='index'>
<div class='container'>
<div ng-app='myOpenRecipes' ng-controller='recipeCtrl'>
<header>
<h1>OpenRecipe Search</h1>
</header>
<section class='searchField'>
<form ng-submit='search()'>
<input ng-model='searchTerm' type='text'>
<input type='submit' value='Search for recipes'>
</form>
</section>
<section class='results'>
<div class='no-recipes' ng-hide='recipes.length'>No results</div>
<article class='recipe' ng-cloak ng-repeat='recipe in recipes'>
<h2>
<a ng-href='{{recipe.url}}'>{{recipe.name}}</a>
</h2>
<ul>
<li ng-repeat='ingredient in recipe.ingredients'>{{ ingredient }}</li>
</ul>
<p>
{{recipe.description}}
<a ng-href='{{recipe.url}}'>... more at {{recipe.source}}</a>
</p>
</article>
<div class='load-more' ng-cloak ng-hide='allResults'>
<a ng-click='loadMore()'>More...</a>
</div>
</section>
<footer>
Made By
<a href='http://adambard.com/'>Handsome Web Developer Adam Bard,</a>
powered by
<a href='http://openrecip.es/'>OpenRecipes</a>
</footer>
</div>
</div>
<script src="bower_components/angular/angular.js" type="text/javascript"></script>
<script src="bower_components/elasticsearch/elasticsearch.angular.js" type="text/javascript"></script>
<script src="js/script.js" type="text/javascript"></script>
</body>
</html>