Created
December 14, 2010 21:22
-
-
Save mavenlink/741119 to your computer and use it in GitHub Desktop.
javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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