|
@@ -3,7 +3,6 @@ function ts_to_remaining(ts) {
|
|
return moment.unix(ts).fromNow();
|
|
return moment.unix(ts).fromNow();
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
var app = new Vue({
|
|
var app = new Vue({
|
|
el: '#app',
|
|
el: '#app',
|
|
data: {
|
|
data: {
|
|
@@ -19,6 +18,7 @@ var app = new Vue({
|
|
maxprice: null,
|
|
maxprice: null,
|
|
minprice: null,
|
|
minprice: null,
|
|
restricted: null,
|
|
restricted: null,
|
|
|
|
+ type: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -29,12 +29,7 @@ var app = new Vue({
|
|
splash.style.display = "none";
|
|
splash.style.display = "none";
|
|
// unhide main container after mount
|
|
// unhide main container after mount
|
|
this.$el.style.display = "block";
|
|
this.$el.style.display = "block";
|
|
-
|
|
|
|
this.update();
|
|
this.update();
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
window.addEventListener('hashchange', function() {
|
|
window.addEventListener('hashchange', function() {
|
|
self.update()
|
|
self.update()
|
|
|
|
|
|
@@ -50,6 +45,8 @@ var app = new Vue({
|
|
if (this.query.restricted) {query += "&ewb=1";}
|
|
if (this.query.restricted) {query += "&ewb=1";}
|
|
if (this.query.maxprice) {query += "&maxprice=" + this.query.maxprice;}
|
|
if (this.query.maxprice) {query += "&maxprice=" + this.query.maxprice;}
|
|
if (this.query.minprice) {query += "&minprice=" + this.query.minprice;}
|
|
if (this.query.minprice) {query += "&minprice=" + this.query.minprice;}
|
|
|
|
+ if (this.query.type == 1) {query += "&type=1";}
|
|
|
|
+ if (this.query.type == 2) {query += "&type=2";}
|
|
return query;
|
|
return query;
|
|
} else {
|
|
} else {
|
|
return this.query.url
|
|
return this.query.url
|