Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
whackashoe committed Jan 11, 2015
2 parents ad2487b + 244355f commit be3d96d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 32 deletions.
9 changes: 4 additions & 5 deletions public/css/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ html, body {
padding:0px;
margin:0px;
background-color: #1D1F21;
overflow: hidden;
}

* {
Expand Down Expand Up @@ -52,7 +51,7 @@ button {

#editor {
background-color:transparent;
color:rgba(255, 255, 255, 0.5);
color:rgba(255, 255, 255, 0.0);
z-index: 100;
}

Expand Down Expand Up @@ -107,7 +106,7 @@ button {
color:#fff;
margin: 0;
padding: 0;
z-index: 5;
z-index: 500;
}

#linepadder {
Expand Down Expand Up @@ -144,7 +143,7 @@ button {
left:25%;
width:50%;
height: 40%;
z-index: 20;
z-index: 200;
color:#fff;
text-align: center;
}
Expand All @@ -157,4 +156,4 @@ button {

.hide {
display: none;
}
}
11 changes: 9 additions & 2 deletions public/js/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ $(document).ready(function() {
}
});

$("#editor").on('keydown', function() {
update_caret();
})
.on('click', function() {
update_caret();
});

$("#editor").bind('input propertychange', function() {
var decoded = $("#editor").val();

Expand Down Expand Up @@ -71,8 +78,8 @@ $(document).ready(function() {
var content_offset = $("#content").offset();

$("#caret").css({
left: (14 / 2) + content_offset.left + (caret_col * 14) + "px",
top: (14 / 2) + ln_offset.top + "px"
left: (14) + content_offset.left + 8 + (caret_col * 8) + "px",
top: (ln_offset.top - 2) + "px"
});

}
Expand Down
25 changes: 0 additions & 25 deletions readme.md

This file was deleted.

0 comments on commit be3d96d

Please sign in to comment.