Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added clear button

  • Loading branch information...
commit 5e604bc627c3df2a0776865a5c326f0c6aedb533 1 parent d8e19c2
@josedaniel authored
Showing with 21 additions and 3 deletions.
  1. +7 −1 index.php
  2. +14 −2 style.css
View
8 index.php
@@ -69,7 +69,7 @@
git add . &&
git commit -am "<input type="text" name="message" />" &&
git push
- <input type="button" value="Execute" class="go">
+ <input type="button" value="Execute" class="go" style="margin-left:20px;">
<input type="hidden" name="action" value="git" />
<input type="hidden" name="stage" value="true" />
<input type="hidden" name="push" value="true" />
@@ -77,6 +77,7 @@
</form>
</div>
<pre></pre>
+ <input type="button" value="Clear" class="clear" />
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
@@ -88,6 +89,11 @@
$.post('index.php',data,function(r){
$('pre').html(r);
});
+ });
+
+ $('.clear').click(function(e){
+ e.preventDefault();
+ $('pre').html('');
});
});
</script>
View
16 style.css
@@ -78,7 +78,20 @@ body{
.command{
font-family:monaco, courier, monospace;
- text-align:center;
+ width:98%;
+ float:left;
+ background-color:#333;
+ padding:1%;
+ margin-bottom:20px;
+}
+
+pre{
+ background-color:#333;
+ padding:10px 1% 10px 1%;
+ width:98%;
+ float:left;
+ color:#fff;
+ min-height:400px;
}
input[type="text"]{
@@ -101,7 +114,6 @@ input[type="button"]{
padding: 5px 10px 5px 10px;
height: 32px;
border-radius: 0.3em;
- margin-left:20px;
}
@media only screen and (min-width: 35em) {
Please sign in to comment.
Something went wrong with that request. Please try again.