forked from codex-academy/ThinkingAboutFixing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed all bugs forgot to commit after each fix
- Loading branch information
1 parent
7f84d80
commit 58843df
Showing
7 changed files
with
40 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
<h1>Add issue</h1> | ||
|
||
<form class="" action="/issues" method="post"> | ||
<form class="navbar-form" action="/issues" method="post"> | ||
<input type="hidden" name="id" value="{{issue.id}}"> | ||
|
||
<div class="row"> | ||
<div class="six columns"> | ||
<label for="heading">Headingg</label> | ||
<input type="text" name="heading" value = {{issue.heading}}> | ||
<input type="text" class="form-control" name="heading" value = {{issue.heading}}> | ||
<label for="description" >Description</label> | ||
<textarea name="description" class="u-full-width" id="desc">{{issue.description}}</textarea> | ||
<textarea name="description" class="u-full-width form-control" id="desc">{{issue.description}}</textarea> | ||
</div> | ||
<div class="six columns"> | ||
<div id="preview"> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
<input class="button-primary" type="submit" value="Submit"> | ||
<input class="button-success" type="submit" value="Submit"> | ||
|
||
</form> | ||
<script type="text/javascript"> | ||
var desc = document.getElementById('desc'); | ||
var preview = document.getElementById('preview'); | ||
desc.addEventListener('input', function(e){ | ||
preview.innerHTML = marked(desc.value); | ||
}); | ||
</script> | ||
</form> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
<h1>Edit issue</h1> | ||
|
||
<script type="text/javascript"> | ||
var desc = document.getElementById('desc'); | ||
var preview = document.getElementById('preview'); | ||
preview.innerHTML = marked(desc.value); | ||
desc.addEventListener('input', function(e){ | ||
preview.innerHTML = marked(desc.value); | ||
}); | ||
</script> | ||
|
||
<form class="" action="/issues/update/{{issue.id}}" method="post"> | ||
<form class="navbar-form" action="/issues/update/{{issue.id}}" method="post"> | ||
<input type="hidden" name="id" value="{{issue.id}}"> | ||
<div class="row"> | ||
<div class="six columns"> | ||
<label for="heading">Heading</label> | ||
<input type="text" name="heading" value = {{issue.heading}}> | ||
<input type="text" name="heading" class="form-control" value = {{issue.heading}}> | ||
<label for="description">Description</label> | ||
<textarea name="description" class="u-full-width" id= "desc">{{issue.description}}</textarea> | ||
<textarea name="description" class="u-full-width form-control" id="desc">{{issue.description}}</textarea> | ||
</div> | ||
<div class="six columns"> | ||
<div id="preview"> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
<input class="button-primary" type="submit" value="Submit"> | ||
<input class="button-success" type="submit" value="Submit"> | ||
|
||
</form> | ||
<script type="text/javascript"> | ||
var desc = document.getElementById('desc'); | ||
var preview = document.getElementById('preview'); | ||
//preview.innerHTML = marked(desc.value); | ||
desc.addEventListener('input', function(e){ | ||
preview.innerHTML = marked(desc.value); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters