Skip to content

Commit 8123c45

Browse files
committed
remove the counter feature
1 parent 7a16860 commit 8123c45

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

demo/src/pages/Home.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<router-link to="/contact">Contact</router-link>
1212
</li>
1313
</ul>
14-
<p>Number: {{num}}</p>
15-
<p>Each time the number updates it's running a debounce function to call `axe-core` again.<br />It will only run run the debounce once per 5 seconds or 1 second after the last call.</p>
16-
<p>Use this button to see the console update as you fix or break a11y rules.</p>
14+
<!--<p>Number: {{num}}</p>-->
15+
<!--<p>Each time the number updates it's running a debounce function to call `axe-core` again.<br />It will only run run the debounce once per 5 seconds or 1 second after the last call.</p>-->
16+
<!--<p>Use this button to see the console update as you fix or break a11y rules.</p>-->
1717
<button v-if="!showAlt" @click="toggleLogoAltTag">Add an alt tag to the logo</button>
1818
<button v-else @click="toggleLogoAltTag">Remove the alt tag from the logo</button>
1919
</div>
@@ -30,26 +30,26 @@
3030
data () {
3131
return {
3232
msg: 'Welcome - Open your console',
33-
num: 0,
33+
// num: 0,
3434
showAlt: false
3535
}
3636
},
37-
mounted()
38-
{
39-
this.updateNumber();
40-
},
37+
// mounted()
38+
// {
39+
// this.updateNumber();
40+
// },
4141
methods: {
42-
updateNumber()
43-
{
44-
setTimeout(() => {
45-
this.num += 1;
46-
this.updateNumber();
47-
}, 500);
48-
},
42+
// updateNumber()
43+
// {
44+
// setTimeout(() => {
45+
// this.num += 1;
46+
// this.updateNumber();
47+
// }, 500);
48+
// },
4949
toggleLogoAltTag()
5050
{
5151
this.showAlt = !this.showAlt
52-
console.log('Wait for Axe to run again in 5 seconds')
52+
// console.log('Wait for Axe to run again in 5 seconds')
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)