mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-31 02:19:09 -04:00
rearranged onionshare_gui files, made it work better with packaging
This commit is contained in:
parent
33cd3ba0ea
commit
3deab0dc40
9 changed files with 40 additions and 20 deletions
17
onionshare_gui/html/index.html
Normal file
17
onionshare_gui/html/index.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1><span class="skull">☠</span> <span id="basename">...</span></h1>
|
||||
<div id="url-wrapper">
|
||||
<div id="give-this-url">Give this URL to the person you're sending the file to:</div>
|
||||
<div id="url"></div>
|
||||
</div>
|
||||
<div id="output">...</div>
|
||||
|
||||
<script src="jquery-1.11.1.min.js"></script>
|
||||
<script src="onionshare.js"></script>
|
||||
</body>
|
||||
</html>
|
4
onionshare_gui/html/jquery-1.11.1.min.js
vendored
Normal file
4
onionshare_gui/html/jquery-1.11.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
13
onionshare_gui/html/onionshare.js
Normal file
13
onionshare_gui/html/onionshare.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
function send(msg) {
|
||||
document.title = "null";
|
||||
document.title = msg;
|
||||
}
|
||||
|
||||
function set_basename(basename) {
|
||||
$('#basename').html(basename);
|
||||
}
|
||||
|
||||
function set_strings(strings) {
|
||||
strings = JSON.parse(strings)
|
||||
$('#give-this-url').html(strings['give_this_url'])
|
||||
}
|
42
onionshare_gui/html/style.css
Normal file
42
onionshare_gui/html/style.css
Normal file
|
@ -0,0 +1,42 @@
|
|||
body {
|
||||
background-color: #222222;
|
||||
color: #aaffaa;
|
||||
font-family: monospace;
|
||||
width: 400px;
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
}
|
||||
h1 {
|
||||
background-color: #FFC4D5;
|
||||
color: #000000;
|
||||
text-align: center;
|
||||
font-size: 30px;
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
h1 .skull {
|
||||
font-size: 40px;
|
||||
font-weight: bold;
|
||||
color: #FF0048;
|
||||
}
|
||||
#url-wrapper {
|
||||
padding: 10px;
|
||||
background-color: #ffffff;
|
||||
display: none;
|
||||
}
|
||||
#give-this-url {
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
font-family: sans-serif;
|
||||
color: #666666;
|
||||
}
|
||||
#url {
|
||||
word-wrap: break-word;
|
||||
font-size: 30px;
|
||||
color: #000000;
|
||||
}
|
||||
#output {
|
||||
padding: 10px;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue