Skip to content

Commit

Permalink
Added exam information ...
Browse files Browse the repository at this point in the history
Reduced teacher name.
Changed sign up student number.
  • Loading branch information
tuxitop committed Sep 10, 2015
1 parent b3ee006 commit 1fd13b8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# devel
* Added exam day
* Added exam hour
* Reduced teacher name size on the bar.
* Changed signed up student number.

#0.1.2 (10 Sep 2015)
* restyled and debuged the stylesheet.

#0.1.1 (9 Sep 2012)
* Added "about"
* Added weight option for courses

#0.1 (8 Sep 2015)
* Initial release
* Responsive design (Bootstrap, JQuery)
24 changes: 17 additions & 7 deletions khayyamJS.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Github: https://github.com/tuxitop/khayyamJS
// @namespace http://alimsvi.ir/
// @description changes the UI of the presented course list in the student portal of Khayyam university of Mashhad.
// @include http://stu.khayyam.ac.ir/strcss/ShowPresentedCourses.php
// @version 0.1.2
// @version 0.1.3
// @author Ali Mousavi
// @require https://code.jquery.com/jquery-1.10.2.js
// @require https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js
Expand Down Expand Up @@ -69,18 +69,24 @@ var Course = function(index, courseColArray) {
var re_field = /رشته (مهندسی )?(.*?) دوره/;
var re_degree = /<b>مقطع:<\/b> (.*?)<br>/g;
var re_bldg = /,ساختمان ?(\d)\)/g;
var re_exam = /امتحان روز:<\/b> ?(.*?) ?ساعت ?(\d+)/g;

this.specs = re_specs.exec(courseColArray[1])[1];
this.courseID = re_courseID.exec(courseColArray[1])[1];
this.field = re_field.exec(courseColArray[1])[2];
this.degree = re_degree.exec(courseColArray[1])[1];
this.examDay = "-";
this.examHour = "-";
if ( (examMatch = re_exam.exec(courseColArray[1])) !== null) {
this.examDay = examMatch[1];
this.examHour = examMatch[2];
}

var bldgMatch = re_bldg.exec(courseColArray[1]);
this.bldg = "-";
if (bldgMatch !== null) {
this.bldg = bldgMatch[1];
}
else {
this.bldg = "-";
}

this.fieldID = this.courseID.substr(0, 4);
this.sessionsArray = this.getSessionsArray();
Expand All @@ -102,14 +108,14 @@ Course.prototype.addToPage = function () {
'<div class="col-sm-2 col-xs-9 course-title">' +
'<i class="fa fa-book"></i> ' + this.title +
'</div>' +
'<div class="col-sm-3 col-xs-5 course-teacher">' +
'<div class="col-sm-2 col-xs-5 course-teacher">' +
'<i class="fa fa-user"></i> ' + this.teacher +
'</div>' +
'<div class="col-sm-3 col-xs-5 course-field">' +
'<i class="fa fa-graduation-cap"></i> ' + this.degree + " " + this.field +
'</div>' +
'<div class="col-sm-1 col-xs-4 course-vacancy">' +
'<i class="fa fa-user-plus"></i> ' + this.stVacancy +
'<div class="col-sm-2 col-xs-4 course-vacancy">' +
'<i class="fa fa-user-plus"></i> ' + this.stSigned + " از " + this.stCapacity +
'</div>' +
'<div class="col-sm-1 col-xs-4 course-gender">' +
this.getGender()[1] +
Expand Down Expand Up @@ -140,6 +146,10 @@ Course.prototype.addToPage = function () {
'<div class="col-xs-2 course-specs-heading">ساختمان:</div>' +
'<div class="col-xs-4 course-bldg">' + this.bldg + '</div>' +
'</div>' +
'<div class="row">' +
'<div class="col-xs-2 course-specs-heading">امتحان:</div>' +
'<div class="col-xs-4 course-exam">' + this.examDay + " ساعت " + this.examHour + '</div>' +
'</div>' +
'<div class="row">' +
'<div class="col-xs-2 course-specs-heading">گروه:</div>' +
'<div class="col-xs-10 course-group">' +
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ body {
}

.table-item {
height: 20px;
height: 25px;
border: 1px solid #DDD;
font-size: 12px;
}
Expand Down

0 comments on commit 1fd13b8

Please sign in to comment.