This repo provides the header shared by all WRI websites.
Requirements:
- NodeJs 5.2+ How to install
- Ruby 2+ How to install
Install project dependencies:
npm install
To see in development mode run and follow terminal instructions:
npm start
Go to dev url enviroment for see the demo app in action.
Add this snippet your site:
(function(){
var element = document.createElement('div'),
scriptTag = document.createElement('script');
element.id = 'headerWrI';
scriptTag.src = 'https://vizzuality.github.io/wri-guide/wri-guide-assets.js';
document.body.insertBefore(element, document.body.firstChild);
document.body.appendChild(scriptTag);
})();
- Fork it!
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a pull request :D