These are a good set of default fonts to use
- font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"
/* The tab index is needed tomake an element */ | |
/* navigable from the keyboard */ | |
div.container | |
div.output(tabindex="0") |
/* To make them 'retina' set width, height to half | |
original file size | |
*/ | |
img { | |
max-width: 100%; | |
display: block; | |
height: auto; | |
} |
{ | |
"name": "indecision-app", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"dev": "concurrently \"live-server public\" \"babel src/app.js --out-file=public/scripts/app.js --presets=env,react --watch\"" | |
}, | |
"keywords": [], |
#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, |
These are a good set of default fonts to use
// 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] |
/* floating collapses the containg div to height:0 this hack fixes that*/ | |
.clearfix::after { | |
content: ""; | |
clear: both; | |
display: table; | |
} |
// truncate the array if too many | |
if (data.length > MAX_ENTRIES) { | |
data = data.slice(0, MAX_ENTRIES); | |
} |
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 | |
}) |