Forked from ZenCocoon/Async GetSatisfaction Feedback Widget
Created
June 7, 2011 16:50
-
-
Save mhenrixon/1012644 to your computer and use it in GitHub Desktop.
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() { | |
var gs = document.createElement('script'), gsc = document.createElement('div'), interval; | |
gs.type = 'text/javascript'; gs.async = true; gsc.id = 'getsatisfaction'; | |
gs.src = document.location.protocol + '//s3.amazonaws.com/getsatisfaction.com/javascripts/feedback-v2.js'; | |
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gs); | |
(document.getElementsByTagName('body')[0]).appendChild(gsc); | |
interval = setInterval(function() { | |
if (window.GSFN !== undefined) { | |
new GSFN.feedback_widget({ | |
display: "overlay", | |
company: "xxx", | |
placement: "bottom", | |
color: "#222", | |
style: "idea", | |
container: "getsatisfaction" | |
}); | |
clearInterval(interval); | |
} | |
}, 10); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment