Skip to content

Commit

Permalink
layout improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ddmitov committed Sep 28, 2023
1 parent 518a0fa commit efa276c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions epigraphista/javascript/layout_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
// Epigraphista is licensed under the terms of GNU GPL version 3.
// Dimitar D. Mitov, 2015 - 2018, 2023.

function addTextAreaElement (id, placeholderText) {
function addTextAreaElement (id, description) {
const textElementContents = '' +
'<div class="input-group flex-nowrap">' +
'<textarea rows="1"' +
' id="' + id + '"' +
' title="' + description + '"' +
' placeholder="' + description + '"' +
' class="form-control"' +
' spellcheck="false"' +
' placeholder="' + placeholderText + '"></textarea>' +
' spellcheck="false"></textarea>' +
'<input type="button"' +
' value="X"' +
' title="Remove"' +
Expand Down
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<textarea
rows="1"
id="title"
title="Title"
placeholder="Title"
spellcheck="false"
class="form-control"></textarea>
Expand All @@ -56,6 +57,7 @@
<textarea
rows="1"
id="filename"
title="Filename"
placeholder="Filename"
spellcheck="false"
class="form-control"></textarea>
Expand All @@ -69,6 +71,7 @@
<textarea
rows="1"
id="inscription"
title="Inscription Text"
placeholder="Inscription Text"
spellcheck="false"
class="form-control"
Expand Down

0 comments on commit efa276c

Please sign in to comment.