diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 6c3b5f4..f2e4218 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -43,7 +43,7 @@
- +
@@ -72,10 +72,10 @@
-

+

Tap into the OpenAIRE Graph.

-
+
The OpenAIRE Graph is one of the largest open scholarly record collections worldwide, key in fostering Open Science and establishing its practices in the daily research activities. Conceived as a public and transparent good, populated out of data @@ -83,7 +83,7 @@ assessment of science back in the hands of the scientific community.
-
+
@@ -315,7 +315,7 @@
+ src="assets/monitor-assets/home/monitor.jpg">
diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 131fbf5..a1ad4bc 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -70,13 +70,11 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit, IDeactiv private subscriptions = []; private mutationObserver: MutationObserver; private user: User; - @ViewChildren('scrolling_element') elements: QueryList; @ViewChild('contact') contact: ElementRef; isMobile: boolean = false; isServer: boolean; constructor( - private route: ActivatedRoute, private _router: Router, private _meta: Meta, private _title: Title, @@ -165,26 +163,6 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit, IDeactiv if(this.contact) { intersectionObserver.observe(this.contact.nativeElement); } - this.mutationObserver = new MutationObserver(entries => { - entries.forEach(entry => { - if (entry.attributeName === 'style') { - let opacities: number[] = this.elements.map(element => +element.nativeElement.style.opacity); - let active: number = opacities.indexOf(Math.max(...opacities)); - this.elements.forEach((element, index) => { - if (index === active) { - element.nativeElement.classList.remove('uk-disabled'); - } else { - element.nativeElement.classList.add('uk-disabled'); - } - }) - } - }) - }); - this.elements.changes.subscribe(() => { - this.elements.forEach(element => { - this.mutationObserver.observe(element.nativeElement, {attributes: true}); - }); - }); this.subscriptions.push(intersectionObserver); }