diff --git a/README.md b/README.md index b6826a3a3..1db16673e 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,15 @@ ## Install +Install with `npm`: + ``` -$ npm install --save artplayer +$ npm install artplayer +``` +Or install with `yarn`: + +``` +$ yarn add artplayer ``` ```js @@ -29,7 +36,7 @@ import Artplayer from 'artplayer'; import 'artplayer/dist/artplayer.css'; ``` -OR umd builds are also available +Or umd builds are also available: ```html diff --git a/docs/docs/README.md b/docs/docs/README.md index 239aa6a87..ba26b9818 100644 --- a/docs/docs/README.md +++ b/docs/docs/README.md @@ -839,13 +839,11 @@ var art = new Artplayer({ }); ``` -# API - -## Instance properties +# Instance properties > TODO... -## Class static properties +# Class static properties > TODO... diff --git a/docs/docs/runCode.js b/docs/docs/runCode.js index 0db6a28be..e2300cfbb 100644 --- a/docs/docs/runCode.js +++ b/docs/docs/runCode.js @@ -4,7 +4,7 @@ window.runCode = function(hook) { .filter(function(item) { return item.innerHTML === 'Run Code'; }) - .forEach(item => { + .forEach(function(item) { item.addEventListener('click', function(event) { event.preventDefault(); var codeElement = item.parentElement.nextElementSibling;