Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhenrixon/1012644 to your computer and use it in GitHub Desktop.
Save mhenrixon/1012644 to your computer and use it in GitHub Desktop.
(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