Created
June 7, 2023 05:54
-
-
Save dylantack/91db7d95bc510e46c58f9b5a3943b44b 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
const loadQualtricsWidgetScript = () => { | |
const tag = document.createElement('script'); | |
tag.type = 'text/javascript'; | |
tag.id = 'qualtrics-script'; | |
tag.async = false; | |
tag.innerHTML = '(function(){var g=function(e,h,f,g){ this.get=function(a){for(var a=a+"=",c=document.cookie.split(";"),b=0,e=c.length;b<e;b++){for(var d=c[b];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null};this.set=function(a,c){var b="",b=new Date;b.setTime(b.getTime()+6048E5);b="; expires="+b.toGMTString();document.cookie=a+"="+c+b+"; path=/; "};this.check=function(){var a=this.get(f);if(a)a=a.split(":");else if(100!=e)"v"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(":"));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case "v":return!1;case "r":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(":")),!c}return!0};this.go=function(){if(this.check()){var a=document.createElement("script");a.type="text/javascript";a.src=g;document.body&&document.body.appendChild(a)}};this.start=function(){var t=this;"complete"!==document.readyState?window.addEventListener?window.addEventListener("load",function(){t.go()},!1):window.attachEvent&&window.attachEvent("onload",function(){t.go()}):t.go()};};try{(new g(100,"r","QSI_S_ZN_b2b6Wn008pBGKWN","https://znb2b6wn008pbgkwn-autodeskfeedback.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_b2b6Wn008pBGKWN")).start()}catch(i){}})();'; | |
document.getElementsByTagName('body')[0].appendChild(tag); | |
} | |
var loadDiv = function (id) { | |
var div = document.createElement('div'); | |
div.id = id; | |
document.getElementsByTagName('body')[0].appendChild(div); | |
}; | |
loadQualtricsWidgetScript(); | |
loadDiv('ZN_b2b6Wn008pBGKWN'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment