<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<script src="http://mymaplist.com/js/vendor/TweenLite.min.js"></script>
<!-- This is a very simple parallax effect achieved by simple CSS 3 multiple backgrounds, made by http://twitter.com/msurguy -->
<div class="container">
<div class="row vertical-offset-100">
<div class="col-md-4 col-md-offset-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Please sign in</h3>
</div>
<div class="panel-body">
<form accept-charset="UTF-8" role="form">
<fieldset>
<div class="form-group">
<input class="form-control" placeholder="Type a Word" name="word" id="myWord" type="text">
</div>
<input class="btn btn-lg btn-success btn-block" id="defineMe" value="Define">
<!-- <input class="btn btn-lg btn-success btn-block" id="getSynonyms" value="Get Synonyms">
<input class="btn btn-lg btn-success btn-block" id="example" value="Use in a sentace">
<input class="btn btn-lg btn-success btn-block" id="rhyme" value="Rhymes With"> -->
</fieldset>
</form>
<div id="ajax">
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$('#defineMe').on('click', function (evt) {
var word = $('#myWord').val();
$.ajax({
'https://wordsapiv1.p.mashape.com/words/' + word + '/definitions'
type: 'GET', // The HTTP Method, can be GET POST PUT DELETE etc
data: {}, // Additional parameters here
dataType: 'json',
success: function(data) {
document.getElementById("ajax").innerHTML = data.source;
console.dir((data.source));
},
error: function(err) { alert(err); },
beforeSend: function(xhr) {
xhr.setRequestHeader("X-Mashape-Authorization","LxcLZrO9pPmshUE0TjvABcHVe0bKp1B1Ut6jsnakJSTKetux2T"); // Enter here your Mashape key
}
});
});
</script>
body{
background: url(http://mymaplist.com/img/parallax/back.png);
background-color: #444;
background: url(http://mymaplist.com/img/parallax/pinlayer2.png),url(http://mymaplist.com/img/parallax/pinlayer1.png),url(http://mymaplist.com/img/parallax/back.png);
}
.vertical-offset-100{
padding-top:100px;
}
$(document).ready(function(){
$(document).mousemove(function(e){
TweenLite.to($('body'),
.5,
{ css:
{
backgroundPosition: ""+ parseInt(event.pageX/8) + "px "+parseInt(event.pageY/'12')+"px, "+parseInt(event.pageX/'15')+"px "+parseInt(event.pageY/'15')+"px, "+parseInt(event.pageX/'30')+"px "+parseInt(event.pageY/'30')+"px"
}
});
});
});