Created
February 8, 2011 12:32
-
-
Save Un1matr1x/816373 to your computer and use it in GitHub Desktop.
nasty js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $lang = array_merge($lang, array( | |
| 'HIDE_RESULTS' => 'Ergebnis verstecken', | |
| 'NEWS_TITLE' => 'NV newspage', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- IF postrow.S_HAS_POLL --> | |
| <div class="inner"><span class="corners-top"><span></span></span> | |
| <span class="poll_topic">{L_VIEW_TOPIC_POLL}</span> | |
| <input type="button" value="{L_VIEW_RESULTS}" class="button2" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = '{L_HIDE_RESULTS}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = '{L_VIEW_RESULTS}'; }"> | |
| <div class="postbody" style="width: 100%;"> | |
| <div style="display: none;"> | |
| <h2>{postrow.POLL_QUESTION}</h2> | |
| <p class="author">{postrow.L_POLL_LENGTH}</p> | |
| <fieldset class="polls"> | |
| <!-- BEGIN poll_option --> | |
| <dl> | |
| <dt>{postrow.poll_option.POLL_OPTION_CAPTION}</dt> | |
| <!-- IF postrow.S_DISPLAY_RESULTS --><dd class="resultbar"><div class="<!-- IF postrow.poll_option.POLL_OPTION_PCT < 20 -->pollbar1<!-- ELSEIF postrow.poll_option.POLL_OPTION_PCT < 40 -->pollbar2<!-- ELSEIF postrow.poll_option.POLL_OPTION_PCT < 60 -->pollbar3<!-- ELSEIF postrow.poll_option.POLL_OPTION_PCT < 80 -->pollbar4<!-- ELSE -->pollbar5<!-- ENDIF -->" style="width:{postrow.poll_option.POLL_OPTION_PERCENT};">{postrow.poll_option.POLL_OPTION_RESULT}</div></dd> | |
| <dd><!-- IF postrow.poll_option.POLL_OPTION_RESULT == 0 -->{L_NO_VOTES}<!-- ELSE -->{postrow.poll_option.POLL_OPTION_PERCENT}<!-- ENDIF --></dd><!-- ENDIF --> | |
| </dl> | |
| <!-- END poll_option --> | |
| <dl> | |
| <dt> </dt> | |
| <dd class="resultbar">{L_TOTAL_VOTES} : {postrow.TOTAL_VOTES}</dd> | |
| </dl> | |
| </fieldset> | |
| </div> | |
| </div> | |
| <span class="corners-bottom"><span class=" poll"></span></span></div> | |
| <!-- ENDIF --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment