These are a good set of default fonts to use
- font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
[ | |
{ | |
"id": "1", | |
"question": "What vehicles are covered?", | |
"answer": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | |
}, | |
{ | |
"id": "2", | |
"question": "Can anyone drive a vehicle covered by a business policy?", | |
"answer": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint |
infectionCount = []; | |
timeString = document.querySelector('.govspeak > p:nth-child(4)').innerText.split(' on ')[1].slice(0, -1).replace(/(\r\n|\n|\r)/gm,""); | |
isoTimeString = new Date(timeString).toISOString(); | |
document.querySelectorAll('tbody > tr').forEach((row) => { | |
let [authority, numberOfCases] = row.cells; | |
infectionCount.push({ | |
authority: authority.innerText, | |
numberOfCases: numberOfCases.innerText | |
}) |
// truncate the array if too many | |
if (data.length > MAX_ENTRIES) { | |
data = data.slice(0, MAX_ENTRIES); | |
} |
/* floating collapses the containg div to height:0 this hack fixes that*/ | |
.clearfix::after { | |
content: ""; | |
clear: both; | |
display: table; | |
} |
// reurn a string message to signal an error | |
handleAddOption(option) { | |
if (!option) { | |
return "Enter valid value"; | |
} else if (this.state.options.indexOf(option) > -1) { | |
return "This option already exists"; | |
} else { | |
this.setState((prevState, props) => { | |
return { | |
options: [...prevState.options, option] |
These are a good set of default fonts to use
#hero { | |
background: #834d9b; /* fallback for old browsers */ | |
background: -webkit-linear-gradient( | |
to right, | |
#d04ed6, | |
#834d9b | |
); /* Chrome 10-25, Safari 5.1-6 */ | |
background: linear-gradient( | |
to right, | |
#d04ed6, |