Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 1 | % use JSON::XS; |
2 | |||||
3 | % if (stash('test_port') && stash('search.apirequest')) { | ||||
4 | <pre class="query api"> | ||||
5 | <span>API Response for </span> | ||||
6 | <span style="font-size: 70%"><%= stash('search.apirequest') %></span> | ||||
7 | <code> | ||||
8 | <%= stash('search.apiresponse') =%> | ||||
9 | </code> | ||||
10 | </pre> | ||||
11 | %= javascript begin | ||||
12 | hljs.initHighlightingOnLoad(); | ||||
13 | $("pre.query.api").on("click", function () { | ||||
14 | $(this).toggleClass('active'); | ||||
15 | }); | ||||
16 | % end | ||||
17 | % }; |