jlinton / centos / centos.org

Forked from centos/centos.org 2 years ago
Clone
Blob Blame History Raw
<!DOCTYPE html>
<html lang="{{ page.lang | default: 'en' }}">

{% include head.html %}

<body style="font-family: Montserrat, sans-serif;">

  {% include header.html -%}

  <div class="centos-content container">
    {{ content }}
    <div id='table-container' class="table table-sm small"></div>
  </div>

  {% include footer.html -%}

  <script src="/assets/js/jquery.min.js"></script>
  <script src="/assets/bootstrap/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="/assets/js/jquery.csv.min.js"></script>
  <script type="text/javascript" src="/assets/js/jquery.dataTables.min.js"></script>
  <script type="text/javascript" src="/assets/js/dataTables.bootstrap.js"></script>
  <script type="text/javascript" src="/assets/js/csv_to_html_table.js"></script>

  <script type="text/javascript">
    function format_link(link){
      if (link)
        return "<a href='" + link + "' target='_blank'>" + link + "</a>";
      else
        return "";
    }

    CsvToHtmlTable.init({
      csv_path: '/download/full-mirrorlist.csv',
      element: 'table-container',
      allow_download: false,
      csv_options: {separator: ',', delimiter: '"'},
      datatables_options: {"paging": false},
      custom_formatting: [[3, format_link], [4, format_link], [6, format_link],],
    });
  </script>
</body>

</html>