Skip to content

Commit

Permalink
Revert "new design for home page"
Browse files Browse the repository at this point in the history
This reverts commit e60dbda.
  • Loading branch information
rahulkapoor90 committed Dec 6, 2016
1 parent e60dbda commit f2b22c2
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 161 deletions.
78 changes: 78 additions & 0 deletions Extension for chrome/css/home/design.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css');
@import url('http://fonts.googleapis.com/css?family=Quicksand');

#navbar{
background-color:#0D304E;
left:0;right:0;
position:relative;
font-family:'Quicksand', sans-serif;
color:#fff;
-webkit-box-shadow: inset 0px -4px 13px 0px rgba rgb(13,48,78);
-moz-box-shadow: inset 0px -4px 13px 0px rgb(13,48,78);
box-shadow: inset 0px -4px 13px 0px rgb(13,48,78);
z-index:999;
}
#navbar a{
color:#fff;
text-decoration:none;
font-family:'Quicksand', sans-serif;
font-size:20px;
}
#parent_link {
text-align:center;
float:left;
margin-left:280px;
font-weight: normal;
font-size:18px !important;
font-family:'Quicksand', sans-serif !important;
}
#navbar ul{
list-style-type:none;
float:left;
padding:0;
margin:0;
margin-left:5px;
}
#navbar ul li{
display:inline-block;
padding-top:5px;
font-size:16px;
padding-left:10px;
padding-right:8px;
}
#navbar li ul{
display:none;
background-color:#ED8C1C;
border:#111 1px solid;
position:absolute;
padding-right:25px;
z-index:9991;
}
#navbar li:hover ul{
display:block;
}
#navbar li ul li{
display:block;
margin-top:-6px;
padding:7px;
font-size:16px;
}
#navwrap{
margin-top:16px;
}
.element_avatar.tiny img{
width:24px;
height:24px;
}
#enjin-bar .right{
position:fixed;
font-size: 24px;
font-family: 'Quicksand', sans-serif;
top: 30px;
z-index:99999;
}
#logo_main {
margin-top: 3px;
float:left;
margin-left:5px;
}
14 changes: 0 additions & 14 deletions Extension for chrome/css/home/home.css

This file was deleted.

