Skip to content

Commit 1e2732e

Browse files
committed
Rebuild
1 parent 85d8f2f commit 1e2732e

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

dist/show-js-error.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@
9797
.show-js-error__prev,
9898
.show-js-error__next,
9999
.show-js-error__num {
100-
font-size: 9px;
100+
font-size: 11px;
101+
}
102+
.show-js-error__next {
103+
margin-left: 1px;
101104
}
102105
.show-js-error__num {
103106
margin-right: 5px;

dist/show-js-error.custom.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,6 @@ var showJSError = {
311311
container: this._arrows
312312
});
313313

314-
this._num = this.elem({
315-
tag: 'span',
316-
name: 'num',
317-
props: {
318-
innerHTML: this._i + 1
319-
},
320-
container: this._arrows
321-
});
322-
323314
this._next = this.elem({
324315
tag: 'input',
325316
name: 'next',
@@ -338,6 +329,15 @@ var showJSError = {
338329
container: this._arrows
339330
});
340331

332+
this._num = this.elem({
333+
tag: 'span',
334+
name: 'num',
335+
props: {
336+
innerHTML: this._i + 1
337+
},
338+
container: this._arrows
339+
});
340+
341341
var append = function() {
342342
document.body.appendChild(that._container);
343343
};
@@ -477,7 +477,7 @@ var showJSError = {
477477
}
478478

479479
this._prev.disabled = !this._i;
480-
this._num.innerHTML = this._i + 1;
480+
this._num.innerHTML = (this._i + 1) + ' / ' + this._buffer.length;
481481
this._next.disabled = this._i === this._buffer.length - 1;
482482

483483
this._show();

dist/show-js-error.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,6 @@ var showJSError = {
311311
container: this._arrows
312312
});
313313

314-
this._num = this.elem({
315-
tag: 'span',
316-
name: 'num',
317-
props: {
318-
innerHTML: this._i + 1
319-
},
320-
container: this._arrows
321-
});
322-
323314
this._next = this.elem({
324315
tag: 'input',
325316
name: 'next',
@@ -338,6 +329,15 @@ var showJSError = {
338329
container: this._arrows
339330
});
340331

332+
this._num = this.elem({
333+
tag: 'span',
334+
name: 'num',
335+
props: {
336+
innerHTML: this._i + 1
337+
},
338+
container: this._arrows
339+
});
340+
341341
var append = function() {
342342
document.body.appendChild(that._container);
343343
};
@@ -477,7 +477,7 @@ var showJSError = {
477477
}
478478

479479
this._prev.disabled = !this._i;
480-
this._num.innerHTML = this._i + 1;
480+
this._num.innerHTML = (this._i + 1) + ' / ' + this._buffer.length;
481481
this._next.disabled = this._i === this._buffer.length - 1;
482482

483483
this._show();

0 commit comments

Comments
 (0)