/
index.html
57 lines (49 loc) · 1.57 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>HackList</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="../js/index_form.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io.connect('http://localhost:1337');
socket.on('news', function (data) {
console.log(data);
socket.emit('buyer_interested', { my: 'data' });
});
</script>
</head>
<body>
<h2>HackList
<h3>A marketplace for your hacks.</h3>
</h2>
<form action="/submitHack" method="post" enctype="multipart/form-data">
<span>Title</span>
<input type="text" name="title"/>
<span>Are you a:</span>
<span>Hacker</span>
<input type="checkbox" name="role" value="hacker"/>
<span>Buyer</span>
<input type="checkbox" name="role" value="buyer"/>
<span>Email:</span>
<input type="text" name="email"/>
<span>Description: </span>
<input type="text" name="description"/>
<br/>
<span>Which APIs did you use?</span>
<div id="InputsWrapper">
<div>
<input type="text" name="apis[]" id="field_1" value="Text 1">
<a href="#" class="removeclass">×</a>
</div>
</div>
<button id="AddMoreButton">Add More</button>
<br/>
<span>Upload Image:</span>
<input type="file" name="hack_image"/>
<br/>
<span>Submit</span>
<input type="submit"/>
</form>
</body>
</html>