-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathfirbaseAPIGet.html
165 lines (154 loc) · 6.45 KB
/
firbaseAPIGet.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html>
<title>W3.CSS Template</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Karma" />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<style>
body,
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Karma", sans-serif;
}
.w3-bar-block .w3-bar-item {
padding: 20px;
}
</style>
<body ng-app="myApp" ng-controller="myCtrl">
<!-- Sidebar (hidden by default) -->
<nav
class="w3-sidebar w3-bar-block w3-card w3-top w3-xlarge w3-animate-left"
style="display:none;z-index:2;width:40%;min-width:300px"
id="mySidebar"
>
<a href="javascript:void(0)" onclick="w3_close()" class="w3-bar-item w3-button">Close Menu</a>
<a href="#food" onclick="w3_close()" class="w3-bar-item w3-button">Food</a>
<a href="#about" onclick="w3_close()" class="w3-bar-item w3-button">About</a>
</nav>
<!-- Top menu -->
<div class="w3-top">
<div class="w3-white w3-xlarge" style="max-width:1200px;margin:auto">
<div class="w3-button w3-padding-16 w3-left" onclick="w3_open()">☰</div>
<div class="w3-right w3-padding-16">Mail</div>
<div class="w3-center w3-padding-16">My Food</div>
</div>
</div>
<!-- !PAGE CONTENT! -->
<div class="w3-main w3-content w3-padding" style="max-width:1200px;margin-top:100px">
<!-- First Photo Grid-->
<div class="w3-row-padding w3-padding-16 w3-center" id="food">
<div class="w3-quarter" ng-repeat="l in myWelcome">
<img ng-src="{{l.img}}" alt="Sandwich" style="width:100%" />
<h3>{{l.price}}</h3>
<p>{{l.name}}</p>
</div>
</div>
<!-- Pagination -->
<div class="w3-center w3-padding-32">
<div class="w3-bar">
<a href="#" class="w3-bar-item w3-button w3-hover-black">«</a>
<a href="#" class="w3-bar-item w3-black w3-button">1</a>
<a href="#" class="w3-bar-item w3-button w3-hover-black">2</a>
<a href="#" class="w3-bar-item w3-button w3-hover-black">3</a>
<a href="#" class="w3-bar-item w3-button w3-hover-black">4</a>
<a href="#" class="w3-bar-item w3-button w3-hover-black">»</a>
</div>
</div>
<hr id="about" />
<!-- About Section -->
<div class="w3-container w3-padding-32 w3-center">
<h3>About Me, The Food Man</h3>
<br />
<img
src="/w3images/chef.jpg"
alt="Me"
class="w3-image"
style="display:block;margin:auto"
width="800"
height="533"
/>
<div class="w3-padding-32">
<h4><b>I am Who I Am!</b></h4>
<h6><i>With Passion For Real, Good Food</i></h6>
<p>
Just me, myself and I, exploring the universe of unknownment. I have a heart of love and an interest of
lorem ipsum and mauris neque quam blog. I want to share my world with you. Praesent tincidunt sed tellus ut
rutrum. Sed vitae justo condimentum, porta lectus vitae, ultricies congue gravida diam non fringilla.
Praesent tincidunt sed tellus ut rutrum. Sed vitae justo condimentum, porta lectus vitae, ultricies congue
gravida diam non fringilla.
</p>
</div>
</div>
<hr />
<!-- Footer -->
<footer class="w3-row-padding w3-padding-32">
<div class="w3-third">
<h3>FOOTER</h3>
<p>
Praesent tincidunt sed tellus ut rutrum. Sed vitae justo condimentum, porta lectus vitae, ultricies congue
gravida diam non fringilla.
</p>
<p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
</div>
<div class="w3-third">
<h3>BLOG POSTS</h3>
<ul class="w3-ul w3-hoverable">
<li class="w3-padding-16">
<img src="/w3images/workshop.jpg" class="w3-left w3-margin-right" style="width:50px" />
<span class="w3-large">Lorem</span><br />
<span>Sed mattis nunc</span>
</li>
<li class="w3-padding-16">
<img src="/w3images/gondol.jpg" class="w3-left w3-margin-right" style="width:50px" />
<span class="w3-large">Ipsum</span><br />
<span>Praes tinci sed</span>
</li>
</ul>
</div>
<div class="w3-third w3-serif">
<h3>POPULAR TAGS</h3>
<p>
<span class="w3-tag w3-black w3-margin-bottom">Travel</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">New York</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Dinner</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Salmon</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">France</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Drinks</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Ideas</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Flavors</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Cuisine</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Chicken</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Dressing</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Fried</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Fish</span>
<span class="w3-tag w3-dark-grey w3-small w3-margin-bottom">Duck</span>
</p>
</div>
</footer>
<!-- End page content -->
</div>
<script>
// Script to open and close sidebar
function w3_open() {
document.getElementById("mySidebar").style.display = "block";
}
function w3_close() {
document.getElementById("mySidebar").style.display = "none";
}
</script>
<script>
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope, $http) {
$http.get("https://f.firebaseio.com/products.json").then(function(response) {
$scope.myWelcome = response.data;
});
});
</script>
</body>
</html>