Skip to content

Adds noscript section to an ember-cli app

License

Notifications You must be signed in to change notification settings

jrjohnson/ember-noscript

Repository files navigation

ember-noscript

Ember Observer Score

Only does one thing, hopefully well. Adding a noscript tag to your ember app's index.html:

<noscript>
  <p>
    For full functionality of this site it is necessary to enable JavaScript.  
    Here are the
    <a href='https://www.enable-javascript.com/' target='_blank'> instructions how to enable JavaScript in your web browser</a>.
  </p>
</noscript>

Compatibility

  • Ember.js v3.24 or above
  • Ember CLI v3.24 or above
  • Node.js v12 or above

Installation

ember install ember-noscript

Customization

This addon is configured via your applications config/environment.js file.

The default noScript value is:

  noScript: {
    'content': "<p>" +
                "For full functionality of this site it is necessary to enable JavaScript." +
                "Here are the <a href='https://www.enable-javascript.com/' target='_blank'>" +
                "instructions on how to enable JavaScript in your web browser</a>." +
              "</p>",
    'placeIn': 'head'
  }

See the Contributing guide for details.

License

This project is licensed under the MIT License.