Skip to content

Commit acdde64

Browse files
committed
docs: make demo assets fit on phone
1 parent caa7d46 commit acdde64

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

demo/assets/Chicago.jsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import all from "chicagoNeighbourhoods";
22
let i = 4;
3-
const four = [];
3+
const sel = [];
4+
const getIndex = () => {
5+
const random = Math.random() * all.length
6+
return Math.floor(random)
7+
}
8+
49
while (i--) {
5-
let indexInList = Math.floor(Math.random() * all.length);
6-
four.push(all[indexInList]);
10+
sel.push(all[getIndex()]);
711
}
812

9-
<h3>What Chicago do you wish to visit tonight?</h3>
10-
<ul><li v-for="a in four">{{ a }}</li></ul>
13+
<h3>Here are {{ sel.length }} hoods</h3>
14+
<ul><li v-for="a in sel">{{ a }}</li></ul>

demo/assets/PureTemplate.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
let isChecked = true
1+
let show = true
22
let today = new Date();
33

4-
<input type="checkbox" v-model="isChecked">
5-
<date-picker v-if="isChecked" :value="today"/>
4+
<input type="checkbox" v-model="show">
5+
<date-picker v-if="show" :value="today"/>

0 commit comments

Comments
 (0)