Tag: GitHub

By: | On:

  CSS  

Bootstrap rocks but sometimes you need more colors. Named Colors are a great solution.

Included are css files that can be included for Bootstrap like colors:

  • color-bg-AliceBlue
  • color-border-AliceBlue
  • color-text-AliceBlue
  • color-text-bg-AliceBlue

List of Named Colors with Color Swatches: https://www.w3.org/wiki/CSS/Properties/color/keywords

color-bg.css:

.color-bg-AliceBlue { background-color: #F0F8FF; }
.color-bg-AntiqueWhite {  ...
By: | On:

  JS  

Retrieves the GPS coordinates of the Browser.

  • Uses an inline callback.
  • Normalizes the output.
  • Makes the async call feel like a sync call, but it's still async.
  • This is a good template for similar async calls.

On Github: https://github.com/campsoftware/locationGet-js

Calling Example

xanLocationGet( function ( coords ) { alert( coords[`ErrorCode`] + `, ` + coords[`ErrorDesc`] + `, ` + coords[`Latitude`] + `, ` + coords[`Longitude`]  ...