Tag: GitHub

On:

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 { background-color: #FAEBD7; }
.color-bg-Aqua { background-color: #00FFFF; }
.color-bg-Aquamarine { background-color: #7FFFD4; }
.color-bg-Azure { background-color: #F0FFFF;  ...
On:

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`] + `, ` + coords[`Altitude`] );

Function

function xanLocationGet( pCallbackFunction ) {
    // Calling Example
   ...