Skip to content

Commit

Permalink
feat: add a minimal demo file to quickly test the build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorainville committed Feb 19, 2018
1 parent d875f43 commit 225a2e0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions public/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<title>vue-tour demo</title>
<script src="https://unpkg.com/vue"></script>
<script src="../dist/vue-tour.umd.js"></script>
<link rel="stylesheet" href="../dist/vue-tour.css">

<div id="app">
<div id="v-step-0">Hello World!</div>
<div id="v-step-1">This is a small demo file for Vue Tour.</div>
<button @click="$tours['myTour'].start()">Start tour</button>
<v-tour name="myTour" :steps="steps"></v-tour>
</div>

<script>
new Vue({
data () {
return {
steps: [
{
target: '#v-step-0',
content: `Discover <strong>Vue Tour</strong>!`
},
{
target: '#v-step-1',
content: 'An awesome plugin made with Vue.js!'
}
]
}
}
}).$mount('#app')
</script>

0 comments on commit 225a2e0

Please sign in to comment.