Skip to content

Commit

Permalink
Remove schedule links
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwink0 committed Jul 31, 2021
1 parent be268bb commit ee3693b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</v-hover>
<!-- REGULAR PERIOD -->
<div v-else :key="pIndex" :style="{'text-decoration': 'none'}">
<v-sheet v-if="period.link" class="period regular-period border caption text-center d-flex" :color="getColor(period.name) && getColor(period.name)+' lighten-5'" :height="period.duration+1" tile :tag="period.link ? 'a' : 'div'" :href="period.link || false" target="_blank" @mousemove.stop="onMouseMove">
<v-sheet v-if="period.link" class="period regular-period border caption text-center d-flex" :color="getColor(period.name) && getColor(period.name)+' lighten-5'" :height="period.duration+1" tile :tag="'div'" @mousemove.stop="onMouseMove">
<v-layout :class="['content', {short: period.duration <= 50 || group.length > 1}, getColor(period.name) && getColor(period.name)+'--text text--darken-4']" column align-center justify-center>
<div ref="periodNames" class="period-name">
{{period.name && settings.periodNames[period.name.substring(1, 2)-1] ? settings.periodNames[period.name.substring(1, 2)-1]+" ("+period.name+")" : period.name}}
Expand All @@ -75,13 +75,10 @@
<!-- Part of v-if for text height: && $refs.periodNames[gIndex+cIndex+pIndex].offsetHeight < 28 -->
<div v-if="period.name && period.start && period.duration >= 30" :class="['text-no-wrap', {'text--secondary': !getColor(period.name)}]">{{period.start|formatTime}}&ndash;{{period.end|formatTime}}</div>
<div v-if="period.name && period.duration >= 50 && time.utcNow >= period.start && time.utcNow <= period.end" class="hidden-print-only time-remain overline font-weight-medium">{{Math.ceil((period.end-time.utcNow)/$MS_PER_MIN)}} min. left</div>
<div class="hovercard font-weight-medium">
Join event <v-icon dark small class="material-icons-outlined hovercard-icon">launch</v-icon>
</div>
</v-layout>
</v-sheet>

<v-sheet v-else class="period regular-period border caption text-center d-flex" :color="getColor(period.name) && getColor(period.name)+' lighten-5'" :height="period.duration+1" tile :tag="settings.links[period.name] ? 'a' : 'div'" :href="settings.links[period.name] || false" target="_blank" @mousemove.stop="onMouseMove">
<v-sheet v-else class="period regular-period border caption text-center d-flex" :color="getColor(period.name) && getColor(period.name)+' lighten-5'" :height="period.duration+1" tile :tag="'div'" @mousemove.stop="onMouseMove">
<v-layout :class="['content', {short: period.duration <= 50 || group.length > 1}, getColor(period.name) && getColor(period.name)+'--text text--darken-4']" column align-center justify-center>
<div ref="periodNames" class="period-name">
{{period.name && settings.periodNames[period.name.substring(1, 2)-1] ? settings.periodNames[period.name.substring(1, 2)-1]+" ("+period.name+")" : period.name}}
Expand All @@ -90,9 +87,6 @@
<!-- Part of v-if for text height: && $refs.periodNames[gIndex+cIndex+pIndex].offsetHeight < 28 -->
<div v-if="period.name && period.start && period.duration >= 30" :class="['text-no-wrap', {'text--secondary': !getColor(period.name)}]">{{period.start|formatTime}}&ndash;{{period.end|formatTime}}</div>
<div v-if="period.name && period.duration >= 50 && time.utcNow >= period.start && time.utcNow <= period.end" class="hidden-print-only time-remain overline font-weight-medium">{{Math.ceil((period.end-time.utcNow)/$MS_PER_MIN)}} min. left</div>
<div class="hovercard font-weight-medium">
Join class <v-icon dark small class="material-icons-outlined hovercard-icon">launch</v-icon>
</div>
</v-layout>
</v-sheet>
</div>
Expand Down Expand Up @@ -249,7 +243,7 @@ export default {
},
methods: {
/**
*
*
*/
getColor(period) {
if (this.settings.showColors && period && /^P[1-7]/.test(period))
Expand Down Expand Up @@ -286,7 +280,7 @@ export default {
return now >= schedule[0].start && now <= schedule[schedule.length-1].end;
},
/**
*
*
*/
indicatorTop(now, date) {
//console.log("INDICTOP: "+(now-this.schedules[date.toISOString()].schedule[0].start)/this.$MS_PER_MIN)
Expand Down

0 comments on commit ee3693b

Please sign in to comment.