Skip to content

Commit

Permalink
links
Browse files Browse the repository at this point in the history
  • Loading branch information
glynnbird committed Nov 26, 2024
1 parent 7ab9b60 commit 5dc150c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
32 changes: 15 additions & 17 deletions dist/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ var app = new Vue({
subsetOfStories: {},
story: {}
},
computed: {
paddedPageStr: function() {
return this.pageStr.padEnd(3, '_')
}
},
created() {
window.addEventListener('keydown', async (e) => {
methods: {
goto: (page) => {
app.pageStr = page
},
key: async (e) => {
if (e.keyCode === 39 || e.keyCode === 38) {
app.page = ++app.page % 1000
app.pageStr = app.page.toString()
Expand All @@ -42,16 +40,16 @@ var app = new Vue({
app.pageStr = app.pageStr.substr(0,app.pageStr.length - 1)
}
}
if (app.page === 999 && app.progress === 100) {
/* await db.destroy().then( function() {
db = new PouchDB('teletext')
startup()
setTimeout(function() {
app.page = 100
app.pageStr = '100'
},1000)
})*/
}
}
},
computed: {
paddedPageStr: function() {
return this.pageStr.padEnd(3, '_')
}
},
created() {
window.addEventListener('keydown', async (e) => {
app.key(e)
});
},
watch: {
Expand Down
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<span class="yellow blackbg">&#xe148;&#xe141;&#xe143;&#xe14b;&#xe145;&#xe152;&#xe120;&#xe14e;&#xe145;&#xe157;&#xe153;</span>
</span>
&#xE2C0;
<span class="white greenbg">101-110</span> <span class="white">News Index</span>&#xE2C0;
<span class="white greenbg" @click="app.goto('100')">100 </span> <span class="white">News Index</span>&#xE2C0;
&#xE2C0;
<span class="white greenbg">200-299</span> <span class="white">News Stories</span>&#xE2C0;
<span class="white greenbg" @click="app.goto('200')">200+</span> <span class="white">News Stories</span>&#xE2C0;
&#xE2C0;
&#xE2C0;
&#xE2C0;
Expand Down

0 comments on commit 5dc150c

Please sign in to comment.