Added code embed dialog functionality.
LocationBasedServices/mowesta/ng-webcomponent There was a failure building this commit
LocationBasedServices/mowesta/ng-webcomponent There was a failure building this commit
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
<style>
|
||||
ol li {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.main-content { padding-left: 10px; padding-bottom: 20px; }
|
||||
.code-snippet {
|
||||
background: lightgrey;
|
||||
margin: 10px;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
</style>
|
||||
<mat-toolbar mat-dialog-title class="view-bar">
|
||||
<mat-toolbar-row>
|
||||
<mat-icon class="mr-sm">code</mat-icon>
|
||||
<!-- <span>{{ res.strings('conditions_dialog_title') }}</span> -->
|
||||
<span>Code einbetten</span>
|
||||
<div class="fx-auto"></div>
|
||||
<button mat-icon-button
|
||||
[matTooltip]="res.strings('button_close')"
|
||||
class="bg-lighter"
|
||||
(click)="onClose()">
|
||||
<mat-icon >close</mat-icon>
|
||||
</button>
|
||||
</mat-toolbar-row>
|
||||
</mat-toolbar>
|
||||
<mat-dialog-content style="margin: 0;">
|
||||
<div class="main-content">
|
||||
<ol>
|
||||
<li>Stylesheet verlinken.
|
||||
<div class="fx-row code-snippet">
|
||||
<code>
|
||||
<<span>link</span>
|
||||
href="https://www.mowesta.com/app/weather-forecast-today/weather-forecast-today.css"
|
||||
rel="stylesheet">
|
||||
</code>
|
||||
</div>
|
||||
</li>
|
||||
<li>Skripte einbetten.
|
||||
<div class="fx-row code-snippet">
|
||||
<code>
|
||||
<<span>script</span>
|
||||
src="https://www.mowesta.com/app/weather-forecast-today/weather-forecast-today-es2015.js"
|
||||
type="module"></<span>script</span>>
|
||||
<br>
|
||||
<<span>script</span>
|
||||
src="https://www.mowesta.com/app/weather-forecast-today/weather-forecast-today-es5.js"
|
||||
nomodule=""
|
||||
defer=""></<span>script</span>>
|
||||
</code>
|
||||
</div>
|
||||
</li>
|
||||
<li>Web Component auf der Webseite einfügen. Hierbei kann für das Attribut "lang-code", entweder "de" für Deutsch oder "en" für Englisch eingesetzt werden.
|
||||
<div class="fx-row code-snippet">
|
||||
<code>
|
||||
<<span>weather-forecast-today</span>
|
||||
lang-code="de"
|
||||
city-id="{{ data.city.id }}"
|
||||
day-time="true"
|
||||
no-header="false"
|
||||
no-footer="false"></<span>weather-forecast-today</span>>
|
||||
</code>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</mat-dialog-content>
|
||||
Reference in New Issue
Block a user