-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
51 lines (45 loc) · 1.2 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
<!DOCTYPE html>
<html>
<head>
<title>PSS Messaging Demo</title>
<link rel="stylesheet" href="assets/app.css">
</head>
<body>
<div id="app">
<h1>PSS Messaging Demo</h1>
<!-- input -->
<div class="send-message">
<h2>Send Message (Bee 1)</h2>
<div>
<label>Overlay Address Prefix</label>
<input v-model="overlayAddress"></input>
<label>Public Key</label>
<input v-model="publicKey"></input>
<label>Message</label>
<textarea v-model="messageText"></textarea>
<button v-on:click="sendMessage">Send</button>
</div>
</div>
<!-- output -->
<div class="receive-message">
<h2>Received Messages (Bee 2)</h2>
<div id="receieved-messages" v-for="message in messages" :key="messages.message">
<div class="message">
{{ message.message }}
</div>
</div>
</div>
<audio id="bzzAudioSend">
<source src="assets/bzz.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="bzzAudioReceive">
<source src="assets/bzzzzzz.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
</body>
<script src="./assets/axios.min.js"></script>
<script src="./assets/vue.js"></script>
<script src="./index.js"></script>
</html>