|
Post by Elli on Aug 16, 2019 12:15:21 GMT -7
Recalculate Poll Bar Widths Recalculates the widths of poll bars. Useful for responsive themes.
Bottom of Thread Template
<script> $(function() { // Recalculate the width of poll bars function calcPolls() { if (document.location.href.match(/\/thread\/\d/)) { var $poll = $('.poll.show');
if ($poll.length) { $poll.data('poll').determineMaxWidth(); $poll.data('poll')._update(); } } }
$(window).on('resize', calcPolls()); }); </script>
|
|