Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions prismbutton.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
(function(){
//Lets set the name space so that we don't overwrite global functions on other peoples web page.
var PrismButton = {}
// SHOW POP-OVER
PrismButton.showPopOver = function(divID) {
Expand All @@ -19,6 +17,10 @@ PrismButton.closePopOver = function(divID) {
document.getElementById(divID).style.display = "none";
}

;(function( document ){
//Lets set the name space so that we don't overwrite global functions on other peoples web page.


var prism = document.createElement("div");
prism.setAttribute("id", "prismbutton");
prism.innerHTML = "<a href=javascript:PrismButton.showPopOver('prismpop');><img src='http://prismbutton.s3-website-us-east-1.amazonaws.com/prismbutton.png'></a>";
Expand All @@ -44,4 +46,4 @@ PrismButton.closePopOver = function(divID) {
link.media = 'all';
head.appendChild(link);
}
})();
})(document);