-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
56 lines (49 loc) · 2.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="cache-control" content="max-age=0"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT"/>
<meta http-equiv="pragma" content="no-cache"/>
<meta charset="utf-8">
<!-- Bootstrap CSS -->
<!-- <link rel="stylesheet" href="bootstrap.min.css">-->
<title>Take a WikiObject With JavaScript</title>
<!-- <link rel="stylesheet" href="main.css" type="text/css">-->
<link rel="stylesheet" type="text/css" href="main.css?<?php echo date('l jS \of F Y h:i:s A'); ?>"/>
</head>
<body>
<div class="container">
<div class="app" style="display: ">
<a href="#" id="start-camera" class="visible">Touch here to start the app.</a>
<video id="camera-stream"></video>
<img id="snap">
<p id="error-message"></p>
<div class="controls">
<a href="#" id="delete-photo" title="Delete Photo" class="disabled"><i class="material-icons">delete</i></a>
<a href="#" id="take-photo" title="Take Photo"><i class="material-icons">camera_alt</i></a>
<a href="#" id="download-photo" download="selfie.png" title="Save Photo" class="disabled"><i class="material-icons">file_download</i></a>
</div>
<!-- Hidden canvas element. Used for taking snapshot of video. -->
<canvas></canvas>
</div>
<div id="upload">
<form action="gen.php" method="post" enctype="multipart/form-data">
or upload an image:
<input type="file" name="fileToUpload" id="fileToUpload">
</form>
</div>
<div id="descr_div" style="text-align: center; ">
<input type="text" id="descr_input" placeholder="your cool description" name="descr_input" style="margin: 0 auto;
text-align: center"/><br/>
<button id="descr_submit">create cityobject</button>
</div>
</div>
<script src="jquery.min.js"></script>
<script src="main.js"></script>
<!--powered by https://jsfiddle.net/dannymarkov/cuumwch5/-->
<?php include_once "items.php"; ?>
</body>
</html>