-
Notifications
You must be signed in to change notification settings - Fork 4
/
new.html
421 lines (355 loc) · 15.3 KB
/
new.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="">
<title>new product</title>
<!-- Bootstrap core CSS -->
<link href="dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="carousel.css" rel="stylesheet">
<script src="https://www.gstatic.com/firebasejs/5.8.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.4/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.4/firebase-storage.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyByA7celafHSloxdOLA7_s-D097Ld10Jus",
authDomain: "firepack-66e50.firebaseapp.com",
databaseURL: "https://firepack-66e50.firebaseio.com",
projectId: "firepack-66e50",
storageBucket: "firepack-66e50.appspot.com",
messagingSenderId: "133886572018"
};
firebase.initializeApp(config);
var database = firebase.database();
</script>
<script type="text/javascript">
window.onload = function(){
document.getElementById('send').onclick = function(e){
var a=document.getElementById("pname").value;
var b=document.getElementById("thickness").value;
var c=document.getElementById("width").value;
var d=document.getElementById("length").value;
var e=document.getElementById("cost").value;
if(document.getElementById("priorcost").checked){
var f=document.getElementById("priorcost").value;
}
else{
var f=document.getElementById("priorsust").value;}
var g = document.getElementById("radius").value;
if(document.getElementById("photosensitive").checked){
var h = 1;}
else{
var h = 0;
}
if(document.getElementById("flammable").checked){
var i = 1;
}
else{
var i =0 ;
}
if(document.getElementById("brittle").checked){
var j = 1;
}
else{
var j =0;
}
var k = document.getElementById("Pressure").value;
var l = document.getElementById("weight").value;
var m = document.getElementById("templimit").value;
if(document.getElementById("odour").checked){
var n = 1
}
else{
var n=0;
}
if(document.getElementById("o2").checked){
var o = 1;
}
else{
var o =0;
}
if(document.getElementById("gas").checked){
var p = 1;
}
else{
var p = 0;
}
if(document.getElementById("moisture").checked){
var q = 1;
}
else{
var q= 0;
}
var r=document.getElementById("height").value;
var s=document.getElementById("launch").value;
if(confirm("Your given inputs are:\n\n"+"name of product:"+a+"\nthickness:"+b+"\nwidth:"+c+"\nlength:"+d+"\ncost:"+e+"\npriority:"+f+"\nradius:"+g+"\nphotosensitivity:"+h+"\nflammable:"+i+"\nbrittle:"+j+"\nPressure:"+k+"\nweight:"+l+"\ntemplimit:"+m+"\nodour:"+n+"\no2:"+o+"\ngas:"+p+"\nmoisture:"+q+"height"+r+"\n\n"+"Do you want to send this data or cancel it ?\n"))
{
firebase.database().ref().set({
name : a,
thickness: b,
width : c,
length : d,
cost: e,
priorcost: f,
radius : g,
photosensitive : h,
flammable : i,
brittle : j,
Pressure : k,
weight : l,
templimit : m,
odour : n,
o2 : o,
gas : p,
moisture : q,
height : r,
launch : s,
});
}
}
}
</script>
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#">CodeForVision</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
</ul>
<!-- <form class="form-inline mt-2 mt-md-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form> -->
</div>
</nav>
</header>
<main role="main">
<br><br>
<center><h1>NEW PRODUCT DETAILS</h1></center>
<div class="container">
<div class="row">
<div class="col-sm button2 bottom-border" style="text-align: right" onclick="areasolid()" id="t1" >
Solid
</div>
<!-- <div class="col-sm button2" onclick="areapowder()" id="t2">
Powder
</div> -->
</div>
</div>
<br><br>
<div class="container">
<div id="solid">
<div class="row">
<div class="col-sm">
<img src="img/firstsolid.jpg" alt="solid material pic" width="100%" />
<br>
<img src="img/secondsolid.jpg" alt="solid material pic" width="100%">
<br>
<img src="img/thirdsolid.jpg" alt="solid material pic" width="100%">
</div>
<div class="col-sm">
<form class="my-form" method="POST" action="Loadingpage.html">
<div class="input">
<label>Product:</label>
<br>
<select id="pname">
<option value="Biscuit">Biscuit</option>
<option value=""></option>
</select>
</div>
<label>Product Dimensions:</label><br>
<div class="row">
<div class="col-sm button3 bottom-border2" onclick="areacuboidal()" id="s1">cuboidal solid</div>
<div class="col-sm button3" onclick="areacircular()" id="s2">cylindrical solid</div>
</div>
<br><br>
<div id="cuboidal">
<div class="input-group mb-3">
<label>Height:</label>
<input type="text" name="height" id="height" class="form-control" >
<div class="input-group-append">
<span class="input-group-text" id="basic-addon1">cm</span>
</div>
</div>
<div class="input-group mb-3">
<label>Width:</label>
<input type="text" name="width" id="width" class="form-control" >
<div class="input-group-append">
<span class="input-group-text" id="basic-addon2">cm</span>
</div>
</div>
<div class="input-group mb-3">
<label>Length:</label>
<input type="text" name="length" id="length" class="form-control" >
<div class="input-group-append">
<span class="input-group-text" id="basic-addon3">cm</span>
</div>
</div>
</div>
<div id="circular">
<div class="input-group mb-3">
<label>Radius:</label>
<input type="text" name="radius" id="radius" class="form-control" >
<div class="input-group-append">
<span class="input-group-text" id="basic-addon3">cm</span>
</div>
</div>
<div class="input-group mb-3">
<label>Thickness:</label>
<input type="text" name="thickness" id="thickness" class="form-control" >
<div class="input-group-append">
<span class="input-group-text" id="basic-addon3">cm</span>
</div>
</div>
</div>
<label>Product properties:</label>
<div class="container">
<div class="button1" onclick="forphysical()" id="forphysical">
<h3>Physical</h3>
</div>
<div id="extendphysical">
<label>photosensitive:</label>
<input type="checkbox" name="photosensitive" id="photosensitive" value="photosensitive"> photosensitive<br><br>
<label>flammable:</label>
<input type="checkbox" name="flammable" id="flammable" value="flammable"> flammable<br><br>
<label>Shock resistance:</label>
<input type="checkbox" name="brittle" id="brittle" value="brittle"> Brittle nature<br>
<label>Pressure bearing capacity: </label>
<input type="text" name="Pressure" id="Pressure" class="form-control" placeholder="Pressure bearing capacity" ><br>
<label>weight of 1 biscuit</label>
<input type="text" name="weight" id="weight" class="form-control" placeholder="weight" ><br>
<label>Temperature limit:</label>
<input type="text" name="templimit" id="templimit" class="form-control" placeholder="Temperature" ><br>
</div>
</div>
<br>
<div class="container">
<div class="button1" onclick="forchemical()" id="forchemical">
<h3>Chemical</h3>
</div>
<div id="extendchemical">
<br><br>
<input type="checkbox" name="odour" id="odour" value="odour"> Odour<br><br>
<input type="checkbox" name="o2" id="o2" value="o2 "> reaction with o2<br><br>
<input type="checkbox" name="gas" id="gas" value="gas"> reaction with gas<br><br>
<input type="checkbox" name="preventmoisture" id="moisture" value="moistureprevention"> prevention from moisture<br><br>
</div>
</div>
<br>
<label>launch packet weight:</label>
<input type="text" name="launch" id="launch" class="form-control" placeholder="launch packet weight" ><br>
<br>
<div class="input-group">
<label>Cost of product</label>
<input type="text" name="cost" id="cost" class="form-control" aria-label="ruppee amount ">
<div class="input-group-append">
<span class="input-group-text">Rs</span>
</div>
</div>
<label>priority:</label>
<input type="radio" name="priority" id="priorcost" value="cost" checked> cost
<input type="radio" name="priority" id="priorsust" value="sustainability"> sustainability <br>
<br>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Extra info</span>
</div>
<textarea class="form-control" aria-label="With textarea"></textarea>
</div>
<br>
<input type="submit" class="button1" name="send" id="send" value="send" />
</form>
</div>
</div>
</div>
<!-- <div id="powder">
<h1>powder</h1>
<div class="row">
<div class="col-sm">
<img src="http://minimalistbaker.com/wp-content/uploads/2018/06/PERFECT-Vegan-Gluten-Free-Biscuits-8-Ingredients-1-Bowl-SO-fluffy-and-buttery-vegan-bread-recipe-biscuits-minimalistbaker-6.jpg" alt="solid material pic" width="100%" />
<br>
<img src="https://i.dailymail.co.uk/i/pix/2013/04/08/article-2305983-192ED14D000005DC-524_468x470.jpg" alt="solid material pic" width="100%">
<br>
<img src="https://totallybalmy.co.nz/wp-content/uploads/2016/07/Castile-soap-1.jpg" alt="solid material pic" width="100%">
</div>
<div class="col-sm">
<form class="my-form" method="POST">
<div class="input">
<label>Product:</label>
<input type="text" name="pname" id="pname" class="form-control" placeholder="Name of Product" aria-label="product name" >
</div>
<label>Product properties:</label>
<div class="container">
<div class="button1" onclick="forphysical()" id="forphysical">
<h3>Physical</h3>
</div>
<div id="extendphysical">
<label>photosensitive:</label>
<input type="checkbox" name="photosensitive" id="photosensitive" value="photosensitive"> photosensitive<br><br>
<label>flammable:</label>
<input type="checkbox" name="flammable" id="flammable" value="flammable"> flammable<br><br>
<label>Shock resistance:</label>
<input type="checkbox" name="brittle" id="brittle" value="brittle"> Brittle nature<br>
<label>Pressure bearing capacity: </label>
<input type="text" name="Pressure" id="Pressure" class="form-control" placeholder="Pressure bearing capacity" ><br>
<label>weight per cm2:</label>
<input type="text" name="weight" id="weight" class="form-control" placeholder="weight" ><br>
<label>Temperature limit:</label>
<input type="text" name="templimit" id="templimit" class="form-control" placeholder="Temperature" ><br>
</div>
</div>
<br>
<div class="container">
<div class="button1" onclick="forchemical()" id="forchemical">
<h3>Chemical</h3>
</div>
<div id="extendchemical">
<br><br>
<input type="checkbox" name="odour" id="odour" value="odour"> Odour<br><br>
<input type="checkbox" name="o2" id="o2" value="o2 "> reaction with o2<br><br>
<input type="checkbox" name="gas" id="gas" value="gas"> reaction with gas<br><br>
<input type="checkbox" name="preventmoisture" id="moisture" value="moistureprevention"> prevention from moisture<br><br>
</div>
</div>
<br>
<br>
<div class="input-group">
<label>Cost of product</label>
<input type="text" name="cost" id="cost" class="form-control" aria-label="ruppee amount ">
<div class="input-group-append">
<span class="input-group-text">Rs</span>
</div>
</div>
<label>priority:</label>
<input type="radio" name="priority" id="priorcost" value="cost" checked> cost
<input type="radio" name="priority" id="priorsust" value="sustainability"> sustainability <br>
<br>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Extra info</span>
</div>
<textarea class="form-control" aria-label="With textarea"></textarea>
</div>
<br>
<input type="submit" class="button1" name="send" id="send" value="send" />
</form>
</div>
</div>
</div> -->
</div>
</div><!--scripts-->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="new.js"></script>
</main>
</body>
</html>