static/js/logic.js
// Function that will determine the color of the markers 
Function that will determine the color of the markers
Function that will determine the color of the markers
function markerColor(magnitude) {
    if (magnitude > 5) {
        return '#FE0422'
    } else if (magnitude > 4) {
        return '#FE5704'
    } else if (magnitude > 3) {
        return '#FA7A1C '
    } else if (magnitude > 2) {
        return '#FABD1C'
    } else if (magnitude > 1) {
        return '#FCF105'
    } else {
        return '#9BFC05'
    }
}
function markerColor ( magnitude ) { if ( magnitude > 5 ) { return '#FE0422' } else if ( magnitude > 4 ) { return '#FE5704' } else if ( magnitude > 3 ) { return '#FA7A1C ' } else if ( magnitude > 2 ) { return '#FABD1C' } else if ( magnitude > 1 ) { return '#FCF105' } else { return '#9BFC05' } }
Function that will determine the color of the markers
Function that will determine the color of the markers