Free javascript Hosting


pollapi.js

Uploaded on Feb 23 2022 03:27 by whtevrflkinc

var pollClosed11015978 = false;
var PDV_POLLRAND11015978 = false;
var PDV_a11015978 = "";
var PDV_o11015978 = "";
var PDV_id11015978 = 11015978;
var PDV_pt11015978 = 0;
var PDV_po11015978 = 0;
var PDV_b11015978 = 1;
var PDV_pr11015978 = 1;
var PDV_l11015978 = 0;
var PDV_s11015978 = 178;
var PDV_h11015978 = "ef3bb33ae6ef457a3308afd9c5b30683";
var PDV_w11015978 = 11015978;
var PDV_share11015978 = 1;
var PDV_expire11015978 = 604800;
var PDV_version11015978 = 0;
var PDV_def11015978 =
'#PDI_container11015978 .pds-box{width:630px;background:#fff;border:5px solid #384869;box-sizing:border-box;color:#000;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:14px;line-height:18px;font-weight:400;padding:30px 20px;text-align:left} #PDI_container11015978 .pds-box .poll__question-media{display:inline-block;max-width:110px;max-height:66px;overflow:hidden;padding-top:16px;margin-bottom:8px} #PDI_container11015978 .pds-box .poll__question-media::after{content:"";display:block;clear:both} #PDI_container11015978 .pds-box .poll__question-media audio,.pds-box .poll__question-media span{vertical-align:top;max-width:110px} #PDI_container11015978 .pds-box .poll__question-media iframe{max-width:110px;max-height:66px} #PDI_container11015978 .pds-box .poll__question-media div{background-size:cover;display:inline-block;width:110px;height:66px;position:relative;overflow:hidden} #PDI_container11015978 .pds-box .poll__question-media div img{position:absolute;max-width:unset;vertical-align:top} #PDI_container11015978 .pds-box .poll__answer-media-public{display:inline-block;max-width:100px;max-height:60px;overflow:hidden;margin-top:16px;margin-bottom:8px} #PDI_container11015978 .pds-box .poll__answer-media-public::after{content:"";display:block;clear:both} #PDI_container11015978 .pds-box .poll__answer-media-public audio,.pds-box .poll__answer-media-public span{vertical-align:top;max-width:100px} #PDI_container11015978 .pds-box .poll__answer-media-public iframe{max-width:100px;max-height:60px} #PDI_container11015978 .pds-box .poll__answer-media-public div{background-size:cover;display:inline-block;width:100px;height:60px;position:relative;overflow:hidden} #PDI_container11015978 .pds-box .poll__answer-media-public div img{position:absolute;max-width:unset;vertical-align:top} #PDI_container11015978 .pds-box br{display:none} #PDI_container11015978 .pds-box input[type=checkbox],.pds-box input[type=radio]{top:unset} #PDI_container11015978 .pds-box .pds-clear{display:none} #PDI_container11015978 .pds-box .pds-question-top{font-size:28px;line-height:32px;font-weight:900;margin:0 0 15px;padding:0} #PDI_container11015978 .pds-box .pds-answer{padding:20px 0} #PDI_container11015978 .pds-box .pds-answer-group{margin:0 0 15px} #PDI_container11015978 .pds-box .pds-answer-row{align-items:center;display:flex;flex-direction:row} #PDI_container11015978 .pds-box .pds-answer > .pds-answer-group{margin:15px 0} #PDI_container11015978 .pds-box .pds-answer-group:last-child{margin-bottom:0} #PDI_container11015978 .pds-box .pds-answer-input{display:inline-flex;margin:0 10px 0 0;align-self:flex-start} #PDI_container11015978 .pds-box .pds-radiobutton{margin:3px .5ex;-webkit-appearance:radio;appearance:radio} #PDI_container11015978 .pds-box .pds-checkbox{-webkit-appearance:checkbox;-moz-appearance:checkbox;appearance:auto;width:13px;height:13px} #PDI_container11015978 .pds-box .pds-input-label{cursor:pointer;display:inline-flex;flex:1;word-break:break-word} #PDI_container11015978 .pds-box .pds-other-label{cursor:pointer;display:inline-flex} #PDI_container11015978 .pds-box .pds-answer-other{display:inline-flex;flex:1;margin:0 0 0 10px} #PDI_container11015978 .pds-box .pds-textfield{background:#fff;border:1px solid #333;font-size:12px;padding:2px;width:100%} #PDI_container11015978 .pds-box .pds-feedback-group{display:flex;flex-direction:column;margin:0 0 15px} #PDI_container11015978 .pds-box .pds-feedback-group:last-child{margin-bottom:0} #PDI_container11015978 .pds-box .pds-feedback-label{display:flex} #PDI_container11015978 .pds-box .pds-feedback-label .pds-answer-text{flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap} #PDI_container11015978 .pds-box .pds-feedback-label .pds-feedback-result{text-align:right} #PDI_container11015978 .pds-box .pds-feedback-per{font-weight:700} #PDI_container11015978 .pds-box .pds-feedback-votes{font-weight:400} #PDI_container11015978 .pds-box .pds-answer-feedback{margin:5px 0 15px;background-color:#EDEDED;box-shadow:0 1px 2px 0 rgba(0,0,0,0.2), 0 1px 3px 0 rgba(0,0,0,0.1);box-sizing:border-box;height:16px;width:100%} #PDI_container11015978 .pds-box .pds-answer-feedback-bar{background-color:#384869;height:100%} #PDI_container11015978 .pds-box .pds-vote-button,.pds-box .pds-vote-button-load{cursor:pointer;display:inline-block;font-size:18px;line-height:40px;height:40px;padding:0 24px;margin:0 2px;vertical-align:middle;font-weight:500;color:#fff;background-color:#c9356e;background-image:linear-gradient(top,#c9356e 0%,#c9356e 100%);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";border:1px solid #b53063;border-radius:3px} #PDI_container11015978 .pds-box .pds-vote{padding:15px 0 0} #PDI_container11015978 .pds-box .pds-links,.pds-box .pds-links-back{display:flex;justify-content:center;text-align:center;flex-direction:column} #PDI_container11015978 .pds-box .pds-links{margin:30px 0 0} #PDI_container11015978 .pds-box .pds-links a,.pds-box .pds-links-back a{color:#0182a8;display:inline-flex;font-weight:400;line-height:24px;margin:0 0 10px;text-decoration:none;align-self:center} #PDI_container11015978 .pds-box .pds-links a:hover,.pds-box .pds-links-back a:hover{color:#333} #PDI_container11015978 .pds-box .pds-links a:first-child,.pds-box .pds-links-back a:first-child{margin:0} #PDI_container11015978 .pds-box .pds-comments span{font-weight:400} #PDI_container11015978 .pds-box .pds-total-votes{margin:15px 0 0} #PDI_container11015978 .pds-box .pds-total-votes span{font-weight:700} #PDI_container11015978 .pds-box #pds-sharing{align-items:flex-start;display:flex;flex-direction:column;margin:15px 0 0} #PDI_container11015978 .pds-box .pds-sharing-facebook{margin:0 0 10px!important} #PDI_container11015978 div {margin:0;padding:0;}';

var PDV_sl11015978 = 1;
var PDV_lnk11015978 = 1;

var PDV_va11015978 = 0;
var PDV_POLL_q11015978 =
"Do you wear footwear that has been specially developed for people with diabetes?";

var PDV_POLL_medType11015978 = "0";
var PDV_POLL_medID11015978 = "";

var PDV_A11015978 = new Array();

PDV_A11015978[0] = new Array(4);
PDV_A11015978[0][0] = "50598311";
PDV_A11015978[0][1] =
"Yes. I like having footwear that’s tailored to my specific needs.";
PDV_A11015978[0][2] = "0";
PDV_A11015978[0][3] = "";

PDV_A11015978[1] = new Array(4);
PDV_A11015978[1][0] = "50598312";
PDV_A11015978[1][1] = "No. I think they seem bulky or unattractive.";
PDV_A11015978[1][2] = "0";
PDV_A11015978[1][3] = "";

PDV_A11015978[2] = new Array(4);
PDV_A11015978[2][0] = "50598313";
PDV_A11015978[2][1] = "I’ve recently just learned about them.";
PDV_A11015978[2][2] = "0";
PDV_A11015978[2][3] = "";

PDV_A11015978[3] = new Array(4);
PDV_A11015978[3][0] = "50598323";
PDV_A11015978[3][1] = "I don’t know enough. I’d like to learn more.";
PDV_A11015978[3][2] = "0";
PDV_A11015978[3][3] = "";

var PDV_l1_11015978 = "View Results";
var PDV_l2_11015978 = "Other:";
var PDV_l3_11015978 = "Vote";
var PDV_l4_11015978 = "Please choose an answer first";

var PDV_l12_11015978 = "Share This";

//v3.43 2021-11-09
function Sanitize(a) {
var b = a || {};
this.config = {};
this.config.elements = b.elements ? b.elements : [];
this.config.attributes = b.attributes ? b.attributes : {};
this.config.attributes[Sanitize.ALL] = this.config.attributes[Sanitize.ALL]
? this.config.attributes[Sanitize.ALL]
: [];
this.config.allow_comments = b.allow_comments ? b.allow_comments : !1;
this.allowed_elements = {};
this.config.protocols = b.protocols ? b.protocols : {};
this.config.add_attributes = b.add_attributes ? b.add_attributes : {};
this.dom = b.dom ? b.dom : document;
for (a = 0; a < this.config.elements.length; a++)
this.allowed_elements[this.config.elements[a]] = !0;
this.config.remove_element_contents = {};
this.config.remove_all_contents = !1;
if (b.remove_contents)
if (b.remove_contents instanceof Array)
for (a = 0; a < b.remove_contents.length; a++)
this.config.remove_element_contents[b.remove_contents[a]] = !0;
else this.config.remove_all_contents = !0;
this.transformers = b.transformers ? b.transformers : [];
}
Sanitize.REGEX_PROTOCOL = /^([A-Za-z0-9\+\-\.&;\*\s]*?)(?::|&*0*58|&*x0*3a)/i;
Sanitize.RELATIVE = "__RELATIVE__";
Sanitize.ALL = "__ALL__";
Sanitize.prototype.clean_node = function (a) {
function b(a, b) {
var c;
for (c = 0; c < b.length; c++) if (b[c] == a) return c;
return -1;
}
function c() {
var a = [],
b = {},
c,
d;
for (c = 0; c < arguments.length; c++)
if (arguments[c] && arguments[c].length)
for (d = 0; d < arguments[c].length; d++)
b[arguments[c][d]] ||
((b[arguments[c][d]] = !0), a.push(arguments[c][d]));
return a;
}
function m(a) {
switch (a.nodeType) {
case 1:
var f, l;
var d = [];
var n = a;
var g = !1;
for (f = 0; f < this.transformers.length; f++) {
var e = this.transformers[f]({
allowed_elements: this.allowed_elements,
config: this.config,
node: a,
node_name: a.nodeName.toLowerCase(),
whitelist_nodes: this.whitelist_nodes,
dom: this.dom,
});
if (null != e)
if ("object" == typeof e) {
if (
e.whitelist_nodes &&
e.whitelist_nodes instanceof Array
)
for (g = 0; g < e.whitelist_nodes.length; g++)
-1 ==
b(
e.whitelist_nodes[g],
this.whitelist_nodes
) &&
this.whitelist_nodes.push(
e.whitelist_nodes[g]
);
g = e.whitelist ? !0 : !1;
e.attr_whitelist && (d = c(d, e.attr_whitelist));
n = e.node ? e.node : n;
} else
throw Error(
"transformer output must be an object or null"
);
}
a = n;
f = a.nodeName.toLowerCase();
n = this.current_element;
if (this.allowed_elements[f] || g) {
this.current_element = this.dom.createElement(a.nodeName);
n.appendChild(this.current_element);
g = this.config.attributes;
g = c(g[f], g[Sanitize.ALL], d);
for (d = 0; d < g.length; d++) {
var h = g[d];
if ((e = a.attributes[h])) {
var k = !0;
this.config.protocols[f] &&
this.config.protocols[f][h] &&
((k = this.config.protocols[f][h]),
(k = (l = e.value
.toLowerCase()
.match(Sanitize.REGEX_PROTOCOL))
? -1 != b(l[1], k)
: -1 != b(Sanitize.RELATIVE, k)));
k &&
((k = document.createAttribute(h)),
(k.value = e.value),
this.current_element.setAttributeNode(k));
}
}
if (this.config.add_attributes[f])
for (h in this.config.add_attributes[f])
(k = document.createAttribute(h)),
(k.value = this.config.add_attributes[f][h]),
this.current_element.setAttributeNode(k);
} else if (-1 != b(a, this.whitelist_nodes)) {
for (
this.current_element = a.cloneNode(!0);
0 < this.current_element.childNodes.length;

)
this.current_element.removeChild(
this.current_element.firstChild
);
n.appendChild(this.current_element);
}
if (
!this.config.remove_all_contents &&
!this.config.remove_element_contents[f]
)
for (d = 0; d < a.childNodes.length; d++)
m.call(this, a.childNodes[d]);
this.current_element.normalize &&
this.current_element.normalize();
this.current_element = n;
break;
case 3:
h = a.cloneNode(!1);
this.current_element.appendChild(h);
break;
case 5:
h = a.cloneNode(!1);
this.current_element.appendChild(h);
break;
case 8:
this.config.allow_comments &&
((h = a.cloneNode(!1)),
this.current_element.appendChild(h));
break;
default:
console &&
console.log &&
console.log("unknown node type", a.nodeType);
}
}
var l = this.dom.createDocumentFragment();
this.current_element = l;
this.whitelist_nodes = [];
for (i = 0; i < a.childNodes.length; i++) m.call(this, a.childNodes[i]);
l.normalize && l.normalize();
return l;
};
"function" === typeof define &&
define("sanitize", [], function () {
return Sanitize;
});
var a2a_track_pub = "polldaddy",
a2a_no_3p = 1,
PD_ck11015978 = 0,
PD_ck_name11015978 = "PD_poll_" + PDV_id11015978,
PDV_n11015978 = "",
PD_button11015978,
PDV_nurl11015978 =
"https://poll.fm/n/" +
("undefined" !== typeof PDV_h11015978
? PDV_h11015978
: PDV_id11015978) +
"/" +
PDV_id11015978 +
(PDV_w11015978 != PDV_id11015978 ? "/" + PDV_w11015978 : "");
function _$(a) {
return document.getElementById(a);
}
function is_secure() {
return "https:" === document.location.protocol;
}
function getHead() {
return document.getElementsByTagName("head").item(0);
}
if (0 == pollClosed11015978) {
var PDV_server11015978 = "https://polls.polldaddy.com",
AA11015978 = [],
PDV_html11015978 =
'<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form11015978" id="PDI_form11015978">';
PDV_html11015978 +=
'<div class="css-box pds-box"><div class="css-box-outer pds-box-outer">';
PDV_html11015978 +=
'<div class="css-box-inner pds-box-inner"><div class="css-box-top pds-box-top">';
PDV_html11015978 +=
'<div class="css-question pds-question"><div class="css-question-outer pds-question-outer">';
PDV_html11015978 +=
'<div class="css-question-inner pds-question-inner"><div class="css-question-top pds-question-top">';
PDV_html11015978 += PDV_POLL_medID11015978;
PDV_html11015978 +=
"<div>" + prepare_HTML_11015978(PDV_POLL_q11015978) + "</div>";
PDV_html11015978 +=
'</div></div></div></div><div class="css-answer pds-answer"><span id="pds-answer11015978"></span>';
1 == PDV_po11015978 &&
((PDV_html11015978 +=
'<div class="css-answer-group pds-answer-group">'),
(PDV_html11015978 += '<div class="css-answer-row pds-answer-row">'),
0 == PDV_pt11015978 &&
(PDV_html11015978 +=
'<span class="css-answer-input pds-answer-input"><input type="radio" name="PDI_answer11015978" id="PDI_answerOther11015978" value="other" class="css-radiobutton pds-radiobutton"/></span>'),
(PDV_html11015978 +=
'<label for="PDI_answerOther11015978" class="css-other-label pds-other-label"><span class="css-answer-span pds-answer-span">' +
PDV_l2_11015978 +
'</span></label><span class="css-answer-other pds-answer-other"><input class="css-textfield pds-textfield" type="text" maxlength="80" id="PDI_OtherText11015978" name="PDI_OtherText11015978" onclick="PDF_checkOther11015978();" onchange="PDF_checkOther11015978(true);" /></span>'),
(PDV_html11015978 += '<span class="css-clear pds-clear"></span>'),
(PDV_html11015978 += "</div>"),
(PDV_html11015978 += "</div>"));
PDV_html11015978 +=
'</div><div class="css-vote pds-vote"><div class="css-votebutton-outer pds-votebutton-outer">';
"" == PDV_l3_11015978 && (PDV_l3_11015978 = "Vote");
PDV_html11015978 =
99 > PDV_s11015978 ||
-1 != PDV_def11015978.indexOf("input.pds-votebutton")
? "Vote" == PDV_l3_11015978 || "" == PDV_l3_11015978
? PDV_html11015978 +
'<input id="pd-vote-button11015978" type="button" class="css-votebutton pds-votebutton" style="border:none;cursor: pointer;" src="https://polldaddy.com/polls/spacer.gif">'
: PDV_html11015978 +
('<input id="pd-vote-button11015978" type="button" class="css-votebutton-pack pds-votebutton-pack" value="' +
PDV_l3_11015978 +
'" />')
: PDV_html11015978 +
('<a id="pd-vote-button11015978" class="css-vote-button pds-vote-button"><span>' +
PDV_l3_11015978 +
"</span></a>");
PDV_html11015978 += '<span class="css-links pds-links">';
PDV_html11015978 =
2 == PDV_pr11015978
? PDV_html11015978 + "<br/>"
: PDV_html11015978 +
('<a href="javascript:PD_vote11015978(1);" class="css-view-results pds-view-results">' +
PDV_l1_11015978 +
"</a><br/>");
1 == PDV_lnk11015978 &&
(PDV_html11015978 +=
'<a href="https://crowdsignal.com/pricing/?ad=poll-front" target="_blank" class="css-pd-link pds-pd-link">Crowdsignal.com</a>');
PDV_html11015978 += '<span class="css-clear pds-clear"></span>';
PDV_html11015978 += '</span><span class="css-clear pds-clear"></span>';
PDV_html11015978 += "</div></div></div></div></div></div></div>";
for (PDV_x = 0; PDV_x < PDV_A11015978.length; PDV_x++)
(AA11015978[PDV_x] = '<div class="css-answer-group pds-answer-group">'),
(AA11015978[PDV_x] += PDV_A11015978[PDV_x][3]),
(AA11015978[PDV_x] +=
'<div class="css-answer-row pds-answer-row">'),
0 == PDV_pt11015978
? ((AA11015978[PDV_x] +=
'<span class="css-answer-input pds-answer-input">'),
(AA11015978[PDV_x] +=
'<input class="css-radiobutton pds-radiobutton" type="radio" id="PDI_answer' +
PDV_A11015978[PDV_x][0] +
'" value="' +
PDV_A11015978[PDV_x][0] +
'" name="PDI_answer11015978" />'))
: ((AA11015978[PDV_x] +=
'<span class="css-answer-input pds-answer-input">'),
(AA11015978[PDV_x] +=
'<input class="css-checkbox pds-checkbox" type="checkbox" id="PDI_answer' +
PDV_A11015978[PDV_x][0] +
'" value="' +
PDV_A11015978[PDV_x][0] +
'" name="PDI_answer' +
PDV_A11015978[PDV_x][0] +
'" onclick="javascript:PDF_mc11015978(this);" />')),
(AA11015978[PDV_x] += "</span>"),
(AA11015978[PDV_x] +=
'<label for="PDI_answer' +
PDV_A11015978[PDV_x][0] +
'" class="css-input-label pds-input-label">'),
(AA11015978[PDV_x] +=
'<span class="css-answer-span pds-answer-span">' +
prepare_HTML_11015978(PDV_A11015978[PDV_x][1]) +
"</span>"),
(AA11015978[PDV_x] += '</label><span class="css-clear pds-clear">'),
(AA11015978[PDV_x] += "</span>"),
(AA11015978[PDV_x] += "</div>"),
(AA11015978[PDV_x] += "</div>");
}
function PDF_mc11015978(a) {
if (1 < PDV_pt11015978) {
var b = 0;
for (i = 0; i < AA11015978.length; i++)
(r = _$(
AA11015978[i].substring(
AA11015978[i].indexOf("id=") + 4,
AA11015978[i].indexOf('"', AA11015978[i].indexOf("id=") + 4)
)
)),
"checkbox" == r.type && r.checked && (b += 1);
1 == PDV_po11015978 &&
0 < _$("PDI_OtherText11015978").value.length &&
(b += 1);
b > PDV_pt11015978 && ((a.checked = !1), (a.disabled = !0));
if (b >= PDV_pt11015978)
for (i = 0; i < AA11015978.length; i++)
(r = _$(
AA11015978[i].substring(
AA11015978[i].indexOf("id=") + 4,
AA11015978[i].indexOf(
'"',
AA11015978[i].indexOf("id=") + 4
)
)
)),
"checkbox" != r.type || r.checked || (r.disabled = !0);
else
for (
1 == PDV_po11015978 &&
(_$("PDI_OtherText11015978").disabled = !1),
i = 0;
i < AA11015978.length;
i++
)
(r = _$(
AA11015978[i].substring(
AA11015978[i].indexOf("id=") + 4,
AA11015978[i].indexOf(
'"',
AA11015978[i].indexOf("id=") + 4
)
)
)),
"checkbox" != r.type || r.checked || (r.disabled = !1);
}
}
function PDF_a11015978() {
PDF_o11015978();
if (0 == PDV_pt11015978) {
for (var a = 0; a < AA11015978.length; a++) {
var b = _$(
AA11015978[a].substring(
AA11015978[a].indexOf("id=") + 4,
AA11015978[a].indexOf('"', AA11015978[a].indexOf("id=") + 4)
)
);
if (b.checked) return b.value + ",";
}
return (b = _$("PDI_answerOther11015978"))
? b.checked
? b.value + ","
: ""
: "";
}
for (a = 0; a < AA11015978.length; a++)
(b = _$(
AA11015978[a].substring(
AA11015978[a].indexOf("id=") + 4,
AA11015978[a].indexOf('"', AA11015978[a].indexOf("id=") + 4)
)
)),
"checkbox" == b.type &&
b.checked &&
(PDV_a11015978 = PDV_a11015978 + b.value + ",");
return PDV_a11015978;
}
function PDF_o11015978(a) {
1 == PDV_po11015978 && (PDV_o11015978 = _$("PDI_OtherText11015978").value);
}
function PDF_checkOther11015978(a) {
var b = !1;
a && 0 == _$("PDI_OtherText11015978").value.length && (b = !0);
if (0 == PDV_pt11015978)
a && b
? (_$("PDI_answerOther11015978").checked = !1)
: (_$("PDI_answerOther11015978").checked = !0);
else if (1 < PDV_pt11015978) {
var c = 1;
obj = _$("PDI_OtherText11015978");
a && b && (c = 0);
for (i = 0; i < AA11015978.length; i++)
(r = _$(
AA11015978[i].substring(
AA11015978[i].indexOf("id=") + 4,
AA11015978[i].indexOf('"', AA11015978[i].indexOf("id=") + 4)
)
)),
"checkbox" == r.type && r.checked && (c += 1);
if (c > PDV_pt11015978)
for (
obj.disabled = !0, obj.value = "", i = 0;
i < AA11015978.length;
i++
)
(r = _$(
AA11015978[i].substring(
AA11015978[i].indexOf("id=") + 4,
AA11015978[i].indexOf(
'"',
AA11015978[i].indexOf("id=") + 4
)
)
)),
"checkbox" != r.type || r.checked || (r.disabled = !0);
else if (c < PDV_pt11015978)
for (obj.disabled = !1, i = 0; i < AA11015978.length; i++)
(r = _$(
AA11015978[i].substring(
AA11015978[i].indexOf("id=") + 4,
AA11015978[i].indexOf(
'"',
AA11015978[i].indexOf("id=") + 4
)
)
)),
"checkbox" != r.type || r.checked || (r.disabled = !1);
}
}
function PD_prevote11015978(a) {
if (a.pageX) {
var b = a.pageX;
a = a.pageY;
} else (b = a.clientX), (a = a.clientY);
if (0 == b && 0 == a) return !1;
-1 == PDV_def11015978.indexOf("input.pds-votebutton") &&
(PD_button11015978.className =
"css-vote-button-lead pds-vote-button-load");
b = document.createElement("SCRIPT");
b.charset = "utf-8";
b.src = PDV_nurl11015978 + "?" + new Date().getTime();
getHead().appendChild(b);
}
function PD_vote11015978(a) {
var b = PDF_getTags11015978(),
c =
PDV_server11015978 +
"/vote-js.php?p=" +
PDV_id11015978 +
(PDV_w11015978 != PDV_id11015978 ? "&w=" + PDV_w11015978 : ""),
m = !1;
1 != a &&
((PDV_a11015978 = ""),
(PDV_a11015978 = PDF_a11015978(_$("PDI_form11015978"))),
0 == PDV_a11015978.length && 0 == PDV_o11015978.length
? ((m = !0),
alert(PDV_l4_11015978),
-1 == PDV_def11015978.indexOf("input.pds-votebutton") &&
(PD_button11015978.className =
"css-vote-button pds-vote-button"))
: (0 < PDV_b11015978 &&
(PDF_getCookie11015978(PD_ck_name11015978)
? (PD_ck11015978 = 1)
: PDF_setCookie11015978(PD_ck_name11015978)),
(c +=
"&b=" +
PDV_b11015978 +
"&a=" +
PDV_a11015978 +
"&o=" +
PDF_urlEncode11015978(PDV_o11015978) +
"&va=" +
PDV_va11015978 +
"&cookie=" +
PD_ck11015978 +
(0 < b.length ? "&tags=" + b : "") +
(0 < PDV_n11015978.length ? "&n=" + PDV_n11015978 : "") +
"&url=" +
escape(location.href))));
m ||
((a = document.createElement("SCRIPT")),
(a.charset = "utf-8"),
(a.src = c),
getHead().appendChild(a));
}
function PDF_getTags11015978() {
if ("undefined" == typeof pd_tags) return "11015978-src:poll-embed";
"11015978-src" in pd_tags || (pd_tags["11015978-src"] = "poll-embed");
var a = "",
b;
for (b in pd_tags)
a +=
PDF_urlEncode11015978(b) +
":" +
PDF_urlEncode11015978(pd_tags[b]) +
";";
return a.slice(0, -1);
}
function PDF_urlEncode11015978(a) {
return encodeURIComponent(a)
.replace(/%20/g, "+")
.replace(/!/g, "%21")
.replace(/'/g, "%27")
.replace(/\(/g, "%28")
.replace(/\)/g, "%29")
.replace(/\*/g, "%2A")
.replace(/~/g, "%7E");
}
function PDF_rand11015978(a) {
var b = a.length;
if (0 == b) return !1;
for (; --b; ) {
var c = Math.floor(Math.random() * (b + 1)),
m = a[b];
a[b] = a[c];
a[c] = m;
}
return a;
}
function PDF_loadStyleSheet11015978() {
var a = document.createElement("style");
a.setAttribute("type", "text/css");
a.setAttribute("id", "poll_style11015978");
a.styleSheet
? (a.styleSheet.cssText = PDV_def11015978)
: a.appendChild(document.createTextNode(PDV_def11015978));
getHead().appendChild(a);
}
function PDV_go11015978() {
_$("poll_style11015978") || PDF_loadStyleSheet11015978();
_$("PDI_container11015978") ||
document.write(
'<a name="pd_a_11015978" style="display: inline; padding: 0px; margin: 0px;"></a><div class="CSS_Poll PDS_Poll" id="PDI_container11015978"></div>'
);
"undefined" !== typeof supercookie &&
"object" !== typeof sc &&
(sc = new supercookie());
_$("PDI_container11015978").innerHTML = PDV_html11015978;
PDV_POLLRAND11015978 && (AA11015978 = PDF_rand11015978(AA11015978));
y11015978 = "";
for (x11015978 = 0; x11015978 < AA11015978.length; x11015978++)
y11015978 += AA11015978[x11015978];
_$("pds-answer11015978").innerHTML = y11015978;
PD_button11015978 = _$("pd-vote-button11015978");
PD_addEventListener11015978();
"function" == typeof PDF_callback11015978 &&
PDF_callback11015978('{"id":' + PDV_id11015978 + ',"result":"load"}');
}
function PDF_setCookie11015978(a) {
var b = new Date().getTime(),
c = 2592e6;
"undefined" !== typeof PDV_expire11015978 &&
(c = 1e3 * parseInt(PDV_expire11015978));
c = new Date(b + c);
"undefined" !== typeof PDV_version11015978 &&
(a += 0 < PDV_version11015978 ? "_" + PDV_version11015978 : "");
PDF_log11015978("Cookie Name: " + a);
"object" == typeof sc && "function" == typeof sc.set
? (PDF_log11015978("SET supercookie"), sc.set(a, escape(b)))
: (PDF_log11015978("SET standard cookie"),
(document.cookie =
a +
"=" +
escape(b) +
";expires=" +
c.toGMTString() +
";path=/;domain="));
}
function PDF_getCookie11015978(a) {
var b = "",
c = 0;
"undefined" !== typeof PDV_version11015978 &&
(a += 0 < PDV_version11015978 ? "_" + PDV_version11015978 : "");
"undefined" !== typeof PDV_expire11015978 &&
(c = 1e3 * parseInt(PDV_expire11015978));
PDF_log11015978("Cookie Name: " + a);
if ("object" == typeof sc && "function" == typeof sc.get)
PDF_log11015978("GET supercookie"), (b = sc.get(a));
else {
PDF_log11015978("GET standard cookie");
var m = document.cookie.split(";");
for (i = 0; i < m.length; i++) {
var l = m[i].split("=");
var p = l[0].replace(/^\s+|\s+$/g, "");
if (p == a) {
1 < l.length && (b = unescape(l[1].replace(/^\s+|\s+$/g, "")));
break;
}
}
}
PDF_log11015978("Cookie Value: " + b);
if ("true" == b) return !0;
a = new Date().getTime();
cookie_time = parseInt(b);
expire_time = cookie_time + c;
return 0 < c && 0 < cookie_time && a < expire_time ? !0 : !1;
}
function PDF_callback11015978(a) {
"function" == typeof pd_callback
? pd_callback(a)
: "function" == typeof pd_callback_11015978 && pd_callback_11015978(a);
}
function get_sanitizer_11015978() {
return new Sanitize({
elements:
"a b blockquote br cite code dd dl dt em i li ol p pre q small strike strong sub sup u ul img".split(
" "
),
attributes: {
a: ["href"],
blockquote: ["cite"],
q: ["cite"],
img: "align alt height src title width".split(" "),
},
add_attributes: { a: { rel: "nofollow" } },
protocols: {
a: { href: ["ftp", "http", "https", "mailto", Sanitize.RELATIVE] },
blockquote: { cite: ["http", "https", Sanitize.RELATIVE] },
q: { cite: ["http", "https", Sanitize.RELATIVE] },
img: { src: ["http", "https", Sanitize.RELATIVE] },
},
});
}
function sanitize_HTML_11015978(a) {
var b = document.createElement("div");
b.innerHTML = a;
a = get_sanitizer_11015978().clean_node(b);
b = document.createElement("div");
b.appendChild(a);
return b.innerHTML;
}
function unescape_HTML_11015978(a) {
var b = document.createElement("DIV");
b.innerHTML = a;
return void 0 !== b.innerText ? b.innerText : b.textContent;
}
function prepare_HTML_11015978(a) {
return sanitize_HTML_11015978(unescape_HTML_11015978(a));
}
function PD_addEventListener11015978() {
"undefined" != typeof PD_button11015978 &&
(PD_button11015978.addEventListener
? PD_button11015978.addEventListener(
"click",
PD_prevote11015978,
!1
)
: PD_button11015978.attachEvent &&
PD_button11015978.attachEvent("onclick", PD_prevote11015978));
}
function PDF_log11015978(a) {
"undefined" !== typeof _debug &&
_debug &&
"undefined" !== typeof console &&
null != console &&
console.log(a);
}
0 == pollClosed11015978 && PDV_go11015978();

Back to list