|
| 1 | +<h1>{{ page.data._verificationStatusIcon }} {{ page.title }} |
| 2 | + {% if page.title != page.data.path %}<br><small>({{ page.data.path }})</small>{% endif %} |
| 3 | +</h1> |
| 4 | + |
| 5 | +<ul> |
| 6 | + <li><a href="{{ site.github.repository_url }}/blob/master/{{ page.data.path }}">View this file on GitHub</a></li> |
| 7 | + <li>Last update: {{ page.data.timestamp }}</li> |
| 8 | + {% if page.data.attributes.PROBLEM %} |
| 9 | + <li>Problem: <a href="{{ page.data.attributes.PROBLEM }}">{{ page.data.attributes.PROBLEM }}</a></li> |
| 10 | + {% endif %} |
| 11 | + {% if page.data._pathExtension == "hpp" %}<li><a id="include-directive-anchor">Include: <code id="include-directive-code">#include "{{ page.data.path }}"</code></a></li>{% endif %} |
| 12 | + {% if page.data._isVerificationFailed %}<li>Link: <a href="{{ site.github.repository_url }}/actions">{{ page.data._verificationStatusIcon }} View error logs on GitHub Actions</a></li>{% endif %} |
| 13 | + {% for link in page.data.attributes.links %} |
| 14 | + {% if link != page.data.attributes.PROBLEM %} |
| 15 | + <li>Link: <a href="{{ link }}">{{ link }}</a></li> |
| 16 | + {% endif %} |
| 17 | + {% endfor %} |
| 18 | +</ul> |
| 19 | + |
| 20 | +{% if page.data._pathExtension == "hpp" %} |
| 21 | +<script defer type="text/javascript"> |
| 22 | + // make the include directive clickable |
| 23 | + (function() { |
| 24 | + const anchor = document.getElementById('include-directive-anchor'); |
| 25 | + const code = document.getElementById('include-directive-code'); |
| 26 | + anchor.addEventListener('click', function() { |
| 27 | + window.getSelection().selectAllChildren(code); |
| 28 | + document.execCommand("copy"); |
| 29 | + window.getSelection().removeAllRanges(); |
| 30 | + |
| 31 | + const textContent = code.textContent; |
| 32 | + code.textContent = "Copied!"; |
| 33 | + setTimeout(function() { |
| 34 | + code.textContent = textContent; |
| 35 | + }, 300); |
| 36 | + }); |
| 37 | + })(); |
| 38 | +</script> |
| 39 | +{% endif %} |
0 commit comments