|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | + {% include head_default_scix.html %} |
| 4 | + |
| 5 | + <body> |
| 6 | + {% include header_default_scix.html subtitle="" subpath="" %} |
| 7 | + |
| 8 | + <div class="page-content smart-container">{{ content }}</div> |
| 9 | + |
| 10 | + {% include footer_default_scix.html %} |
| 11 | + |
| 12 | + <div |
| 13 | + id="darkSwitch" |
| 14 | + class="darkmode-toggle" |
| 15 | + title="Turn on dark mode" |
| 16 | + ></div> |
| 17 | + <script src="/help/common/js/dark-mode-switch-scix.js"></script> |
| 18 | + </body> |
| 19 | + |
| 20 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> |
| 21 | + <script |
| 22 | + src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" |
| 23 | + integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" |
| 24 | + crossorigin="anonymous" |
| 25 | + ></script> |
| 26 | + |
| 27 | + <script> |
| 28 | + $(document).ready(function () { |
| 29 | + $('body').on('click', 'button[data-toggle="off-canvas"]', function () { |
| 30 | + $('.row-offcanvas').toggleClass('active'); |
| 31 | + }); |
| 32 | + }); |
| 33 | + </script> |
| 34 | + |
| 35 | + <!-- for sidebar --> |
| 36 | + <script> |
| 37 | + $(document).ready(function () { |
| 38 | + //ADD THE PROPER HIGHLIGHT |
| 39 | + try { |
| 40 | + var category = window.location.pathname.split('/')[2]; |
| 41 | + } catch (e) { |
| 42 | + console.error("couldn't parse category name"); |
| 43 | + } |
| 44 | + //this should fail without causing a problem if category can't be found |
| 45 | + if ($('.help-nav').find('div#' + category + '-items').length === 0) |
| 46 | + console.log('couldnt find accordion drawer for: ', category); |
| 47 | + $('.help-nav') |
| 48 | + .find('div#' + category + '-items') |
| 49 | + .addClass('in') |
| 50 | + //set the caret pointing down |
| 51 | + .parent() |
| 52 | + .find('.fa') |
| 53 | + .removeClass('fa-caret-right') |
| 54 | + .addClass('fa-caret-down'); |
| 55 | + |
| 56 | + //SET LISTENERS FOR CARET OPEN/CLOSED |
| 57 | + $('.help-nav .collapse') |
| 58 | + .on('show.bs.collapse', function () { |
| 59 | + $(this) |
| 60 | + .parent() |
| 61 | + .find('.fa') |
| 62 | + .removeClass('fa-caret-right') |
| 63 | + .addClass('fa-caret-down'); |
| 64 | + }) |
| 65 | + .on('hide.bs.collapse', function () { |
| 66 | + $(this) |
| 67 | + .parent() |
| 68 | + .find('.fa') |
| 69 | + .removeClass('fa-caret-down') |
| 70 | + .addClass('fa-caret-right'); |
| 71 | + }); |
| 72 | + }); |
| 73 | + </script> |
| 74 | + |
| 75 | + <script> |
| 76 | + (function (i, s, o, g, r, a, m) { |
| 77 | + i['GoogleAnalyticsObject'] = r; |
| 78 | + (i[r] = |
| 79 | + i[r] || |
| 80 | + function () { |
| 81 | + (i[r].q = i[r].q || []).push(arguments); |
| 82 | + }), |
| 83 | + (i[r].l = 1 * new Date()); |
| 84 | + (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]); |
| 85 | + a.async = 1; |
| 86 | + a.src = g; |
| 87 | + m.parentNode.insertBefore(a, m); |
| 88 | + })( |
| 89 | + window, |
| 90 | + document, |
| 91 | + 'script', |
| 92 | + '//www.google-analytics.com/analytics.js', |
| 93 | + 'ga' |
| 94 | + ); |
| 95 | + |
| 96 | + ga('create', 'UA-37369750-8', 'auto'); |
| 97 | + ga('send', 'pageview'); |
| 98 | + </script> |
| 99 | +</html> |
0 commit comments