update CDN link

This commit is contained in:
Anton Lavrenov 2016-01-17 22:33:01 +08:00
parent d0aff1ef2b
commit 54411374fa

View File

@ -20,7 +20,7 @@ This repository began as a GitHub fork of [ericdrowell/KineticJS](https://github
# Quick Look
```html
<script src="https://cdn.rawgit.com/konvajs/konva/0.10.0/konva.min.js"></script>
<script src="https://cdn.rawgit.com/konvajs/konva/0.11.1/konva.min.js"></script>
<div id="container"></div>
<script>
var stage = new Konva.Stage({
@ -45,7 +45,7 @@ This repository began as a GitHub fork of [ericdrowell/KineticJS](https://github
draggable: true
});
layer.add(box);
layer.draw();
// add cursor styling
@ -65,16 +65,16 @@ Konva supports UMD loading. So you can use all possible variants to load the fra
###1 Load Konva via classical `<script>` tag:
```html
<script src="https://cdn.rawgit.com/konvajs/konva/0.10.0/konva.min.js"></script>
<script src="https://cdn.rawgit.com/konvajs/konva/0.11.1/konva.min.js"></script>
```
You can use CDN: [https://cdn.rawgit.com/konvajs/konva/0.10.0/konva.min.js](https://cdn.rawgit.com/konvajs/konva/0.10.0/konva.min.js)
You can use CDN: [https://cdn.rawgit.com/konvajs/konva/0.11.1/konva.min.js](https://cdn.rawgit.com/konvajs/konva/0.11.1/konva.min.js)
###2 Load via AMD (requirejs):
```javascript
define(['./konva'], function(Konva) {
// your code
// your code
});
```