-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode_4.html
192 lines (166 loc) · 6.24 KB
/
code_4.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<html>
<head>
<title>
LAWS::Code
</title>
<!-- Favicon -->
<link rel="shortcut icon" type="image/png" href="images.png"/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
bg{
background-color:gray;
}
.bs-example:after {
content: "Example";
position: absolute;
top: 15px;
left: 15px;
font-size: 12px;
font-weight: bold;
color: #bbb;
text-transform: uppercase;
letter-spacing: 1px;
}
.bs-callout {
padding: 20px;
margin: 20px 0;
border: 1px solid #eee;
border-left-width: 5px;
border-radius: 3px;
}
.topspace{
margin:100px auto;max-width:805px;
}
</style>
<script src="http://uguru-realestate-us-jun202013.businesscatalyst.com/3d-slider/sliderengine/jquery.js"></script>
<script src="http://uguru-realestate-us-jun202013.businesscatalyst.com/3d-slider/sliderengine/amazingslider.js"></script>
<script src="http://uguru-realestate-us-jun202013.businesscatalyst.com/3d-slider/sliderengine/initslider-1.js"></script>
</head>
<body>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active" style="width:100%;height:100%">
<img src="3.jpg" alt="Chania">
</div>
<div class="item" style="width:100%;height:100%">
<img src="2.jpg" alt="Flower">
</div>
<div class="item" style="width:100%;height:100%">
<img src="1.jpg" alt="Flower">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<img src="download (1).jpg" style="margin-left:3em;position:absolute;top:18cm;bgcolor:#0000FF">
<div id="info"style="margin-left:20em;position:absolute;left:1cm;top:18cm">
<bg><h2><b>I.S.T.E </b></br><small>presents</small></h2>
<h1><b>Low Altitude Weather Satellite (LAWS)</b></h1>
</bg>
</div>
<img src="download (1).jpg" style="margin-left:3em;position:absolute;top:18cm;bgcolor:#0000FF">
<div id="info"style="margin-left:20em;position:absolute;left:1cm;top:18cm">
<bg><h2><b>I.S.T.E <br /><small>presents</small></h2>
<h1><b>Low Altitude Weather Satellite (L.A.W.S)</b></h1>
</bg>
</div>
<marquee width="100%">GET WEATHER DETAILS</marquee>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="position:absolute;top:24cm">
<ul class="nav navbar-nav">
<li> <a href="index.html"><span class="glyphicon glyphicon-home" aria-hidden="true"></span> Home</a></li>
<li><a href="tech.html"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Technical Team</a></li>
<li class="active"><a href="code.html"><span class="glyphicon glyphicon-file" aria-hidden="true"></span> Code</a></li>
<li><a href="info.html"><span class="glyphicon glyphicon-stats" aria-hidden="true"></span> Information Data</a></li>
<li><a href="gallery.html"><span class="glyphicon glyphicon-picture" aria-hidden="true"></span> Gallery</a></li>
<li><a><span></span> </a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul></div>
<div style="margin-left:10em;padding-top:10px;position:absolute;top:26cm;left:-1cm%">
<h3>PHP script for Live Graph</h3>
<div class="bs-callout" style="background-color:#F2F2F2">
<xmp>
<html>
<script type="text/javascript">
window.onload = function () {
var dps = []; // dataPoints
var chart = new CanvasJS.Chart("chartContainer",{
title :{
text: "Live Random Data"
},
data: [{
type: "line",
dataPoints: dps
}]
});
var xVal = 0;
var yVal = 100;
var updateInterval = 100;
var dataLength = 500; // number of dataPoints visible at any point
var updateChart = function (count) {
count = count || 1;
// count is number of times loop runs to generate random dataPoints.
for (var j = 0; j < count; j++) {
var rawFile = new XMLHttpRequest();
rawFile.open("GET","y.txt" , false);
rawFile.onreadystatechange = function ()
{
if(rawFile.readyState === 4)
{
if(rawFile.status === 200 || rawFile.status == 0)
{
//var allText = rawFile.responseText;
var allText = rawFile.responseText.split(" ");
yVal = parseInt(allText[0]);
}
}
}
rawFile.send(null);
// yVal = yVal + Math.round(5 + Math.random() *(-5-5));
console.log(yVal);
dps.push({
x: xVal,
y: yVal
});
xVal++;
};
if (dps.length > dataLength)
{
dps.shift();
}
chart.render();
};
// generates first set of dataPoints
updateChart(dataLength);
// update chart after specified time.
setInterval(function(){updateChart()}, updateInterval);
}
</xmp>
</div>
</div>
<div class="btn-group" role="group" aria-label="..."style="margin-left:42em;margin-top:135em;position:absolute;left:-1cm%">
<a href="code_1.html"type="button" class="btn btn-default">1</a>
<a href="code_2.html" type="button" class="btn btn-default">2</a>
<a href="code_3.html" type="button" class="btn btn-default">3</a>
<a href="code_4.html" type="button" class="btn btn-default">4</a>
</div>
</body>
</html>