if (!window._msfb) { _msfb={ // _INIT.JS firstrun: false, getJQ: false, getUI: false, loaded: false, loading: false, html: null, scrpt: null, post: { systemid: 'gateway', testid: 'prv01' }, init:function() { _msfb.firstrun = true; if (!window.jQuery || !window.jQuery.ui) { if (!window.jQuery && !_msfb.getJQ) { _msfb.getJQ = true; _msfb.createJQScript(); } else if (window.jQuery && !window.jQuery.ui && !_msfb.getUI) { _msfb.getUI = true; _msfb.createUIScript(); } if (!_msfb.intv) { _msfb.intv = setInterval(_msfb.init, 200); } return; } else { clearInterval(_msfb.intv); var jq = window.jQuery; _msfb.$ = jq; } jq('#_msfeedbacklink').remove(); var html = '\n'; html = jq(html); jq('body').append(html); html.find('a').hover(_msfb.evHover); html.find('a').click(_msfb.evCreateRemoveScript); }, evHover:function(e) { if (e.type == 'mouseenter') { _msfb.$(this).css({ 'color': '#DD4705', 'background-image': 'url(https://www.ucl.ac.uk/adminsys/projects/httpdocs/feedback/imgs/arrow-hover.png)' }); } else if (e.type == 'mouseleave') { _msfb.$(this).css({ 'color': '#DB8365', 'background-image': 'url(https://www.ucl.ac.uk/adminsys/projects/httpdocs/feedback/imgs/arrow.png)' }); } }, evCreateRemoveScript:function(e) { e.preventDefault(); if (_msfb.loading > 3) { _msfb.scrpt.parentNode.removeChild(_msfb.scrpt); _msfb.loading = false; uxdebug(hi); } if (!_msfb.loaded && !_msfb.loading) { _msfb.loading = 1; var scrpt = document.createElement('script'); scrpt.setAttribute("type", "text/javascript"); scrpt.setAttribute('src', 'https://www.ucl.ac.uk/adminsys/projects/feedback/ajax/generate/form/'); scrpt.setAttribute('charset', 'UTF-8'); scrpt.setAttribute('defer', 'defer'); document.getElementsByTagName('body')[0].appendChild(scrpt); _msfb.scrpt = scrpt; } else if (_msfb.loading) { _msfb.loading++; } else if (_msfb.html) { _msfb.removeHtml(); } }, createJQScript:function() { var scrpt = document.createElement('script'); scrpt.setAttribute("type", "text/javascript"); scrpt.setAttribute('src', 'https://www.ucl.ac.uk/adminsys/projects/feedback/xbse/jqry/jquery-1-6-4.js'); scrpt.setAttribute('charset', 'UTF-8'); scrpt.setAttribute('defer', 'defer'); document.getElementsByTagName('body')[0].appendChild(scrpt); }, createUIScript:function() { scrpt = document.createElement('script'); scrpt.setAttribute("type", "text/javascript"); scrpt.setAttribute('src', 'https://www.ucl.ac.uk/adminsys/projects/feedback/xbse/jqry/jquery-ui-1-8-16.js'); scrpt.setAttribute('charset', 'UTF-8'); scrpt.setAttribute('defer', 'defer'); document.getElementsByTagName('body')[0].appendChild(scrpt); }, passHtml:function(html) { _msfb.loaded = true; _msfb.loading = false; if (_msfb.scrpt) { _msfb.html = _msfb.$(html); _msfb.$('body').append(html); _msfb.scrpt.parentNode.removeChild(_msfb.scrpt); } }, removeHtml:function() { if (_msfb.html) { _msfb.loaded = false; _msfb.html.remove(); _msfb.html = null; } } }; } brwsr={ init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { for (var i=0;i