This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
100 lines (87 loc) · 2.89 KB
/
index.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
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
<?
if ($_SERVER['REQUEST_METHOD'] === 'POST')
{
$file = '/tmp/sample-app.log';
$message = file_get_contents('php://input');
file_put_contents($file, date('Y-m-d H:i:s') . " Received message: " . $message . "\n", FILE_APPEND);
}
else
{
?>
<!DOCTYPE html>
<html>
<head>
<title>ClarAgua</title>
<meta charset="UTF-8">
<meta author="Gregory Ewing">
<meta author="Megan Lindmark">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="web_app.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<script type="text/javascript">
/* Toggle between showing and hiding the navigation menu links when the user clicks on the hamburger menu / bar icon */
function toggleNavBar(id) {
var x = document.getElementById(id);
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
}
</script>
<!-- Top Navigation Menu -->
<div class="topnav">
<a href="" class="active">ClarAgua</a>
<!-- Navigation links (hidden by default) -->
<div id="myLinks">
<a href="./deployments/SCN0001/">SCN0001</a>
<a href="./map/">Map</a>
<a href="javascript:void(0);" onclick="toggleNavBar('About')">About</a>
<a href="javascript:void(0);" onclick="toggleNavBar('Contact')">Contact</a>
</div>
<!-- "Hamburger menu" / "Bar icon" to toggle the navigation links -->
<a href="javascript:void(0);" class="icon" onclick="toggleNavBar('myLinks')">
<svg width="30" height="25">
<rect style="fill:white;" height="5" width="30"></rect>
<rect style="fill:white;" y="10" height="5" width="30"></rect>
<rect style="fill:white;" y="20" height="5" width="30"></rect>
</svg>
</a>
</div>
<div id="Landing">
<h1>Smart Chlorinator Network</h1>
<p>
Welcome to the Smart Chlorinator Network mobile app: ClarAgua
</p>
<p>
To view live data please navigate to the SCN0001 tab.
</p>
<p>
The ClarAgua mobile app allows technicians and researchers alike to view data from the first Smart Chlorinator installed in La Sirena Nicaragua. This platform will eventually serve all of the Smart Chlorinators across Nicaragua and Honduras, giving technicians the capacity to communicate with and calibrate Smart Chlorinators.
</p>
</div>
<div id="About" style="display: none">
EOS International installs inline chlorination systems throughout Nicaragua and Honduras. In 2019, in partnership with EOS, a team of UIowa researchers outfitted one chlorinator in La Sirena with water quality sensors and cellular data transmission capacity to bring the chlorinator online.
<br>
<br>
</div>
<div id="Contact" style="display: none">
<br>
<br>
Contact
<br>
Graduate Student:
<br>
<br>
(913) 378-4505
<br>
Applet designed by (mostly) Greg Ewing + Megan Lindmark
</div>
</body>
</html>
<?
}
?>