mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-19 21:17:51 +00:00
Styles and fixes switching between pages, Ref: #361
This commit is contained in:
parent
e2afeffe2f
commit
7b1371dff9
@ -1,4 +1,5 @@
|
||||
<table style="width: 600px; border: 0px solid #C0C0C0; background-color: #263238" cellSpacing=0 cellPadding=3>
|
||||
|
||||
<table class="butler" style="width: 600px; border: 0px solid #C0C0C0; background-color: #263238" cellSpacing=0 cellPadding=3>
|
||||
<tr><td height=80 style="background-color: #263238" #code>
|
||||
<div id="{{ this.divId }}"></div>
|
||||
|
||||
|
@ -0,0 +1,7 @@
|
||||
.butler a {
|
||||
color: #0097a7;
|
||||
}
|
||||
|
||||
.butler {
|
||||
font-size: 14px;
|
||||
}
|
@ -1,11 +1,12 @@
|
||||
import { Component, OnInit, ElementRef, ViewChild, AfterViewInit } from '@angular/core';
|
||||
import { Component, OnInit, ElementRef, ViewChild, AfterViewInit, ViewEncapsulation, OnDestroy } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-adbutler',
|
||||
templateUrl: './adbutler.component.html',
|
||||
styleUrls: ['./adbutler.component.scss']
|
||||
styleUrls: ['./adbutler.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class AdbutlerComponent implements OnInit, AfterViewInit {
|
||||
export class AdbutlerComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
id: number;
|
||||
setId: number;
|
||||
rnd: number;
|
||||
@ -58,4 +59,10 @@ export class AdbutlerComponent implements OnInit, AfterViewInit {
|
||||
this.code.nativeElement.appendChild(scriptElement);
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
// start from 0 when switching pages
|
||||
(window as any).sparkCounter355353 = 0;
|
||||
delete (window as any).loadedTextAds355353[this.sparkCounter];
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user