src/application.js
/**
 * Resets the application to its initial state
 */
Resets the application to its initial state
Resets the application to its initial state
function reset () {
  $('#question').show()
  $('#input-location').val('')
  $('#alert').hide()
  aboutClose()
  resetCurrentLocationButton()
  $('#question').fadeIn(150)
  $('#input-location').focus()
  $('#map').addClass('no-panning')
  setExampleLink()
  if (map) {
    map.reset()
  }
}
function reset ( ) { $ ( '#question' ) . show ( ) $ ( '#input-location' ) . val ( '' ) $ ( '#alert' ) . hide ( ) aboutClose ( ) resetCurrentLocationButton ( ) $ ( '#question' ) . fadeIn ( 150 ) $ ( '#input-location' ) . focus ( ) $ ( '#map' ) . addClass ( 'no-panning' ) setExampleLink ( ) if ( map ) { map . reset ( ) } }
Resets the application to its initial state
Resets the application to its initial state
// Show the question box // New example link! // Reset map if initialized