diff options
| author | toufic ar <contact@toufy.me> | 2026-05-15 18:18:58 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-05-15 18:18:58 +0300 |
| commit | e05def62569358ff93691b03177abbaa9442bc53 (patch) | |
| tree | 04a057446f7b688ca1a52b0df0c1bcb399e1cf7d /web/templates/run.html | |
| parent | 4a17d522ced7e9b775570afd6ccbbbe225f957c3 (diff) | |
| download | makeshiftci-e05def62569358ff93691b03177abbaa9442bc53.tar.gz makeshiftci-e05def62569358ff93691b03177abbaa9442bc53.zip | |
repo branch support, a little webUI polishing
Diffstat (limited to 'web/templates/run.html')
| -rw-r--r-- | web/templates/run.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/templates/run.html b/web/templates/run.html index 77f9f90..92d7843 100644 --- a/web/templates/run.html +++ b/web/templates/run.html @@ -10,9 +10,12 @@ {% for n in run %} <script> - document.getElementById('stdout').textContent = {{ n|tojson }}; - var s = document.currentScript; - s.parentNode.removeChild(s); + if (document.getElementById('stdout').textContent !== {{ n|tojson }}) { + document.getElementById('stdout').textContent = {{ n|tojson }}; + window.scrollTo({ left: 0, top: document.body.scrollHeight, behavior: "smooth" }); + } + var s = document.currentScript; + s.parentNode.removeChild(s); </script> {% endfor %} {% endblock %} |
