Add url bar controller

This commit is contained in:
balazs
2019-01-21 17:00:13 +01:00
parent d4081f4751
commit 6d136c9279
2 changed files with 12 additions and 3 deletions

View File

@ -14,9 +14,13 @@
<app-web *ngIf="!iframeUrl"></app-web>
<div *ngIf="iframeUrl" class="iframe-container">
<div class="urlbar-container">
<button class="refresh">R</button>
<input type="text" class="urlbar" value="{{iframeUrl}}">
<button class="go">G</button>
<button class="refresh" (click)="reloadIframe()">R</button>
<input type="text"
#urlbar
class="urlbar"
value="{{iframeUrl}}"
(keyup.enter)="changeIframeURL()">
<button class="go" (click)="changeIframeURL()">G</button>
</div>
<iframe class="iframe"
#webiframe