Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Latest commit

 

History

History
50 lines (44 loc) · 1.45 KB

results.md

File metadata and controls

50 lines (44 loc) · 1.45 KB
permalink title
/results
Election Results

Meet your 2019 .NET Foundation Board of Directors!

{% assign candidates = site.campaign-2019 | where: "elected","true" %}

{% for candidate in candidates %}

{{ candidate.title }}

{% if candidate.image %} {% else %} {% endif %} Learn More {% endfor %}
<script type="text/javascript"> document.addEventListener('DOMContentLoaded', function() { var cookieName = 'candidates'; var cookie = Cookies.getJSON(cookieName); var ul = document.querySelector('section.card-container'); var values = new Array(); for (var i = 0; i < ul.children.length; i++) { values.push(Math.random() * i | 0); } console.log(cookie); if (cookie != null && values.length == cookie.values.length) { /* reset if candidate lengths change */ values = cookie.values; } else { Cookies.set(cookieName, { values : values }, { expires: 1 /*days*/ }); } for(var i=0; i < values.length; i++) { ul.appendChild(ul.children[values[i] | 0]); } }, false); </script>