198 changes: 99 additions & 99 deletions Extension for chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,102 +14,102 @@
"js": ["scripts/raven.min.js"],
"matches": ["*://vtop.vit.ac.in/*"],
"run_at": "document_start"
}, {
"js": ["scripts/captcha/captcha.js", "scripts/captcha/captcha.min.js", "scripts/jquery.min.js"],
"matches": ["*://vtop.vit.ac.in/parent/parent_login.asp", "*://vtop.vit.ac.in/student/stud_login.asp", "*://vtop.vit.ac.in/parent/", "*://vtop.vit.ac.in/student/", "*://27.251.102.132/parent/parent_login.asp", "*://27.251.102.132/student/stud_login.asp", "*://27.251.102.132/parent/", "*://27.251.102.132/student/", "*://academics.vit.ac.in/studpay", "*://academics.vit.ac.in/studpay/stud_login.asp"]
}, {
"css": ["css/font-awesome.css", "css/main.css"],
"js": ["scripts/jquery.min.js", "scripts/main.js"],
"matches": ["*://vtop.vit.ac.in/student/stud_login.asp", "*://vtop.vit.ac.in/student/"]
}, {
"css": ["css/vtop.css"],
"js": ["scripts/jquery.min.js", "scripts/final.js"],
"matches": ["*://vtop.vit.ac.in/"]
}, {
"all_frames": true,
"css": ["css/CoursePage/course_page.css"],
"js": ["scripts/jquery.min.js", "scripts/coursePage/course_page.js", "scripts/coursePage/content.js"],
"matches": ["*://vtop.vit.ac.in/student/coursepage_view.asp?*", "https://vtop.vit.ac.in/student/coursepage_plan_view.asp*"]
}, {
"all_frames": true,
"css": ["css/CoursePage/course_page.css", "css/bootstrap.min.css"],
"js": ["scripts/jquery.min.js", "scripts/marks/marks.js"],
"matches": ["*://vtop.vit.ac.in/student/marks.asp?*"]
}, {
"all_frames": true,
"css": ["css/course/course_view.css"],
"js": ["scripts/jquery.min.js", "scripts/coursePage/course_view.js", "scripts/coursePage/content.js"],
"matches": ["*://vtop.vit.ac.in/student/coursepage_view3.asp", "https://vtop.vit.ac.in/student/coursepage_plan_display.asp"]
}, {
"all_frames": true,
"css": ["css/home/spotlight.css"],
"js": ["scripts/home/stud_home.js"],
"matches": ["*://vtop.vit.ac.in/stud_home.asp"]
}, {
"all_frames": true,
"css": ["css/errorMsg/error_msg.css"],
"js": ["scripts/errorMsg/error_msg.js"],
"matches": ["*://vtop.vit.ac.in/student/errormsg_2.asp"]
}, {
"all_frames": true,
"css": ["css/timeTable/timetable.css"],
"js": ["scripts/jquery.min.js", "scripts/timeTable/jquery.base64.js", "scripts/timeTable/html2canvas.js", "scripts/timeTable/base64.js", "scripts/timeTable/sprintf.js", "scripts/timeTable/jspdf.js", "scripts/timeTable/timetable.js", "scripts/timeTable/tableExport.js"],
"matches": ["*://vtop.vit.ac.in/student/timetable_*.asp", "https://vtop.vit.ac.in/student/course_regular.asp?sem=*"]
}, {
"all_frames": true,
"css": ["css/course/course_view.css"],
"js": ["scripts/jquery.min.js", "scripts/attendance/attendance.js", "scripts/attendance/attend.js", "scripts/attendance/lastDate.js"],
"matches": ["*://vtop.vit.ac.in/*/attn_report.asp*", "*://vtop.vit.ac.in/student/attn_report_details.asp", "*://27.251.102.132/*/attn_report.asp*"]
}, {
"all_frames": true,
"css": ["css/misc.css"],
"matches": ["*://vtop.vit.ac.in/student/stud_riviera_home.asp", "*://vtop.vit.ac.in/student/stud_riviera_info.asp", "*://academics.vit.ac.in/student/stud_riviera_event_info.asp"]
}, {
"all_frames": true,
"css": ["css/menu/stud_menu.css", "css/materialize.min.css", "css/menu/custom_stud_menu.css"],
"js": ["scripts/jquery.min.js", "scripts/materialize.min.js", "scripts/menu/stud_menu.js", "scripts/menu/custom_stud_menu.js"],
"matches": ["*://vtop.vit.ac.in/student/stud_menu.asp"]
}, {
"all_frames": true,
"css": ["css/faculty/fac_profile.css"],
"js": ["scripts/jquery.min.js", "scripts/faculty/fac_profile.js", "scripts/faculty/fsearch.js"],
"matches": ["*://vtop.vit.ac.in/student/fac_profile.asp", "*://vtop.vit.ac.in/student/fac_profile.asp?*"]
}, {
"css": ["css/font-awesome.css", "css/forgot_pswd/forgot.css"],
"js": ["scripts/jquery.min.js", "scripts/captcha/captcha.js"],
"matches": ["*://vtop.vit.ac.in/student/forgot_pswd.asp"]
}, {
"all_frames": true,
"css": ["css/changePassword/changepswd.css"],
"matches": ["*://vtop.vit.ac.in/student/changepswd.asp"]
}, {
"css": ["css/materialize.min.css", "css/home/home.css"],
"js": ["scripts/jquery.min.js", "scripts/materialize.min.js", "scripts/jsondiffpatch-full.min.js", "scripts/home/diff.js", "scripts/home/home.js"],
"matches": ["*://vtop.vit.ac.in/student/home.asp"]
}, {
"all_frames": true,
"js": ["scripts/jquery.min.js", "scripts/home/msgNew.js"],
"matches": ["*://vtop.vit.ac.in/student/stud_home.asp"]
}],
"content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'",
"description": "Extension to enhance your browsing experience on VIT Academics Student Login.",
"homepage_url": "http://rahulkapoor.me/vitacademics-enhancement-suite/",
"icons": {
"128": "images/icon128.png",
"130": "images/icon130.png",
"16": "images/icon.png",
"19": "images/icon19.png",
"48": "images/icon48.png",
"550": "images/icon550.png"
},
"manifest_version": 2,
"name": "VITacademics Enhancement Suite",
"options_ui": {
"chrome_style": true,
"page": "options.html"
},
"permissions": ["activeTab", "https://ajax.googleapis.com/", "http://*/*", "storage", "webRequestBlocking", "webRequest", "downloads", "*://vtop.vit.ac.in/*", "notifications"],
"short_name": "VES",
"version": "1.3.1",
"web_accessible_resources": ["scripts/*", "https://storage.googleapis.com/code.getmdl.io/1.0.0/material.indigo-pink.min.css", "https://fonts.googleapis.com/icon?family=Material+Icons", "calc.js", "custom_stud_menu.html"]
}
},{
"js": [ "scripts/captcha/captcha.js", "scripts/captcha/captcha.min.js", "scripts/jquery.min.js" ],
"matches": [ "*://vtop.vit.ac.in/parent/parent_login.asp", "*://vtop.vit.ac.in/student/stud_login.asp", "*://vtop.vit.ac.in/parent/", "*://vtop.vit.ac.in/student/", "*://27.251.102.132/parent/parent_login.asp", "*://27.251.102.132/student/stud_login.asp", "*://27.251.102.132/parent/", "*://27.251.102.132/student/", "*://academics.vit.ac.in/studpay", "*://academics.vit.ac.in/studpay/stud_login.asp" ]
}, {
"css": [ "css/font-awesome.css", "css/main.css" ],
"js": [ "scripts/jquery.min.js", "scripts/main.js" ],
"matches": [ "*://vtop.vit.ac.in/student/stud_login.asp", "*://vtop.vit.ac.in/student/" ]
}, {
"css": [ "css/vtop.css" ],
"js": [ "scripts/jquery.min.js", "scripts/final.js" ],
"matches": [ "*://vtop.vit.ac.in/" ]
}, {
"all_frames": true,
"css": [ "css/CoursePage/course_page.css" ],
"js": [ "scripts/jquery.min.js", "scripts/coursePage/course_page.js", "scripts/coursePage/content.js" ],
"matches": [ "*://vtop.vit.ac.in/student/coursepage_view.asp?*", "https://vtop.vit.ac.in/student/coursepage_plan_view.asp*" ]
}, {
"all_frames": true,
"css": [ "css/CoursePage/course_page.css", "css/bootstrap.min.css" ],
"js": [ "scripts/jquery.min.js", "scripts/marks/marks.js" ],
"matches": [ "*://vtop.vit.ac.in/student/marks.asp?*" ]
}, {
"all_frames": true,
"css": [ "css/course/course_view.css" ],
"js": [ "scripts/jquery.min.js", "scripts/coursePage/course_view.js", "scripts/coursePage/content.js"],
"matches": [ "*://vtop.vit.ac.in/student/coursepage_view3.asp", "https://vtop.vit.ac.in/student/coursepage_plan_display.asp" ]
}, {
"all_frames": true,
"css": [ "css/home/spotlight.css" ],
"js": [ "scripts/home/stud_home.js" ],
"matches": [ "*://vtop.vit.ac.in/stud_home.asp" ]
}, {
"all_frames": true,
"css": [ "css/errorMsg/error_msg.css" ],
"js": [ "scripts/errorMsg/error_msg.js" ],
"matches": [ "*://vtop.vit.ac.in/student/errormsg_2.asp" ]
}, {
"all_frames": true,
"css": [ "css/timeTable/timetable.css" ],
"js": [ "scripts/jquery.min.js", "scripts/timeTable/jquery.base64.js", "scripts/timeTable/html2canvas.js", "scripts/timeTable/base64.js", "scripts/timeTable/sprintf.js", "scripts/timeTable/jspdf.js", "scripts/timeTable/timetable.js", "scripts/timeTable/tableExport.js" ],
"matches": [ "*://vtop.vit.ac.in/student/timetable_*.asp", "https://vtop.vit.ac.in/student/course_regular.asp?sem=*" ]
}, {
"all_frames": true,
"css": ["css/course/course_view.css"],
"js": [ "scripts/jquery.min.js", "scripts/attendance/attendance.js", "scripts/attendance/attend.js", "scripts/attendance/lastDate.js" ],
"matches": [ "*://vtop.vit.ac.in/*/attn_report.asp*", "*://vtop.vit.ac.in/student/attn_report_details.asp", "*://27.251.102.132/*/attn_report.asp*" ]
}, {
"all_frames": true,
"css": [ "css/misc.css" ],
"matches": [ "*://vtop.vit.ac.in/student/stud_riviera_home.asp", "*://vtop.vit.ac.in/student/stud_riviera_info.asp", "*://academics.vit.ac.in/student/stud_riviera_event_info.asp" ]
}, {
"all_frames": true,
"css": [ "css/menu/stud_menu.css","css/materialize.min.css","css/menu/custom_stud_menu.css"],
"js": [ "scripts/jquery.min.js","scripts/materialize.min.js","scripts/menu/stud_menu.js","scripts/menu/custom_stud_menu.js" ],
"matches": [ "*://vtop.vit.ac.in/student/stud_menu.asp" ]
}, {
"all_frames": true,
"css": [ "css/faculty/fac_profile.css" ],
"js": [ "scripts/jquery.min.js", "scripts/faculty/fac_profile.js", "scripts/faculty/fsearch.js" ],
"matches": [ "*://vtop.vit.ac.in/student/fac_profile.asp", "*://vtop.vit.ac.in/student/fac_profile.asp?*" ]
}, {
"css": [ "css/font-awesome.css", "css/forgot_pswd/forgot.css" ],
"js": [ "scripts/jquery.min.js", "scripts/captcha/captcha.js" ],
"matches": [ "*://vtop.vit.ac.in/student/forgot_pswd.asp" ]
}, {
"all_frames": true,
"css": [ "css/changePassword/changepswd.css" ],
"matches": [ "*://vtop.vit.ac.in/student/changepswd.asp" ]
}, {
"css": [ "css/home/design.css" ],
"js": [ "scripts/jquery.min.js", "scripts/jsondiffpatch-full.min.js", "scripts/home/diff.js", "scripts/home/design.js" ],
"matches": [ "*://vtop.vit.ac.in/student/home.asp" ]
}, {
"all_frames": true,
"js": [ "scripts/jquery.min.js", "scripts/home/msgNew.js" ],
"matches": [ "*://vtop.vit.ac.in/student/stud_home.asp" ]
} ],
"content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'",
"description": "Extension to enhance your browsing experience on VIT Academics Student Login.",
"homepage_url": "http://rahulkapoor.me/vitacademics-enhancement-suite/",
"icons": {
"128": "images/icon128.png",
"130": "images/icon130.png",
"16": "images/icon.png",
"19": "images/icon19.png",
"48": "images/icon48.png",
"550": "images/icon550.png"
},
"manifest_version": 2,
"name": "VITacademics Enhancement Suite",
"options_ui": {
"chrome_style": true,
"page": "options.html"
},
"permissions": [ "activeTab", "https://ajax.googleapis.com/", "http://*/*", "storage", "webRequestBlocking", "webRequest", "downloads", "*://vtop.vit.ac.in/*", "notifications" ],
"short_name": "VES",
"version": "1.3.1",
"web_accessible_resources": [ "scripts/*", "https://storage.googleapis.com/code.getmdl.io/1.0.0/material.indigo-pink.min.css", "https://fonts.googleapis.com/icon?family=Material+Icons", "calc.js","custom_stud_menu.html" ]
}
51 changes: 51 additions & 0 deletions Extension for chrome/scripts/home/design.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
var link = document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = 'https://res.cloudinary.com/dadfowug4/image/upload/v1479304973/favicon_rkdd0w.ico';
document.getElementsByTagName('head')[0].appendChild(link);

