-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
121 lines (99 loc) · 4.69 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
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
<!DOCTYPE html>
<!--
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
-->
<html>
<head>
<!-- bootstrap ui -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<meta charset="utf-8">
<meta name="description" content="FileTunnel">
<!-- mobile friendly -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- original -->
<!-- <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1"> -->
<meta itemprop="description" content="Client-side WebRTC code samples">
<meta itemprop="name" content="FileTunnel">
<meta name="mobile-web-app-capable" content="yes">
<meta id="theme-color" name="theme-color" content="#ffffff">
<base target="_blank">
<title>FileTunnel</title>
<link rel="icon" href="resources/favicon.ico">
<link href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet" type="text/css">
<!-- <link rel="stylesheet" href="../../../css/main.css">-->
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-dark bg-primary flex-row">
<a href class="navbar-brand d-flex w-50 mr-0">
<img src="resources/share_white.svg" width="30" height="30" class="d-inline-block align-top" alt="">
FileTunnel
</a>
<div class="navbar-collapse collapse w-100" id="navbarCenter">
<ul class="navbar-nav mx-sm-auto">
<li class="nav-item">
<a class="nav-link" id="roomLabel">Waiting for a Tunnel code</a>
</li>
</ul>
</div>
<div class="d-flex w-50">
<!-- placeholder to keep links centered-->
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link">Log in</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<section>
<div >
<div class="drop-zone" id="drop-zone">
Click to select/Drag and drop files here
</div>
<!-- invisible file input for manual file selection-->
<input id="fileInput" type="file" multiple="multiple" style="display:none;" />
<div class="row">
<div class="col text-center">
<button type="button" class="btn btn-primary" style="display:none;" id="sendFile">Send</button>
<button type="button" class="btn btn-primary" style="display:none;" id="abortButton">Abort</button>
<button type="button" class="btn btn-primary" style="display:none;" id="allowButton">Accept File</button>
</div>
</div>
</div>
<div id="status-text">
Choosing Tunnel...
</div>
<div class="progress" id="sendProgressContainer" style="display:none;">
<div class="label" id="sendProgressLabel">Send (0)</div>
<progress id="sendProgress" max="0" value="0"></progress>
</div>
<div class="progress" id="receiveProgressContainer" style="display:none;">
<div class="label" id="receiveProgressLabel">Receive (0)</div>
<progress id="receiveProgress" max="0" value="0"></progress>
</div>
<div id="byterate"></div>
<a id="download" style="display:none"></a>
</section>
<div id="snackbar">SNACKBAR TEXT</div>
</div>
<!-- Socket IO script will be set up automatically at runtime, no worries now -->
<script src="/socket.io/socket.io.js"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<!-- bootstrap ui -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<!-- our code -->
<script src="js/main.js"></script>
</body>
<footer class="footer py-3">
<div class="container">
<a href="https://github.com/jackz314" title="Github" id="viewSource">By Jack Zhang, Visit me on Github</a>
</div>
</footer>
</html>