| {{! |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| }} |
| {{! |
| |
| Scripts elements needed for pages in body element |
| |
| }} |
| |
| {{#if env.SITE_SEARCH_PROVIDER}} |
| {{> search-scripts}} |
| {{/if}} |
| <script src="{{{uiRootPath}}}/js/vendor/jquery.min.js"></script> |
| <script src="{{{uiRootPath}}}/js/vendor/what-input.min.js"></script> |
| <script src="{{{uiRootPath}}}/js/vendor/foundation.min.js"></script> |
| <script src="{{{uiRootPath}}}/js/vendor/jquery.colorbox-min.js"></script> |
| <script src="{{{uiRootPath}}}/js/netbeans.js"></script> |
| <script> |
| {{! // NOTE: Plain jquery stuff needs to be quoted in gsp pages }} |
| $(function(){ $(document).foundation(); }); |
| </script> |
| {{#if page.attributes.syntax }} |
| <script src="{{{uiRootPath}}}/js/vendor/highlight.min.js"></script> |
| <script> |
| document.addEventListener('DOMContentLoaded', (event) => { |
| document.querySelectorAll('pre code').forEach((el) => { |
| hljs.highlightElement(el); |
| }); |
| }); |
| </script> |
| {{/if}} |