Skip to content
This repository was archived by the owner on Apr 25, 2020. It is now read-only.

Commit d68d084

Browse files
committed
Describe CDN installation #1
1 parent 16d7250 commit d68d084

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

README.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ You may prefer to explicitly import the plugin and use it inside your components
4646

4747
```vue
4848
<template>
49-
<div>
50-
<float-label>
51-
...
52-
</float-label>
53-
</div>
49+
<float-label>
50+
...
51+
</float-label>
5452
</template>
5553
5654
<script>
@@ -64,9 +62,33 @@ export default {
6462
</script>
6563
```
6664

65+
### CDN
66+
67+
Load script and stylesheet files from CDN:
68+
69+
```html
70+
<!DOCTYPE html>
71+
<html lang="en">
72+
<head>
73+
<link rel="stylesheet" href="//rawgit.com/bkzl/vue-float-label/v1.0.1/dist/vue-float-label.css">
74+
</head>
75+
<body>
76+
<div id="root"></div>
77+
<script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.2.1/vue.min.js"></script>
78+
<script src="//rawgit.com/bkzl/vue-float-label/v1.0.1/dist/vue-float-label.js"></script>
79+
<script>
80+
new Vue({
81+
el: '#root',
82+
template: '<float-label>...</float-label>'
83+
})
84+
</script>
85+
</body>
86+
</html>
87+
```
88+
6789
## Usage
6890

69-
Wrap text/email/password input or textarea:
91+
Wrap text/email/password input or textarea with `<float-label>`:
7092

7193
```html
7294
<float-label>

0 commit comments

Comments
 (0)