| <!-- REMEMBER TO COPY ALL CHANGES TO download.html --> |
| |
| <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> |
| <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> |
| <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> |
| |
| <script> |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| |
| ga('create', 'UA-61232409-1', 'auto'); |
| ga('send', 'pageview'); |
| </script> |
| <script type="text/javascript"> |
| if (navigator.userAgent.match(/IEMobile\/10\.0/)) { |
| var msViewportStyle = document.createElement('style'); |
| msViewportStyle.appendChild( |
| document.createTextNode( |
| '@-ms-viewport{width:auto!important}' |
| ) |
| ); |
| document.querySelector('head').appendChild(msViewportStyle) |
| } |
| |
| const onScroll = function(){ |
| if(jQuery(document).scrollTop() > 110) { |
| jQuery('#header').addClass('shrink'); |
| }else { |
| jQuery('#header').removeClass('shrink'); |
| } |
| }; |
| |
| jQuery(window).scroll(onScroll); |
| jQuery(document).ready(onScroll); |
| </script> |
| |
| |
| <!-- Syntax highlight. --> |
| <script type="text/javascript"> |
| if(typeof SyntaxHighlighter != "undefined"){ |
| SyntaxHighlighter.all() |
| } |
| </script> |
| |
| |
| |
| <!-- Table export --> |
| <script type="text/javascript" src="https://cdn.rawgit.com/hhurz/tableExport.jquery.plugin/master/libs/FileSaver/FileSaver.min.js"></script> |
| <script type="text/javascript" src="https://cdn.rawgit.com/hhurz/tableExport.jquery.plugin/master/libs/jsPDF/jspdf.min.js"></script> |
| <script type="text/javascript" src="/js/jspdf.plugin.autotable.js"></script> |
| <script type="text/javascript" src="/js/tableExport.min.js"></script> |
| |
| <script type="text/javascript"> |
| $(document).ready(function() { |
| var expBtnDesc = [ |
| {cfg: {type:'json'}, text: 'JSON', icon:'ico-json.png?20191126'}, |
| {cfg: {type:'xml'}, text: 'XML', icon:'ico-xml.png?20191126'}, |
| {cfg: {type:'csv'}, text: 'CSV', icon:'ico-csv.png?20191126'}, |
| {cfg: {type:'excel'}, text: 'XLS', icon:'ico-xls.png?20191126'}, |
| {cfg: {type:'pdf', |
| jspdf: { |
| autotable: { |
| styles: { |
| overflow: 'linebreak', |
| fontSize: 14, |
| rowHeight: 19, |
| valign: 'top' |
| }, |
| headerStyles: { |
| rowHeight: 20, |
| fontSize: 16, |
| fillColor: 207, |
| textColor: 0, |
| valign: 'middle' |
| }, |
| bodyStyles: { |
| fillColor: 245 |
| }, |
| alternateRowStyles: { |
| fillColor: 255, |
| valign: 'middle' |
| } |
| } |
| } |
| }, |
| text: 'PDF', |
| icon:'ico-pdf.png?20191126'} |
| ]; |
| |
| $("table").each(function (ix, tbl) { |
| var insert = '' + |
| '<div class="btn-group btn-group-export" title="Export table content to selected format">\n' + |
| ' <button class="btn btn-default btn-export btn-sm dropdown-toggle fa fa-download" data-toggle="dropdown"> <i class="fa fa-caret-down"/></button>\n' + |
| ' <ul class="dropdown-menu dropdown-menu-right" role="menu">\n'; |
| |
| var id = this.id || 'table' + ix; |
| |
| this.id = id; |
| |
| $.each(expBtnDesc, function (ix, btn) { |
| btn.cfg.fileName = $(tbl).attr('name'); |
| |
| insert += " <li><a href='#' onclick='$(\"#" + id + "\").tableExport(" + JSON.stringify(btn.cfg) + ");'>" + |
| "<img src='/images/" + btn.icon + "' width='24px'/> " + btn.text + |
| "</a></li>\n"; |
| |
| if (ix < expBtnDesc.length - 1) |
| insert += ' <li class="divider"></li>\n'; |
| }); |
| |
| insert += ' </ul>\n'+ |
| '</div>\n'; |
| |
| $(this).find('thead').before(insert); |
| }); |
| |
| $("table#mc").find("button").hide(); |
| }); |
| </script> |
| |
| |
| |
| |
| <!-- Share news on social media--> |
| <script async src="https://static.addtoany.com/menu/page.js"></script> |
| |
| <!-- Github stats--> |
| <script async defer src="https://buttons.github.io/buttons.js"></script> |
| |
| <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> |