jasonbrooks / centos / centos.org

Forked from centos/centos.org 5 years ago
Clone

Blame download/_site/altarch-mirrors.erb

545090

List of CentOS Mirrors providing AltArch

545090

545090
CentOS welcomes new mirror sites. If you are considering setting up a
545090
public mirror site for CentOS, please follow the mirror guidelines to make
545090
sure that your mirror is consistent with the other mirror sites.
545090

545090
545090
545090
<script type="text/javascript" src="/assets/js/jquery.csvToTable2.js"></script>
545090
<script type="text/javascript" src="/assets/js/jquery.tablesorter.min.js"></script>
545090
<link rel="stylesheet" type="text/css" href="/assets/csvtable-look.css">
545090
545090
<script>
545090
$('#CSVTable').CSVToTable('/download/full-altarchlist.csv', 
545090
    { 
545090
       startLine: 1,
545090
       //['Location', 'Region', 'Sponsor', 'HomePage', 'HTTP location', 'FTP Location', 'Rsync Location']
545090
       headers: [
545090
       'Location', 
545090
       'Region', 
545090
       {label:'Sponsor' , items:[2 , 3]}, 
545090
       {label:'HomePage' , hidden:true}, 
545090
       'HTTP location', 
545090
       'FTP Location', 
545090
       'Rsync Location'
545090
       ],
545090
       itemMerger: function(header , items) {
545090
          var outItem = [];
545090
          console.log(items);
545090
          for(var i in header.items){
545090
            var item = header.items[i];
545090
            outItem.push(items[item]);
545090
          }
545090
          if(header.label = 'Sponsor'){
545090
             console.log(outItem);
545090
             return '' + outItem[0] + '';
545090
          }else return outItem.join(' ');
545090
      },
545090
      preRenderItem: function(headerLabel , item) {
545090
        if(item == '') return '';
545090
        switch (headerLabel) {
545090
          case 'HTTP location':
545090
          case 'FTP Location':
545090
          case 'Rsync Location':
545090
              item = item.replace(/"/gi , '');
545090
              return '' + item + ''; 
545090
          default:
545090
              return item;
545090
        }
545090
      }
545090
    }
545090
).bind("loadComplete",function() { 
545090
  $('#CSVTable').find('TABLE').tablesorter({
545090
    widgets: ['zebra', 'filter'],
545090
    widgetOptions: {
545090
      uitheme: "bootstrap"
545090
    },
545090
    textExtraction: function(node) {  
545090
        // extract data from markup and return it  
545090
        return $(node).text();
545090
    } 
545090
  });
545090
545090
});;
545090
</script>
545090
545090
545090