Update event image source to use new auto calendar generator
parent
781760812b
commit
981215e445
File diff suppressed because it is too large
Load Diff
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="wrapper" [@inout]="startFadeIn">
|
<div class="wrapper" [@inout]="startFadeIn">
|
||||||
<div class="photo">
|
<div class="photo">
|
||||||
<button md-button (click)="toggleState()">
|
<button md-button (click)="toggleState()">
|
||||||
<img src="../../assets/images/event_back.png" />
|
<img src="{{imgSrc}}" />
|
||||||
</button>
|
</button>
|
||||||
</div><!--
|
</div><!--
|
||||||
--><div class="info" (click)="toggleState()">
|
--><div class="info" (click)="toggleState()">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
import { Component, AfterContentInit, Input } from '@angular/core';
|
import { Component, AfterContentInit, Input } from '@angular/core';
|
||||||
import { trigger, state, style, transition, animate } from '@angular/animations';
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
||||||
|
|
||||||
|
import { MONTHS_FULL } from '../../constants/months';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'event-large-component',
|
selector: 'event-large-component',
|
||||||
templateUrl: './event-large.component.html',
|
templateUrl: './event-large.component.html',
|
||||||
|
|
@ -54,6 +56,14 @@ export class EventLargeComponent implements AfterContentInit {
|
||||||
@Input()
|
@Input()
|
||||||
public delayFadeIn: number = 100;
|
public delayFadeIn: number = 100;
|
||||||
|
|
||||||
|
public _imgSrc: string;
|
||||||
|
public get imgSrc(): string{
|
||||||
|
var monthNum = this.startDate.getMonth();
|
||||||
|
var monthName = '';
|
||||||
|
monthName = MONTHS_FULL[monthNum];
|
||||||
|
return "/cim/" + monthName + "/" + this.startDate.getDate();
|
||||||
|
}
|
||||||
|
|
||||||
constructor(){
|
constructor(){
|
||||||
console.log(this.title);
|
console.log(this.title);
|
||||||
}
|
}
|
||||||
|
|
@ -72,3 +82,4 @@ export class EventLargeComponent implements AfterContentInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,18 @@ export const MONTHS = {
|
||||||
10: "NOV",
|
10: "NOV",
|
||||||
11: "DEC"
|
11: "DEC"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const MONTHS_FULL = {
|
||||||
|
0: "JANUARY",
|
||||||
|
1: "FEBRUARY",
|
||||||
|
2: "MARCH",
|
||||||
|
3: "APRIL",
|
||||||
|
4: "MAY",
|
||||||
|
5: "JUNE",
|
||||||
|
6: "JULY",
|
||||||
|
7: "AUGUST",
|
||||||
|
8: "SEPTEMBER",
|
||||||
|
9: "OCTOBER",
|
||||||
|
10: "NOVEMBER",
|
||||||
|
11: "DECEMBER"
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue