Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/api/apidoc.html
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | <div> | ||||
{% endfor %} | {% endfor %} | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
<script> | <script> | ||||
swh.webapp.initPage('api'); | swh.webapp.initPage('api'); | ||||
swh.webapp.highlightCode(false); | swh.webapp.highlightCode(false); | ||||
// restore Web API links removed by code highlighting | |||||
setTimeout(function() { | |||||
$('.hljs-string').each(function(idx, element) { | |||||
var text = $(element).text(); | |||||
if (text.match(/^"http.*:\/\/.*/)) { | |||||
$(element).html('<a class="hljs-string" href=' + text + '>' + text + '</a>') | |||||
} | |||||
}); | |||||
}, 500); | |||||
</script> | </script> | ||||
{% endblock %} | {% endblock %} |