Skip to content

Commit

Permalink
docs(readme): 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gierschv committed Nov 29, 2018
1 parent e4daaff commit d2b5f8a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ yarn add flat-embed
or use the latest version hosted on jsDelivr:

```html
<script src="https://cdn.jsdelivr.net/npm/flat-embed@v0.10.0/dist/embed.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/flat-embed@v0.11.0/dist/embed.min.js"></script>
```

## Getting Started
Expand All @@ -31,7 +31,7 @@ The simplest way to get started is to pass a DOM element to our embed that will

```html
<div id="embed-container"></div>
<script src="https://cdn.jsdelivr.net/npm/flat-embed@v0.10.0/dist/embed.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/flat-embed@v0.11.0/dist/embed.min.js"></script>
<script>
var container = document.getElementById('embed-container');
var embed = new Flat.Embed(container, {
Expand Down Expand Up @@ -307,14 +307,6 @@ embed.getMIDI().then(function (midi) {
});
```

```js
// PNG
embed.getPNG({result: 'dataURL'}).then(function (png) {
// PNG file as a DataURL
console.log(png);
});
```

### `getScoreMeta(): object`

Get the score metadata of the hosted score. The object will have the same format that the one returned [by our API `GET /v2/scores/{score}`](https://flat.io/developers/api/reference/#operation/getScore).
Expand Down

0 comments on commit d2b5f8a

Please sign in to comment.