diff options
-rw-r--r-- | css/codeq/hint.css | 4 | ||||
-rw-r--r-- | js/codeq/hint.js | 15 |
2 files changed, 12 insertions, 7 deletions
diff --git a/css/codeq/hint.css b/css/codeq/hint.css index 00614ca..676d1aa 100644 --- a/css/codeq/hint.css +++ b/css/codeq/hint.css @@ -17,3 +17,7 @@ div:not(.hint-static-group) > div.hint-static { margin-left: auto; margin-right: auto; } + +.hints > :first-child { + font-weight: bold; +}
\ No newline at end of file diff --git a/js/codeq/hint.js b/js/codeq/hint.js index 331c822..643a3a4 100644 --- a/js/codeq/hint.js +++ b/js/codeq/hint.js @@ -220,14 +220,15 @@ } } else { - jqContainer.append(jq); + jqContainer.prepend(jq); } codeq.tr.translateDom(jq); - // scroll into view if overflowing - deltaHeight = jqHints.height() - jqHintsContainer.height(); - if (deltaHeight > 0) { - jqHintsContainer.scrollTop(deltaHeight); - } + //// scroll into view if overflowing + //deltaHeight = jqHints.height() - jqHintsContainer.height(); + //if (deltaHeight > 0) { + // jqHintsContainer.scrollTop(deltaHeight); + //} + jqHintsContainer.scrollTop(0); }, jqContainer, jqButton; @@ -235,7 +236,7 @@ // hint sequence jqContainer = $('<div class="hint-static-group"></div>'); jqButton = $('<a class="hint-static-link" ' + ta(trButton) + '></a>'); - jqHints.append(jqContainer); + jqHints.prepend(jqContainer); jqContainer.append(jqButton); jqButton.on('click', function () { nextJqHint(); |