Compare commits
No commits in common. "fdeab38203b0f09a96b37e5bb65ef900f7916675" and "5a274de64f66528ef2d7ae5c1e2c72eb2ee9b448" have entirely different histories.
fdeab38203
...
5a274de64f
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 v-if="ticker_html !== ''" :content="ticker_html" />
|
<TickerBar :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;
|
||||||
|
|
||||||
private get marqueeDuration(): string {
|
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