How to use the download/intensity.jpg function in download

To help you get started, we’ve selected a few download examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github usgs / earthquake-eventpages / src / htdocs / modules / base / ProductSummarizer.js View on Github external
getShakeMapSummary = function (product) {
  var properties = product.properties,
      contents = product.contents,
      maxmmi = properties.maxmmi,
      thumbnail;

  maxmmi = ImpactUtil.translateMmi(maxmmi);
  thumbnail = contents['download/intensity.jpg'];

  return [
    '<ul>' +
      '<li class="impact-bubbles">',
        '<span class="mmi', maxmmi, '">',
          '<strong class="roman">', maxmmi, '</strong>',
          '<br>',
          '<abbr title="ShakeMap - Modified Mercalli Intenisty">',
            'ShakeMap',
          '</abbr>',
        '</span>',
      '</li>',
      '<li>',
        '<span>', _formatter.magnitude(properties.magnitude), '</span>',
        '<abbr title="Magnitude">Mag</abbr>',
      '</li>',</ul>