Before doing any of this, be sure to run all of the OS updates that are available.
Downloads:
Before doing any of this, be sure to run all of the OS updates that are available.
Downloads:
In the admin (elections-admin.dallasnews.com/admin), go to elections > add election > setup election
Edit metadataAdd Race| <div class="subscribe-cta"> | |
| <h4>Looking for the next great video story?</h4> | |
| <p>If you enjoy profiles of interesting Texans and video reporting such as this, please consider supporting dallasnews.com by subscribing today.</p> | |
| <a href="https://www.dallasnews.com/offers/sign-up">Subscribe now</a> | |
| </div> |
| document.onkeydown = function(evt) { | |
| evt = evt || window.event; | |
| if (evt.keyCode == 27) { | |
| alert('Esc key pressed.'); | |
| } | |
| }; |
| /* | |
| ================================================================================ | |
| CREATE POPUP CONTENT | |
| Creates the content that populates the popup | |
| ================================================================================ | |
| */ | |
| function createPopupContent(feature) { | |
| // grab the id property from the feature we've selected |
| <!-- this small piece of html would be inside a larger template that's being used to draw something, such as a post --> | |
| <ul> | |
| {{#each pills}} <!-- your each function called on an array that's part of your data object --> | |
| <li>{{getPillText this}}</li> <!-- passing the value of your array to a helper function (first argument in this template tag --> | |
| {{#/each}} | |
| </ul> |
| value | label | |
|---|---|---|
| 920 | A.C. Green | |
| 1920 | A.J. Bramlett | |
| 2062 | A.J. Guyton | |
| 1627773 | AJ Hammons | |
| 201985 | AJ Price | |
| 201166 | Aaron Brooks | |
| 203932 | Aaron Gordon | |
| 201189 | Aaron Gray | |
| 1626151 | Aaron Harrison |
Early Oct. 2019, I ran into a problem on our Voter Guide where Circle Ci would fail before tests would even run. I could get a basic sense of what was happening via the Circle-Ci interface, but the problem wasn't immediately evident.
After consulting with Andrew Chavez, he pointed me to a page that explains how to SSH into a build running on Circle-Ci to run the commands step-by-step in an attempt to debug the problem.
After SSH-ing in, and cd-ing into the directory on the running build (in this case, cd voter-guide), you're able to run the commands listed in the circle-ci/config.yaml file in the project and seeing the read-out within the terminal as you go along.
In this instance, part of the setup process of the circle ci box involves running this command, which pulls a setup file for Nodejs v 8.x and installs it:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
| export default function (values) { | |
| // sort value strings alphabetically | |
| values.sort((a, b) => { | |
| if (a.toLowerCase() < b.toLowerCase()) return -1; | |
| if (a.toLowerCase() > b.toLowerCase()) return 1; | |
| return 0; | |
| }); | |
| // find select element/elements | |
| const selects = document.querySelectorAll('<<selector name>>'); |