From 96fa6d50e8ece942d708ef40c0ff3b9256758e2b Mon Sep 17 00:00:00 2001 From: freginold Date: Fri, 3 Mar 2017 15:54:45 -0500 Subject: [PATCH] v3.2.3- - changed new note div from relative to absolute to remove vertical shifting on note display - added "collapse all" & "expand all" buttons to options screen - centered new note input box - removed redundant CSS settings - correct punctuation typos on options screen --- _note.css | 31 +++++++++++++++-------- _note.js | 75 ++++++++++++++++++++++++++++++++++++++++++++++--------- note.hta | 22 ++++++++-------- 3 files changed, 94 insertions(+), 34 deletions(-) diff --git a/_note.css b/_note.css index 0e36602..50e420d 100644 --- a/_note.css +++ b/_note.css @@ -1,4 +1,4 @@ -html { +body { font-size: 1em; font-family: serif; color: black; @@ -13,7 +13,7 @@ input[name=screenPos] { button:hover, input[type=button]:hover, input[type=submit]:hover { - background: #dbdbdb; + background-color: #dbdbdb; } button[disabled]:hover { background: #efefef; @@ -149,6 +149,18 @@ button[disabled]:hover { .uline { text-decoration: underline; } +.delBox { + position: relative; + float: right; + width: 110px; + padding-bottom: 4px; +} +.optionsButtonBox { + position: relative; + float: right; + width: 170px; + padding-bottom: 4px; +} #noteList { display: block; margin: 5px; @@ -171,7 +183,12 @@ button[disabled]:hover { padding-bottom: 4px; } #newNoteDiv { - display: none; + position: absolute; + text-align: center; + top: 30%; +} +#newNoteForm { + position: relative; } #noteTitle { text-align: center; @@ -179,21 +196,13 @@ button[disabled]:hover { margin-top: 4px; } #inputDiv { - display: none; margin-left: 10px; } #optionsDiv { - display: none; font-family: serif; font-size: 1em; overflow: auto; } -#delBox { - position: relative; - float: right; - width: 110px; - padding-bottom: 4px; -} #aboutDiv { padding-left: 10px; margin-left: 25px; diff --git a/_note.js b/_note.js index 76414fe..dc913bc 100644 --- a/_note.js +++ b/_note.js @@ -5,6 +5,7 @@ var noteBody = document.getElementById('noteBody'); var inputDiv = document.getElementById('inputDiv'); var inputBox = document.getElementById('inputBox'); var newNoteDiv = document.getElementById('newNoteDiv'); +var newNoteForm = document.getElementById('newNoteForm'); var noteTitle = document.getElementById('noteTitle'); var optionsDiv = document.getElementById('optionsDiv'); var aboutDiv = document.getElementById('aboutDiv'); @@ -74,6 +75,8 @@ var moveButtonsHTMLMid = "' onclick='MoveUp(this)'>↑