Skip to content

Instantly share code, notes, and snippets.

@the-frey
Created January 30, 2013 18:51
Show Gist options
  • Save the-frey/4675669 to your computer and use it in GitHub Desktop.
Save the-frey/4675669 to your computer and use it in GitHub Desktop.
Sort of a very rough prototype for the review fields in the app.
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script>
<style type="text/css">
textarea#text {
outline: none;
border:none;
float:left;
}
#submit {
clear: left;
}
#wrapper {
width:70%;
margin:0 auto;
}
</style>
<script type="text/javascript">
$(function(){
$("#submit").click(function(){
var cont = $('#text').val();
//alert(cont);
$("#content").append(cont);
});
});
</script>
</head>
<body>
<div id="wrapper">
<textarea id="text" name="content" placeholder="Type here..." cols="60" rows="5"></textarea>
<a id="submit" href="#">Submit &raquo;</a>
<div id="content"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment