CMD:
PHP:
mini manager
Path:
/
var
/
www
/
forum.shootsilhouette.com
/
public_html
/
js
/
Upload:
Edit: poll.js
/* =======================================================================*\ || ###################################################################### || || # vBulletin 5.6.9 || # ------------------------------------------------------------------ # || || # Copyright 2000-2022 MH Sub I, LLC dba vBulletin. All Rights Reserved. # || || # This file may not be redistributed in whole or significant part. # || || # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || ###################################################################### || \*========================================================================*/ vBulletin.precache("vote_failed vote_now vote_first vote_error_retrieving votes vote voters voter".split(" "),["maxpolloptions"]); (function(c){c(function(){function k(d,e){var a=e.find(".voters");d.message?(d=c("<span />").addClass(d.type).text(d.message),a.html(d)):a.html(d.voters);a.fadeIn("slow");c("body").on("click.voterpopup",function(b){0==c(b.target).closest(".voter-icon").length&&(a.hide(),c("body").off("click.voterpopup"))})}function l(d,e){var a=d.parent(),b=e.options,f;for(f in b){var g=c(".pollresults-option-"+b[f].polloptionid);g.find(".title").html(JShtmlEncode(b[f].title));g.find(".bar-container .bar").css("width", b[f].percentage+"%");g.find(".percentage").html(b[f].display_percentage+"%");g.find(".votes span").html(b[f].votes);var h=1==b[f].votes?"vote":"votes";g.find(".votes label").html(vBulletin.phrase.get(h))}c(".pollresults .pollvote-count span",a).html(e.poll_votes);h=1==e.poll_votes?"voter":"voters";c(".pollresults .pollvote-count label",a).html(vBulletin.phrase.get(h));d.hide();c("div.pollresults",a).removeClass("h-hide")}vBulletin.conversation.bindEditFormEventHandlers("poll");(function(d){var e= function(a){a.find(".js-remove-button").prop("disabled",2>=a.find("li").length)};c(".b-poll-fieldset__poll-answers").each(function(){e(c(this))});d.off("click",".js-poll__view-results").on("click",".js-poll__view-results",function(a){a.preventDefault();a=c(this).attr("data-nodeid");var b=c(this).closest("form");c.post(vBulletin.getAjaxBaseurl()+"/poll/get",{nodeid:a},function(a){l(b,a)},"json")});d.off("click",".js-poll__back-to-poll").on("click",".js-poll__back-to-poll",function(a){a.preventDefault(); a=c(this).closest(".js-poll__parent");a.find("div.pollresults").addClass("h-hide");a.find("form.poll").show()});d.off("click",".b-poll-fieldset__add-more").on("click",".b-poll-fieldset__add-more",function(a){a=c(this);var b=a.prev(".b-poll-fieldset__poll-answers"),d=b.find("li").first().clone(!0),g=d.find(".b-form-input__input");g.val("").attr("name","polloptions[new][]");d.appendTo(b);g.trigger("focus");b.find("li").length==vBulletin.options.get("maxpolloptions")&&a.addClass("h-hide");e(b);return!1}); d.off("click",".b-poll-fieldset__poll-answers .js-remove-button").on("click",".b-poll-fieldset__poll-answers .js-remove-button",function(){var a=c(this),b=a.closest(".b-poll-fieldset__poll-answers");a.closest("li").remove();b.next(".b-poll-fieldset__add-more").removeClass("h-hide");e(b);return!1});d.off("click",".js-poll-timeout").on("click",".js-poll-timeout",function(a){a=c(this).closest(".b-poll-fieldset__poll-options").next(".b-poll-fieldset__datepicker-container");this.checked?a.removeClass("h-hide"): a.addClass("h-hide").find(".b-datepicker__input").val("")});d.off("submit.formpoll","form.poll").on("submit.formpoll","form.poll",function(a){a.preventDefault();var b=c(this);a=b.find('[name="polloptionid"]:checked').val();var d=[];b.find('[name="polloptionids[]"]:checked').each(function(){d.push(c(this).val())});c.post(vBulletin.normalizeAjaxUrl(b.attr("action")),{polloptionid:a,"polloptionids[]":d},function(a){0==a?vBulletin.warning("vote_now","vote_failed"):(l(b,a),a=b.parent(),c("div.pollresults", a).find(".js-poll__back-to-poll").remove())},"json")});c(document).off("click",".pollresults-data .voter-icon").on("click",".pollresults-data .voter-icon",function(){var a=c(this);if(a.find(".voters").is(":visible"))return!1;c(".pollresults-data tr td.pollvoter-cell .voter-icon .voters").hide();var b=a.attr("data-node-id"),d=a.attr("data-polloption-id"),g=a.closest("form");c.post(vBulletin.getAjaxBaseurl()+"/poll/get-voters",{nodeid:b,polloptionid:d},function(b){if(b)if(b.error)k({message:b.error, type:"error"},a);else{var e=!1;if(b.options&&(l(g,b),b=b.options[d]))if(e=!0,c.isEmptyObject(b.votersinfo))k({message:vBulletin.phrase.get("vote_first"),type:"note"},a);else{var f=[],h;for(h in b.votersinfo){let a=b.votersinfo[h];f.push('<a href="{0}" data-vbnamecard="{1}">{2}</a>'.format(a.profileurl,a.userid,a.displayname_safe))}k({voters:f.join(", ")},a)}e||k({message:vBulletin.phrase.get("vote_error_retrieving"),type:"error"},a)}else k({message:vBulletin.phrase.get("vote_error_retrieving"),type:"error"}, a)},"json")});c(document).off("click",".pollresults-data .voter-icon .voters").on("click",".pollresults-data .voter-icon .voters",function(a){a.stopPropagation();return!0})})(c(document))})})(jQuery);
[ Kembali ]
© 2026 mini manager