done with new layout. Moved buttons inside message, to avoid problems with <a> containing another <a> (which is invalid).
This commit is contained in:
parent
47cab8596a
commit
98e3dfce37
460
frontend2.html
460
frontend2.html
|
@ -1,460 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
|
||||
integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
|
||||
crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
|
||||
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
|
||||
crossorigin="anonymous">
|
||||
<title>(2) asdf@asdf.com</title>
|
||||
<link rel="stylesheet" href="spinner.css">
|
||||
|
||||
<style>
|
||||
|
||||
html > body {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#my-address {
|
||||
margin-top: 0.5rem;
|
||||
margin-left: 1rem;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.my-address-block {
|
||||
background-color: #F8F9FA;
|
||||
padding: 0.5rem;
|
||||
white-space: nowrap;
|
||||
padding-left: 0;
|
||||
margin-left: 1rem;
|
||||
text-align: center;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.get-new-address-col {
|
||||
text-align: center;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.email-list-item {
|
||||
padding-left: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
font-size: 75%;
|
||||
color: #808080;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.copy-button:hover {
|
||||
color: #fff;
|
||||
background-color: #007BFF;
|
||||
}
|
||||
|
||||
header {
|
||||
/*background-color: #f9f9f9;*/
|
||||
padding-bottom: 1rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1; /* stick footer to the bottom */
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
#language-selection {
|
||||
width: 10rem;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding-top: 1rem;
|
||||
background-color: #eeeeee;
|
||||
}
|
||||
|
||||
.open-collapse-button {
|
||||
background-color: transparent;
|
||||
width: 3rem;
|
||||
}
|
||||
|
||||
.open-collapse-button > i {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
[aria-expanded="false"] .expand-button-closed {
|
||||
display: block;
|
||||
}
|
||||
|
||||
[aria-expanded="false"] .expand-button-opened {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[aria-expanded="true"] .expand-button-closed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[aria-expanded="true"] .expand-button-opened {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#new-content-avalable {
|
||||
/*display: none;*/
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.email-body {
|
||||
}
|
||||
|
||||
.alert-fixed {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
z-index: 9999;
|
||||
border-radius: 0px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#address-box-edit {
|
||||
margin: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<div id="new-content-avalable">
|
||||
<div class="alert alert-info alert-fixed" role="alert">
|
||||
<strong>New emails</strong> have arrived.
|
||||
|
||||
<button type="button" class="btn btn-outline-secondary" onclick="location.reload()">
|
||||
<i class="fas fa-sync"></i>
|
||||
Reload!</button>
|
||||
|
||||
</div>
|
||||
<!-- move the rest of the page a bit down show show all content -->
|
||||
<div style="height: 3rem"> </div>
|
||||
</div>
|
||||
|
||||
<header>
|
||||
|
||||
<div class="container">
|
||||
<p class="lead ">
|
||||
Your disposable mailbox is ready.
|
||||
</p>
|
||||
<div class="row" id="address-box-normal">
|
||||
|
||||
<div class="col my-address-block">
|
||||
<span id="my-address">
|
||||
user@domain.com
|
||||
</span> <button class="copy-button" data-clipboard-target="#my-address">
|
||||
Copy
|
||||
</button>
|
||||
</div>
|
||||
<div class="col get-new-address-col">
|
||||
<button type="button" class="btn btn-outline-dark"
|
||||
data-toggle="collapse" title="choose your own address"
|
||||
data-target=".change-address-toggle"
|
||||
aria-controls="address-box-normal address-box-edit" aria-expanded="false">
|
||||
<i class="fas fa-magic"></i> Change address
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<form class="collapse change-address-toggle" id="address-box-edit">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<p>
|
||||
<button type="button" class="btn btn-dark"><i class="fa fa-random"></i> Open random
|
||||
mailbox
|
||||
</button>
|
||||
</p>
|
||||
|
||||
or create your own address:
|
||||
<div class="form-row align-items-center">
|
||||
<div class="col-sm">
|
||||
<label class="sr-only" for="inlineFormInputName">Address</label>
|
||||
<input type="text" class="form-control" id="inlineFormInputName"
|
||||
placeholder="address"
|
||||
value="user123">
|
||||
</div>
|
||||
<div class="col-sm-auto my-1">
|
||||
<label class="sr-only" for="inlineFormInputGroupUsername">Domain</label>
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">@</div>
|
||||
</div>
|
||||
<select class="custom-select" id="inlineFormInputGroupUsername">
|
||||
<option selected>domain.com</option>
|
||||
<option value="3">asdf.com</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-auto my-1">
|
||||
<button type="submit" class="btn btn-primary">Open mailbox</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<div class="container">
|
||||
|
||||
<div id="email-list" class="list-group">
|
||||
|
||||
|
||||
<a class="list-group-item list-group-item-action email-list-item" data-toggle="collapse"
|
||||
href="#mail-box-1"
|
||||
role="button"
|
||||
aria-expanded="false" aria-controls="mail-box-1">
|
||||
|
||||
<div class="media">
|
||||
<button class="btn btn-white open-collapse-button">
|
||||
<i class="fas fa-caret-right expand-button-closed"></i>
|
||||
<i class="fas fa-caret-down expand-button-opened"></i>
|
||||
</button>
|
||||
|
||||
|
||||
<div class="media-body">
|
||||
<h6 class="list-group-item-heading">Myservice Inc, UK <span class="text-muted">newsletter@reply.asdf.com</span>
|
||||
<small class="float-right">Today</small>
|
||||
</h6>
|
||||
<p class="list-group-item-text text-truncate">
|
||||
Sagen Sie uns Ihre Meinung!
|
||||
|
||||
<span class="float-right primary">
|
||||
<button class="btn btn-outline-primary btn-sm">Download</button>
|
||||
<button class="btn btn-outline-danger btn-sm">Delete</button>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<div id="mail-box-1" role="tabpanel" aria-labelledby="headingCollapse1"
|
||||
class="card-collapse collapse"
|
||||
aria-expanded="true">
|
||||
<div class="card-body">
|
||||
<div class="card-block email-body">
|
||||
<p>Hi Joe</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis arcu erat, luctus
|
||||
vitae
|
||||
consectetur imperdiet, congue sit amet purus. Vivamus vel aliquet neque.
|
||||
Aenean
|
||||
sed luctus
|
||||
justo, at tempus risus. Cras quis tempus nunc, vitae imperdiet neque. Ut
|
||||
feugiat
|
||||
risus non
|
||||
volutpat fermentum. Aliquam consectetur mauris ut leo faucibus, eu varius
|
||||
tortor
|
||||
posuere.
|
||||
Morbi dictum nunc quam, blandit viverra mi auctor vitae. Donec ornare
|
||||
venenatis
|
||||
augue vel
|
||||
vulputate. Nunc porttitor magna felis, eu suscipit orci auctor varius.
|
||||
Pellentesque posuere
|
||||
dolor ex, eu eleifend odio bibendum a. Pellentesque a placerat dolor, vel
|
||||
ultricies odio.
|
||||
Nunc feugiat nibh ac vehicula semper. Quisque sit amet aliquet nisi. Curabitur
|
||||
vel
|
||||
nulla
|
||||
venenatis, accumsan dolor ut, vestibulum urna. Morbi congue elit facilisis,
|
||||
vehicula felis
|
||||
in, placerat erat.
|
||||
|
||||
<p>Regards,
|
||||
<br>jim</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- next email -->
|
||||
|
||||
<a class="list-group-item list-group-item-action email-list-item" data-toggle="collapse"
|
||||
href="#mail-box-2"
|
||||
role="button"
|
||||
aria-expanded="false" aria-controls="mail-box-1">
|
||||
|
||||
<div class="media">
|
||||
<button class="btn btn-white open-collapse-button">
|
||||
<i class="fas fa-caret-right expand-button-closed"></i>
|
||||
<i class="fas fa-caret-down expand-button-opened"></i>
|
||||
</button>
|
||||
|
||||
|
||||
<div class="media-body">
|
||||
<h6 class="list-group-item-heading">Myservice Inc, UK <span class="text-muted">newsletter@reply.asdf.com</span>
|
||||
<small class="float-right">Today</small>
|
||||
</h6>
|
||||
<p class="list-group-item-text text-truncate">
|
||||
Sagen Sie uns Ihre Meinung!
|
||||
|
||||
<span class="float-right primary">
|
||||
<button class="btn btn-outline-primary btn-sm">Download</button>
|
||||
<button class="btn btn-outline-danger btn-sm">Delete</button>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<div id="mail-box-2" role="tabpanel" aria-labelledby="headingCollapse1"
|
||||
class="card-collapse collapse"
|
||||
aria-expanded="true">
|
||||
<div class="card-body">
|
||||
<div class="card-block">
|
||||
<p>Hi Joe</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis arcu erat, luctus
|
||||
vitae
|
||||
consectetur imperdiet, congue sit amet purus. Vivamus vel aliquet neque.
|
||||
Aenean
|
||||
sed luctus
|
||||
justo, at tempus risus. Cras quis tempus nunc, vitae imperdiet neque. Ut
|
||||
feugiat
|
||||
risus non
|
||||
volutpat fermentum. Aliquam consectetur mauris ut leo faucibus, eu varius
|
||||
tortor
|
||||
posuere.
|
||||
Morbi dictum nunc quam, blandit viverra mi auctor vitae. Donec ornare
|
||||
venenatis
|
||||
augue vel
|
||||
vulputate. Nunc porttitor magna felis, eu suscipit orci auctor varius.
|
||||
Pellentesque posuere
|
||||
dolor ex, eu eleifend odio bibendum a. Pellentesque a placerat dolor, vel
|
||||
ultricies odio.
|
||||
Nunc feugiat nibh ac vehicula semper. Quisque sit amet aliquet nisi. Curabitur
|
||||
vel
|
||||
nulla
|
||||
venenatis, accumsan dolor ut, vestibulum urna. Morbi congue elit facilisis,
|
||||
vehicula felis
|
||||
in, placerat erat.
|
||||
|
||||
<p>Regards,
|
||||
<br>jim</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="empty-mailbox">
|
||||
<hr>
|
||||
<p>Emails will appear here automatically. </p>
|
||||
<div class="spinner">
|
||||
<div class="rect1"></div>
|
||||
<div class="rect2"></div>
|
||||
<div class="rect3"></div>
|
||||
<div class="rect4"></div>
|
||||
<div class="rect5"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
|
||||
|
||||
<select id="language-selection" class="custom-select" title="Language">
|
||||
<option selected>English</option>
|
||||
<option value="1">Deutsch</option>
|
||||
<option value="2">Two</option>
|
||||
<option value="3">Three</option>
|
||||
</select>
|
||||
|
||||
<br>
|
||||
<small class="text-justify quick-summary">
|
||||
This is a disposable mailbox service. Whoever knows your username, can read your emails.
|
||||
Emails will be deleted after 30 days.
|
||||
<a data-toggle="collapse" href="#about"
|
||||
aria-expanded="false"
|
||||
aria-controls="about">
|
||||
Show Details
|
||||
</a>
|
||||
</small>
|
||||
<div class="card card-body collapse" id="about" style="max-width: 40rem">
|
||||
|
||||
<p class="text-justify">This disposable mailbox keeps your main mailbox clean from spam.</p>
|
||||
|
||||
<p class="text-justify">Just choose an address and use it on websites you don't trust and
|
||||
don't
|
||||
want to use
|
||||
your
|
||||
main email address.
|
||||
Once you are done, you can just forget about the mailbox. All the spam stays here and does
|
||||
not
|
||||
fill up
|
||||
your
|
||||
main mailbox.
|
||||
</p>
|
||||
|
||||
<p class="text-justify">
|
||||
You select the address you want to use and received emails will be displayed
|
||||
automatically.
|
||||
There is not registration and no passwords. If you know the address, you can read the
|
||||
emails.
|
||||
<strong>Basically, all emails are public. So don't use it for sensitive data.</strong>
|
||||
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<small>Powered by
|
||||
<a
|
||||
href="https://github.com/synox/disposable-mailbox"><strong>synox/disposable-mailbox</strong></a>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
|
||||
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
|
||||
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"
|
||||
integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
|
||||
|
||||
<script>
|
||||
clipboard = new ClipboardJS('[data-clipboard-target]');
|
||||
$(function () {
|
||||
$('[data-tooltip="tooltip"]').tooltip()
|
||||
});
|
||||
|
||||
/** from https://github.com/twbs/bootstrap/blob/c11132351e3e434f6d4ed72e5a418eb692c6a319/assets/js/src/application.js */
|
||||
clipboard.on('success', function (e) {
|
||||
$(e.trigger)
|
||||
.attr('title', 'Copied!')
|
||||
.tooltip('_fixTitle')
|
||||
.tooltip('show')
|
||||
.attr('title', 'Copy to clipboard')
|
||||
.tooltip('_fixTitle');
|
||||
e.clearSelection();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -196,19 +196,6 @@ function niceDate($date) {
|
|||
<p class="list-group-item-text text-truncate" style="width: 75%">
|
||||
<?php echo filter_var($email->subject, FILTER_SANITIZE_SPECIAL_CHARS); ?>
|
||||
</p>
|
||||
<div class="float-right primary">
|
||||
<button class="btn btn-outline-primary btn-sm" download="true"
|
||||
type="button"
|
||||
onclick="window.location = '?action=download_email&download_email_id=<?php echo $safe_email_id; ?>&address=<?php echo $user->address ?>'">
|
||||
Download
|
||||
</button>
|
||||
<button class="btn btn-outline-danger btn-sm"
|
||||
type="button"
|
||||
onclick="window.location = '?action=delete_email&email_id=
|
||||
<?php echo $safe_email_id; ?>&address=
|
||||
<?php echo $user->address ?>'">Delete
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
@ -219,6 +206,20 @@ function niceDate($date) {
|
|||
aria-expanded="true">
|
||||
<div class="card-body">
|
||||
<div class="card-block email-body">
|
||||
<div class="float-right primary">
|
||||
<a class="btn btn-outline-primary btn-sm" download="true"
|
||||
role="button"
|
||||
href="<?php echo "?action=download_email&email_id=$safe_email_id&address=$user->address" ?>">
|
||||
Download
|
||||
</a>
|
||||
|
||||
<a class="btn btn-outline-danger btn-sm"
|
||||
role="button"
|
||||
href="<?php echo "?action=delete_email&email_id=$safe_email_id&address=$user->address" ?>">
|
||||
Delete
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$safeHtml = $purifier->purify($email->textHtml);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user