Skip to content
Snippets Groups Projects

SWTP Comment Project

Merged Tom Käsler requested to merge swtp-2019/arsnova-lite:master into master
All threads resolved!
Viewing commit fdea40c0
Show latest version
1 file
+ 14
14
Compare changes
  • Side-by-side
  • Inline
@@ -14,11 +14,11 @@ import { trigger, transition, style, animate, state, keyframes } from '@angular/
export const rubberBand = [
style({ transform: 'scale3d(1, 1, 1)', offset: 0 }),
style({ transform: 'scale3d(1.05, 0.75, 1)', offset: .3 }),
style({ transform: 'scale3d(0.75, 1.05, 1)', offset: .4 }),
style({ transform: 'scale3d(1.05, 0.95, 1)', offset: .5 }),
style({ transform: 'scale3d(0.95, 1.05, 1)', offset: .65 }),
style({ transform: 'scale3d(1.05, 0.95, 1)', offset: .75 }),
style({ transform: 'scale3d(1.05, 0.75, 1)', offset: 0.3 }),
style({ transform: 'scale3d(0.75, 1.05, 1)', offset: 0.4 }),
style({ transform: 'scale3d(1.05, 0.95, 1)', offset: 0.5 }),
style({ transform: 'scale3d(0.95, 1.05, 1)', offset: 0.65 }),
style({ transform: 'scale3d(1.05, 0.95, 1)', offset: 0.75 }),
style({ transform: 'scale3d(1, 1, 1)', offset: 1 })
];
@@ -56,23 +56,23 @@ export class CommentComponent implements OnInit {
langService.langEmitter.subscribe(lang => translateService.use(lang));
}
startAnimation(state_: any) {
ngOnInit() {
if (this.authenticationService.getRole() === 0) {
this.isStudent = true;
}
this.translateService.use(localStorage.getItem('currentLang'));
}
startAnimation(state_: any): void {
if (!this.animationState) {
this.animationState = state_;
}
}
resetAnimationState() {
resetAnimationState(): void {
this.animationState = '';
}
ngOnInit() {
if (this.authenticationService.getRole() === 0) {
this.isStudent = true;
}
this.translateService.use(localStorage.getItem('currentLang'));
}
setRead(comment: Comment): void {
this.comment = this.wsCommentService.toggleRead(comment);
}