-
Notifications
You must be signed in to change notification settings - Fork 2
/
requester.php
44 lines (38 loc) · 1.29 KB
/
requester.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Requester</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/mainCSS.css">
</head>
<style>
</style>
<body>
<?php include("navTop/navMember.php") ?>
<div class="container" style="margin-top:50px;">
<h2 class="text-center">Food Status</h2>
<div class="jumbotron" >
<h2 id="lblCurrentMessage" class="text-center"></h2>
</div>
<script src="https://cdn.firebase.com/js/client/2.4.2/firebase.js"></script>
<script>
var rootRef= new Firebase('https://realtimetest123.firebaseio.com/'),
currentMessageRef= rootRef.child('FoodStatus');
currentMessageRef.set("Cooking");
currentMessageRef.on('value',function(snapshot){
lblCurrentMessage.innerText= snapshot.val();
})
</script>
<div id="chatBox" class="col-sm-12">
<div class="text-center">
<iframe src="friendlychat/web-start/index.html" height="500" width="800">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
</div>
</div>
</body>
</html>