Skip to content

Instantly share code, notes, and snippets.

@mavenlink
Created December 14, 2010 21:22
Show Gist options
  • Save mavenlink/741119 to your computer and use it in GitHub Desktop.
Save mavenlink/741119 to your computer and use it in GitHub Desktop.
javascript
$(function() {
$("head").append("<sc" + "ript src='" + ((document.location.protocol=="https:")?"https:":"http:") + "//snapabug.appspot.com/snapabug.js" + "' type='text/javascript'></sc" + "ript>");
(function() {
var snapABugLoader = setInterval(function() {
if (typeof SnapABug != "undefined") {
SnapABug.setButton("https://snapabug.appspot.com/statusImage?w=OUR KEY",35,90);
SnapABug.addButton('OUR KEY',"1","400px");
SnapABug.setButtonEffect('-4px');
clearInterval(snapABugLoader);
}
}, 50);
})();
});
// We also tried replacing the addButton call with init, as per your API doc, but that also appears to do a document.write.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment