Skip to content
Snippets Groups Projects
Verified Commit 2a6d99db authored by Joshua Barlin's avatar Joshua Barlin
Browse files

Minor alterations half finished

parent a5e1eae3
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ html, body, #wrapper{ ...@@ -17,7 +17,7 @@ html, body, #wrapper{
} }
#input-textarea{ #input-textarea{
width: 90%; width: 90%;
height: 90%; height: 87%;
} }
#output-pre{ #output-pre{
height: 90%; height: 90%;
......
...@@ -34,8 +34,9 @@ ...@@ -34,8 +34,9 @@
<div id="wrapper"> <div id="wrapper">
<div id="input-div"> <div id="input-div">
<h2 id="input-header">Input</h2> <h2 id="input-header">Input</h2>
<div> <div id="input-buttons">
<i class="fas fa-bold"></i> <i class="fas fa-italic"></i> <i class="fas fa-underline"></i> <i class="fas fa-font"></i> <i class="fas fa-align-left"></i> <i class="fas fa-align-center"></i> <i class="fas fa-align-right"></i> <i class="fas fa-bold"></i> <i class="fas fa-italic"></i> <i class="fas fa-underline"></i> <i class="fas fa-font"></i>
<i class="fas fa-align-left"></i> <i class="fas fa-align-center"></i> <i class="fas fa-align-right"></i>
<i class="fas fa-h1"></i> <i class="fas fa-h2"></i> <i class="fas fa-h3"></i> <i class="fas fa-h1"></i> <i class="fas fa-h2"></i> <i class="fas fa-h3"></i>
</div> </div>
<textarea id="input-textarea" autocomplete="off" aria-labelledby="input-header"></textarea> <textarea id="input-textarea" autocomplete="off" aria-labelledby="input-header"></textarea>
......
...@@ -6,5 +6,10 @@ $(document).ready(function () { ...@@ -6,5 +6,10 @@ $(document).ready(function () {
$('#input-textarea').on('input propertychange', function () { $('#input-textarea').on('input propertychange', function () {
//console.log('Alteration!') //console.log('Alteration!')
$('#output-pre').text($('#input-textarea').val()); $('#output-pre').text($('#input-textarea').val());
}) });
var buttonList = ['bold', 'italic'];
var $inBtns = $('#input-buttons');
buttonList.forEach(item => {
});
}); });
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment