Compare commits
2 commits
5a274de64f
...
fdeab38203
| Author | SHA1 | Date | |
|---|---|---|---|
| fdeab38203 | |||
| f01cf0fbe0 |
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
<TitleBar :title="title_html" />
|
<TitleBar :title="title_html" />
|
||||||
<HelloWorld />
|
<HelloWorld />
|
||||||
</v-main>
|
</v-main>
|
||||||
<TickerBar :content="ticker_html" />
|
<TickerBar v-if="ticker_html !== ''" :content="ticker_html" />
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ export default class TickerBar extends Vue {
|
||||||
@Prop({ required: true })
|
@Prop({ required: true })
|
||||||
private readonly content!: string;
|
private readonly content!: string;
|
||||||
|
|
||||||
get marqueeDuration(): string {
|
private get marqueeDuration(): string {
|
||||||
// 10 seconds + another second per 7 chars
|
// 10 seconds + another second per 7 chars
|
||||||
let dv = this.content ? Math.round(this.content.length / 7) : 0;
|
let dv = this.content ? Math.round(this.content.length / 7) : 0;
|
||||||
return 10 + dv + "s";
|
return 10 + dv + "s";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue