Skip to content

Commit

Permalink
changed like button url and minor design changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulkapoor90 committed Dec 3, 2016
1 parent b97b883 commit 3424ee9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 60 deletions.
2 changes: 1 addition & 1 deletion Extension for Firefox/scripts/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var notify1 = function(data){
"title" : "Marks Change Notification",
"type" : "basic",
"iconUrl" : chrome.extension.getURL('images/github-logo.png'),
"message" : "Following marks have been changed.",
"message" : "Following marks have been changed."
};
chrome.notifications.create(options);
}
Expand Down
Binary file modified Extension for chrome.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion Extension for chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@
},
"permissions": [ "activeTab", "https://ajax.googleapis.com/", "http://*/*", "storage", "webRequestBlocking", "webRequest", "downloads", "*://vtop.vit.ac.in/*", "notifications" ],
"short_name": "VES",
"version": "1.1.8",
"version": "1.2.0",
"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" ]
}
2 changes: 1 addition & 1 deletion Extension for chrome/scripts/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var notify1 = function(data){
"title" : "Marks Change Notification",
"type" : "basic",
"iconUrl" : chrome.extension.getURL('images/github-logo.png'),
"message" : "Following marks have been changed.",
"message" : "Following marks have been changed."
};
chrome.notifications.create(options);
}
Expand Down
63 changes: 6 additions & 57 deletions Extension for chrome/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,10 @@ document.getElementsByTagName('head')[0].appendChild(link);
var note = document.getElementsByName('stud_login')[0];
var par = document.createElement("div");

var hooknotesDiv = document.createElement("div");

var tag = document.createElement("a");
var tag1 = document.createElement("a");
var tag2 = document.createElement("a");
var tag3 = document.createElement("a");
var devFBTag = document.createElement("a");
var devTWTag = document.createElement("a");
var hooknotesTag = document.createElement("a");

var icon = document.createElement("i");
icon.setAttribute("class", "fa fa-twitter");
Expand All @@ -283,74 +278,36 @@ icon1.setAttribute("class", "fa fa-facebook");
icon1.setAttribute("aria-hidden", "true");

var t1 = document.createTextNode(" Hey! if this extension helps you please share it on facebook and help other VITians.");
var hooknotesText = document.createTextNode(" Exam tomorrow? Need class notes? Go to ");
var hooknotesLinkText = document.createTextNode("hooknotes");

var t2 = document.createTextNode("Click here");
var t4 = document.createTextNode("Made with ♥ for VITians by ");
var t5 = document.createTextNode("Rahul Kapoor ");
var t4 = document.createTextNode("Made with ♥ for VITians. ");
var t5 = document.createTextNode("Credits/Developers");
var t3 = document.createTextNode(" Any feedback? ");
var br = document.createElement("br");
var credit = document.createElement("p");
par.setAttribute("class", "info-msg");
par.appendChild(t1);

hooknotesDiv.appendChild(hooknotesText);

credit.appendChild(t4);
tag.setAttribute("href", "http://goo.gl/forms/QI8gPMfKML");
tag.setAttribute("target", "_blank");
tag.setAttribute("id", "rahultag");
tag1.setAttribute("href", "http://github.com/rahulkapoor90");
tag1.setAttribute("target", "_blank");
tag1.setAttribute("href", "https://github.com/rahulkapoor90/VITacademics-Enhancement-Suite/graphs/contributors");
tag1.setAttribute("target", "_blank");
tag1.setAttribute("id", "rahultag");
tag2.setAttribute("href", "https://twitter.com/iamrahulkapoor");
tag2.setAttribute("target", "_blank");
tag3.setAttribute("href", "https://facebook.com/rahulkapoor99");
tag3.setAttribute("target", "_blank");
hooknotesTag.setAttribute("href", "http://beta.hooknotes.com");
hooknotesTag.setAttribute("target", "_blank");
hooknotesTag.setAttribute("id", "rahultag2");
var h3Tag = document.createElement('h3');
h3Tag.appendChild(hooknotesText);
hooknotesTag.innerHTML = "hooknotes";
h3Tag.appendChild(hooknotesTag);
var textS = document.createTextNode(' & ');

var devLink = document.createElement('a');
devLink.setAttribute('id', "rahultag");
devLink.setAttribute('href', "https://github.com/hvarday");
devLink.setAttribute("target", "_blank");
devLink.innerText=("Harshal Varday ");

var iconTW = document.createElement("i");
iconTW.setAttribute("class", "fa fa-twitter");
iconTW.setAttribute("aria-hidden", "true");

var iconFB = document.createElement("i");
iconFB.setAttribute("class", "fa fa-facebook");
iconFB.setAttribute("aria-hidden", "true");

devTWTag.setAttribute("href", "https://twitter.com/HVarday");
devTWTag.setAttribute("target", "_blank");
devTWTag.appendChild(iconTW);

devFBTag.setAttribute("href", "https://facebook.com/hvarday");
devFBTag.setAttribute("target", "_blank");
devFBTag.appendChild(iconFB);


par.appendChild(t3);
tag.appendChild(t2);
tag1.appendChild(t5);
tag2.appendChild(icon);
tag3.appendChild(icon1);
/*<div class="fb-like" data-href="http://rahulkapoor.me/vitacademics-enhancement-suite/" data-layout="button_count" data-action="like" data-size="small" data-show-faces="false" data-share="true">
</div>*/
var linebrk = document.createElement("br");
var linebrk1 = document.createElement("br");
var fb = document.createElement("div");
fb.setAttribute("class","fb-like");
fb.setAttribute("data-href","http://rahulkapoor.me/vitacademics-enhancement-suite/");
fb.setAttribute("data-href","https://www.facebook.com/VITAcademicsEnhancementSuite/");
fb.setAttribute("data-layout","button_count");
fb.setAttribute("data-size","small");
fb.setAttribute("data-action","like");
Expand All @@ -365,18 +322,10 @@ var hrt = document.createTextNode("Share");
fbhr.appendChild(hrt);

par.appendChild(tag);
hooknotesDiv.appendChild(h3Tag);
par.appendChild(linebrk);
par.appendChild(linebrk1);
par.appendChild(fb);
credit.appendChild(tag1);
credit.appendChild(tag2);
credit.appendChild(tag3);
credit.appendChild(textS);
credit.appendChild(devLink);
credit.appendChild(devFBTag);
credit.appendChild(devTWTag);
note.parentElement.appendChild(hooknotesDiv);
note.parentElement.appendChild(par);

var credits = document.getElementsByClassName('info-msg')[0];
Expand Down

0 comments on commit 3424ee9

Please sign in to comment.