document.getElementsByTagName('table')[0].style.display = "none";
var nav = document.getElementsByTagName('table')[0];
var div1 = document.createElement("table");
div1.setAttribute("width", "100%");
div1.setAttribute("height", "15%");
div1.setAttribute("border", "0");
div1.setAttribute("id", "navbar");
div1.setAttribute("align", "center");
div1.setAttribute("cellpading", "0");
div1.setAttribute("cellspacing", "0");
div1.setAttribute("background", "https://vit.ac.in/images/banner_bg3.png");
var div2 = document.createElement("tbody");
var div4 = document.createElement("tr");
var div3 = document.createElement("td");
div3.setAttribute("width", "25%");
div3.setAttribute("align", "left");

var t4 = document.createElement("img");
t4.setAttribute("src", "https://res.cloudinary.com/dadfowug4/image/upload/v1479304837/logo_oqljl1.png");
t4.setAttribute("width", "190");
t4.setAttribute("height", "70");

var td = document.createElement("td");
td.setAttribute("align","center");
var br = document.createElement("br");

var font = document.createElement("font");
font.setAttribute("size","5");
font.setAttribute("color","#FFFFFF");
font.setAttribute("id","parent_link");

var b = document.createElement("p");
var t1 = document.createTextNode("Student Login | VIT University");
b.appendChild(t1);
font.appendChild(b);

td.appendChild(br);
td.appendChild(font);
div3.appendChild(t4);
div4.appendChild(div3);
div4.appendChild(td);
div2.appendChild(div4);
div1.appendChild(div2);

nav.parentElement.insertBefore(div1, nav);
Loading

0 comments on commit f2b22c2

Please sign in to comment.