xmlsitemap.xsl.js 756 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. (function($){
  2. $.tablesorter.addParser({
  3. // set a unique id
  4. id: 'changefreq',
  5. is: function(s) {
  6. return false;
  7. },
  8. format: function(s) {
  9. switch (s) {
  10. case 'always':
  11. return 0;
  12. case 'hourly':
  13. return 1;
  14. case 'daily':
  15. return 2;
  16. case 'weekly':
  17. return 3;
  18. case 'monthly':
  19. return 4;
  20. case 'yearly':
  21. return 5;
  22. default:
  23. return 6;
  24. }
  25. },
  26. type: 'numeric'
  27. });
  28. $(document).ready(function() {
  29. // Set some location variales.
  30. $('h1').append(': ' + location);
  31. document.title += ': ' + location;
  32. $('table').tablesorter({
  33. sortList: [[0,0]],
  34. headers: {
  35. 2: { sorter: 'changefreq' }
  36. },
  37. widgets: ['zebra']
  38. });
  39. });
  40. })(jQuery);