browserCheck.js
/**
 * removes test results and reruns browser check
 * @param {boolean} doSpin
 */
removes test results and reruns browser check
@param {boolean} doSpin
removes test results and reruns browser check @param { boolean } doSpin
function populateCheckInfo(doSpin) {
  showBrowserWaitSpin(false);
  var el = document.getElementsByClassName('js-full-list')[0];
  var html = document.getElementsByTagName('html')[0];
  if (el && html) {
    var result = getModernizrValues();
    el.innerHTML = result != '' ? result : 'no capabilities found';
    toggleFullList(true);
  }
  var ul = document.getElementsByClassName('js-checks')[0];
  if (ul) { 
    append(ul, 'Canvas render - draws graphics like the map',
        typeof (Modernizr) != 'undefined' && Modernizr.canvas);
    append(ul, 'Cross-Origin Resource Sharing - allows retrieving resources from other domains',
        typeof (Modernizr) != 'undefined' && Modernizr.cors);
    append(ul, 'Flexbox - used for layout and making things pretty',
        typeof (Modernizr) != 'undefined' && Modernizr.flexbox);
    append(ul, 'IndexedDB - allows data to be stored in local browser database',
        typeof (Modernizr) != 'undefined' && Modernizr.indexeddb == true);
    append(ul, 'Local storage - stores settings & caches images',
        typeof (Modernizr) != 'undefined' && Modernizr.localstorage);
    append(ul, 'SVG render - draws 2D vectors like the legend and timeline',
        typeof (Modernizr) != 'undefined' && Modernizr.svg);
    append(ul, 'Webworkers - allows tasks to run in the background',
        typeof (Modernizr) != 'undefined' && Modernizr.webworkers);
  }
  var result = document.getElementsByClassName('js-report')[0];
  if (result) {
    var report = 'Unsupported Browser!';
    if (checkVersion()) {
      report = 'Supported Browser!';
      if (!checkCompat()) {
        report += ' <small><strong>(required features may be disabled!)</strong></small>';
      }
    }
    result.innerHTML = report;
  }
}
function populateCheckInfo ( doSpin ) { showBrowserWaitSpin ( false ) ; var el = document . getElementsByClassName ( 'js-full-list' ) [ 0 ] ; var html = document . getElementsByTagName ( 'html' ) [ 0 ] ; if ( el && html ) { var result = getModernizrValues ( ) ; el . innerHTML = result != '' ? result : 'no capabilities found' ; toggleFullList ( true ) ; } var ul = document . getElementsByClassName ( 'js-checks' ) [ 0 ] ; if ( ul ) { append ( ul , 'Canvas render - draws graphics like the map' , typeof ( Modernizr ) != 'undefined' && Modernizr . canvas ) ; append ( ul , 'Cross-Origin Resource Sharing - allows retrieving resources from other domains' , typeof ( Modernizr ) != 'undefined' && Modernizr . cors ) ; append ( ul , 'Flexbox - used for layout and making things pretty' , typeof ( Modernizr ) != 'undefined' && Modernizr . flexbox ) ; append ( ul , 'IndexedDB - allows data to be stored in local browser database' , typeof ( Modernizr ) != 'undefined' && Modernizr . indexeddb == true ) ; append ( ul , 'Local storage - stores settings & caches images' , typeof ( Modernizr ) != 'undefined' && Modernizr . localstorage ) ; append ( ul , 'SVG render - draws 2D vectors like the legend and timeline' , typeof ( Modernizr ) != 'undefined' && Modernizr . svg ) ; append ( ul , 'Webworkers - allows tasks to run in the background' , typeof ( Modernizr ) != 'undefined' && Modernizr . webworkers ) ; } var result = document . getElementsByClassName ( 'js-report' ) [ 0 ] ; if ( result ) { var report = 'Unsupported Browser!' ; if ( checkVersion ( ) ) { report = 'Supported Browser!' ; if ( ! checkCompat ( ) ) { report += ' <small><strong>(required features may be disabled!)</strong></small>' ; } } result . innerHTML = report ; } }
removes test results and reruns browser check
 @param {boolean} doSpin
removes test results and reruns browser check @param { boolean } doSpin
// do each check and add the result