165 lines
5.7 KiB
HTML
165 lines
5.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>Podcastindex.org - Signup</title>
|
|
|
|
<link rel="icon" type="image/svg+xml" href="favicon.svg">
|
|
<link rel="alternate icon" href="favicon.ico">
|
|
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#ff8a01">
|
|
|
|
<link href="style/bootstrap.min.css" rel="stylesheet">
|
|
<style>
|
|
.bd-placeholder-img {
|
|
font-size: 1.125rem;
|
|
text-anchor: middle;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.bd-placeholder-img-lg {
|
|
font-size: 3.5rem;
|
|
}
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
display: -ms-flexbox;
|
|
/*display: flex;*/
|
|
-ms-flex-align: center;
|
|
align-items: center;
|
|
/* padding-top: 40px; */
|
|
padding-bottom: 40px;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.form-signin {
|
|
width: 100%;
|
|
max-width: 330px;
|
|
padding: 15px;
|
|
margin: auto;
|
|
}
|
|
|
|
.form-signin .checkbox {
|
|
font-weight: 400;
|
|
}
|
|
|
|
.form-signin .form-control {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
height: auto;
|
|
padding: 10px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.form-signin .form-control:focus {
|
|
z-index: 2;
|
|
}
|
|
|
|
.form-signin input[type="email"] {
|
|
margin-bottom: -1px;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
}
|
|
|
|
.form-signin input[type="password"] {
|
|
margin-bottom: 10px;
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
span.userMessage {
|
|
font-weight: bold;
|
|
color: #900;
|
|
}
|
|
</style>
|
|
|
|
<script src="script/jquery-3.5.1.min.js"></script>
|
|
<script src="script/bootstrap.bundle.min.js"></script>
|
|
<script src="https://hcaptcha.com/1/api.js" async defer></script>
|
|
<script>
|
|
$(document).ready(function () {
|
|
|
|
//Perform login request when the button is pressed
|
|
$(document).on('click', '#btnSubmit', function () {
|
|
var emailAddress = $('input#inputEmail').val();
|
|
var password = $('input#inputPassword').val();
|
|
var hCR = $('textarea[name ="h-captcha-response"]').val();
|
|
var dataObject = {
|
|
email: emailAddress,
|
|
password: password,
|
|
captcha: hCR,
|
|
type: "json"
|
|
};
|
|
var request = $.ajax({
|
|
url: $('form.form-signin').attr('action'),
|
|
method: $('form.form-signin').attr('method'),
|
|
data: dataObject,
|
|
dataType: "json"
|
|
});
|
|
|
|
request.done(function( data ) {
|
|
$('span.userMessage').html( data.description );
|
|
|
|
if(data.status == "true") {
|
|
$('button#btnSubmit').remove();
|
|
$('input#inputEmail').remove();
|
|
$('a.loginForm').remove();
|
|
$('div.h-captcha').remove();
|
|
$('p.explain-create').html("Awesome! Go check your email for an activation message from us. Once you click that link to activate you'll be immediately logged in, and you'll receive another email with your initial API key/secret and your login password.");
|
|
} else {
|
|
|
|
}
|
|
|
|
//If the server tells us what page to navigate to, do it
|
|
if(typeof data.goloc != "undefined" && data.goloc != "") {
|
|
document.location = data.goloc;
|
|
}
|
|
});
|
|
|
|
request.fail(function( jqXHR, textStatus ) {
|
|
alert( "Request failed: " + textStatus );
|
|
});
|
|
|
|
return false;
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</head>
|
|
<body class="text-center">
|
|
|
|
<header>
|
|
<div class="navbar navbar-light" style="background-color: #f5f5f5">
|
|
<div class="container d-flex justify-content-between">
|
|
<a href="#" class="navbar-brand d-flex align-items-center">
|
|
<img src="https://podcastindex.org/images/pci_avatar.jpg" width="48" height="48">
|
|
<span class="ml-2"><strong>Podcastindex.org</strong></span>
|
|
</a>
|
|
<a href="/" class="loginForm">Log In</a>
|
|
</div>
|
|
</header>
|
|
<form class="form-signin mt-5" method="POST" action="/cgi/auth/signup">
|
|
<p class="explain-create">To start using the API in your app, just enter your email address below. We will send you
|
|
API keys and a strong password, and you'll be up and running immediately.</p>
|
|
<label for="inputEmail" class="sr-only">Email address</label>
|
|
<input type="email" id="inputEmail" name="email" class="form-control" placeholder="Email address" required autofocus>
|
|
<label for="inputPassword" class="sr-only password-hide d-none">Password</label>
|
|
<input type="password" id="inputPassword" name="password" class="form-control password-hide d-none" placeholder=" Password" required autofocus>
|
|
<br>
|
|
<div class="h-captcha" data-sitekey="fd8e019b-4ebb-4cfc-9ae1-1563c1bdd1a5"></div>
|
|
<br>
|
|
<button id="btnSubmit" class="btn btn-lg btn-primary btn-block" type="submit">Sign Up!</button>
|
|
<br>
|
|
<p><span class="userMessage error"></span></p>
|
|
</form>
|
|
</body>
|
|
</html>
|