vote/2015-board/candidates.wml | 4 ++-- vote/2015-board/shuffle.js | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-)
New commits: commit a4acc2c9a4be44f2ff00e18c4c2146bd0323120c Author: Andras Timar <andras.ti...@collabora.com> Date: Fri Dec 4 16:36:39 2015 +0100 shuffle list of candidates Change-Id: If30bf0c6f11702189468e7c70afa66aa01aae2ef Reviewed-on: https://gerrit.libreoffice.org/20402 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/vote/2015-board/candidates.wml b/vote/2015-board/candidates.wml index b950f04..1992019 100644 --- a/vote/2015-board/candidates.wml +++ b/vote/2015-board/candidates.wml @@ -45,7 +45,7 @@ <h2>Candidates for The Document Foundation Board of Directors</h2> - <p>In alphabetical order by surname:</p> + <p>In random order:</p> <ol> <li><strong>Thorsten Behrens</strong><br /> @@ -146,6 +146,6 @@ I've been a volunteer in the project since its creation five years ago. These da <a href="rules.html">Rules for this election</a> or write to <a href="mailto:electi...@documentfoundation.org">electi...@documentfoundation.org</a>. </p> - + <script src="shuffle.js" /> </body> </html> diff --git a/vote/2015-board/shuffle.js b/vote/2015-board/shuffle.js new file mode 100644 index 0000000..49a939a --- /dev/null +++ b/vote/2015-board/shuffle.js @@ -0,0 +1,8 @@ +window.onload = shuffle; + +function shuffle() { + var ol = document.querySelector('ol'); + for (var i = ol.children.length; i >= 0; i--) { + ol.appendChild(ol.children[Math.random() * i | 0]); + } +} _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits