shapecaptcha
Version:
91 lines (85 loc) • 3.91 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Demo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">
<link rel="stylesheet" href="dat-gui/dat.gui.css">
<style>
html, body {
font-family: 'Roboto', sans-serif;
}
canvas {
margin: 0;
position: absolute;
top: 0;
left: 0;
z-index: 99999;
}
select {
color: black;
}
#areYou {
display: none;
}
</style>
</head>
<body>
<div class="container" style="margin-top:30px;">
<div class="row">
<div class="col-md-offset-2 col-md-8">
<p class="lead">ShapeCaptcha Demo</p>
<p>ShapeCaptcha is yet another not-a-bot test. Please check out its <a href="https://github.com/serglider/ShapeCaptcha">Github repository</a>. This is a demo of ShapeCaptcha features. Change the option values in the form below and check "I'm a human being" checkbox. </p>
</div>
</div>
<div class="row" style="margin-top:30px;">
<div class="col-md-offset-2 col-md-5">
<p class="lead">Test form</p>
<form class="form-horizontal">
<div class="form-group">
<label for="inputEmail" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="inputEmail" value="mail@example.com" placeholder="Email">
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="inputPassword" value="Strong_Password:-)" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
<label>
<input id="trigger" type="checkbox"> I'm a human being <span id="areYou" class="text-danger">Are you?</span>
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button id="submitButton" type="submit" class="btn btn-primary" disabled="disabled">Submit</button>
</div>
</div>
</form>
</div>
<div id="guiContainer" class="col-md-3">
<p class="lead">Options setup</p>
</div>
</div>
<div class="row" style="margin-top:30px;">
<div id="foobar" class="col-md-offset-2 col-md-8" style="height: 500px; background: #ddd;">
<p class="lead">#foobar</p>
</div>
</div>
</div>
<script src="fontfaceobserver.standalone.js"></script>
<script src="dat-gui/dat.gui.min.js"></script>
<script src="shapecaptcha.js"></script>
<script src="app.js"></script>
</body>
</html>