For complete privacy, use AAfter Search . Subscribe to our Faster, No-ad, No-limit Proxy Service
Subscribe to our Faster, No-ad, No-limit Proxy Service
if (!UserVoice) {
var UserVoice = {};
}
UserVoice.Util = {
sslAssetHost: "https://cdn.uservoice.com",
assetHost: "http://cdn.uservoice.com",
getAssetHost: function() {
return ("https:" == document.location.protocol) ? this.sslAssetHost : this.assetHost;
},
render: function(template, params) {
return template.replace(/\#{([^{}]*)}/g,
function (a, b) {
var r = params[b];
return typeof r === 'string' || typeof r === 'number' ? r : a;
}
)
},
toQueryString: function(params) {
var pairs = [];
for (key in params) {
if (params[key] != null && params[key] != '') {
pairs.push([key, params[key]].join('='));
}
}
return pairs.join('&');
},
isIE: function(test) {
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
if (typeof test === "function") {
return test(new Number(RegExp.$1));
} else {
return true;
}
} else {
return false;
}
},
isQuirksMode: function() {
return document.compatMode && document.compatMode=="BackCompat";
},
includeCss: function(css) {
var styleElement = document.createElement('style');
styleElement.setAttribute('type', 'text/css');
styleElement.setAttribute('media', 'screen');
if (styleElement.styleSheet) {
styleElement.styleSheet####sText = css;
} else {
styleElement.appendChild(document.createTextNode(css));
}
document.getElementsByTagName('head')[0].appendChild(styleElement);
}
}
UserVoice.Page = {
getDimensions: function() {
var de = document.documentElement;
var width = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
var height = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
return {width: width, height: height};
}
}
UserVoice.Dialog = {
preload: function(id_or_html) {
if (!this.preloaded) {
var element = document.getElementById(id_or_html);
var html = (element == null) ? id_or_html : element.innerHTML;
this.setContent(html);
this.preloaded = true;
}
},
show: function(id_or_html) {
if (!this.preloaded) {
this.preload(id_or_html);
}
this.Overlay.show();
this.setPosition();
UserVoice.Element.addClassName(this.htmlElement(), 'dialog-open');
this.element().style.display = 'block';
this.preloaded = false;
this.element().focus();
},
close: function() {
var change = UserVoice.needsConfirm;
if(change){
var answer = confirm(change);
if(!answer) {
return
}
}
this.element().style.display = 'none';
UserVoice.Element####oveClassName(this.htmlElement(), 'dialog-open');
this.Overlay.hide();
UserVoice.onClose();
},
/****** Protected Methods ******/
id: 'uservoice-dialog',
css_template: "\
#uservoice-dialog {\
z-index: 100003;\
display: block;\
text-align: left;\
margin: -2em auto 0 auto;\
position: fixed; \
}\
\
#uservoice-overlay {\
position: fixed;\
z-index:100002;\
width: 100%;\
height: 100%;\
left: 0;\
top: 0;\
background-color: #000;\
opacity: .7;\
filter: alpha(opacity=70);\
}\
\
#uservoice-overlay p {\
padding: 5px;\
color: #ddd;\
font: bold 14px arial, sans-serif;\
margin: 0;\
letter-spacing: -1px;\
}\
\
#uservoice-dialog #uservoice-dialog-close {\
position: absolute;\
height: 48px;\
width: 48px;\
top: -11px;\
right: -12px;\
color: #06c;\
cursor: pointer;\
background-position: 0 0;\
background-repeat: no-repeat;\
background-color: transparent;\
}\
\
html.dialog-open object,\
html.dialog-open embed {\
visibility: hidden;\
}\
a#uservoice-dialog-close { background-image: url(#{background_image_url}); }" + (
(UserVoice.Util.isIE() && (UserVoice.Util.isIE(function(v){return v < 7}) || (UserVoice.Util.isIE(function(v){return v >= 7}) && UserVoice.Util.isQuirksMode()))) ? "\
#uservoice-overlay,\
#uservoice-dialog {\
position: absolute;\
}\
\
.dialog-open,\
.dialog-open body {\
overflow: hidden;\
}\
\
.dialog-open body {\
height: 100%;\
}\
#uservoice-overlay {\
width: 100%;\
}\
\
#uservoice-dialog #uservoice-dialog-close {\
background: none;\
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://uservoice.com/images/icons/close.png');\
}\
.dialog-open select {\
visibility: hidden;\
}\
.dialog-open #uservoice-dialog select {\
visibility: visible;\
}" : ""
),
element: function() {
if (!document.getElementById(this.id)){
var dummy = document.createElement('div');
dummy.innerHTML = '