//Survey Pop-up loader for Feedback Survey function loadmodal{ID}(){ var content = '
'; ggs_append("body",content,1); return "ggsmodal{ID}"; } var modalvar{ID}; document.addEventListener('DOMContentLoaded',function(){ //Load CSS ggs_append("head","",1); ggs_loadremote("ggsmodal{ID}_css","https://gogreensurvey.com/feedback/gogreensurvey_style.php"); modalvar{ID}=loadmodal{ID}(); //create modal url="https://gogreensurvey.com/load_survey_feedback.php?id={ID}"; if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest(); else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("GET", url, false ); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { ggs_html("ggsmodal{ID}",xmlhttp.responseText); } } xmlhttp.send(); });