Uniwa eClass All Classes

Uniwa eClass display all classes in protfolio

  1. // ==UserScript==
  2. // @name Uniwa eClass All Classes
  3. // @description Uniwa eClass display all classes in protfolio
  4. // @author cckats
  5. // @include https://eclass.uniwa.gr/main/portfolio.php
  6. // @run-at document-body
  7. // @version 1.0
  8. // @namespace https://greasyfork.org/users/661487
  9. // ==/UserScript==
  10.  
  11.  
  12.  
  13. jQuery(document).ready(function() {
  14.  
  15. jQuery('#portfolio_lessons').DataTable({
  16. destroy: true,
  17. 'bLengthChange': false,
  18. 'iDisplayLength': 20,
  19. 'bSort' : false,
  20. 'fnDrawCallback': function( oSettings ) {
  21. $('#portfolio_lessons_filter label input').attr({
  22. class : 'form-control input-sm',
  23. placeholder : 'Αναζήτηση...'
  24. });
  25. $('#portfolio_lessons_filter label').prepend('<span class="sr-only">Αναζήτηση</span>')
  26. },
  27. 'dom': '<"all_courses">frtip',
  28. 'oLanguage': {
  29. 'sLengthMenu': 'Εμφάνισε _MENU_ αποτελέσματα',
  30. 'sZeroRecords': 'Δεν βρέθηκαν αποτελέσματα',
  31. 'sInfo': 'Εμφανίζονται _START_ έως _END_ από _TOTAL_ συνολικά αποτελέσματα',
  32. 'sInfoEmpty': 'Εμφανίζονται 0 έως 0 από 0 αποτελέσματα',
  33. 'sInfoFiltered': '',
  34. 'sInfoPostFix': '',
  35. 'sSearch': '',
  36. 'sUrl': '',
  37. 'oPaginate': {
  38. 'sFirst': '&laquo;',
  39. 'sPrevious': '&lsaquo;',
  40. 'sNext': '&rsaquo;',
  41. 'sLast': '&raquo;'
  42. }
  43. }
  44. });
  45. $('div.all_courses').html('<a class="btn btn-xs btn-default" href="https://eclass.uniwa.gr/main/my_courses.php">Όλα τα μαθήματα</a>');
  46. jQuery('.panel_title').click(function()
  47. {
  48. var mypanel = $(this).next();
  49. mypanel.slideToggle(100);
  50. if($(this).hasClass('active')) {
  51. $(this).removeClass('active');
  52. } else {
  53. $(this).addClass('active');
  54. }
  55. });var calendar = $("#bootstrapcalendar").calendar({
  56. tmpl_path: "/js/bootstrap-calendar-master/tmpls/",
  57. events_source: "/main/calendar_data.php",
  58. language: "el-GR",
  59. views: {year:{enable: 0}, week:{enable: 0}, day:{enable: 0}},
  60. onAfterViewLoad: function(view) {
  61. $("#current-month").text(this.getTitle());
  62. $(".btn-group button").removeClass("active");
  63. $("button[data-calendar-view='" + view + "']").addClass("active");
  64. }
  65. });
  66.  
  67. $(".btn-group button[data-calendar-nav]").each(function() {
  68. var $this = $(this);
  69. $this.click(function() {
  70. calendar.navigate($this.data("calendar-nav"));
  71. });
  72. });
  73.  
  74. $(".btn-group button[data-calendar-view]").each(function() {
  75. var $this = $(this);
  76. $this.click(function() {
  77. calendar.view($this.data("calendar-view"));
  78. });
  79. });});
  80. function show_month(day,month,year){
  81. $.get("calendar_data.php",{caltype:"small", day:day, month: month, year: year}, function(data){$("#smallcal").html(data);});
  82. }
  83.