-
Notifications
You must be signed in to change notification settings - Fork 3
add embedded scenario for meldemichel #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2a259c9
add embedded scenario for meldemichel
warm-coolguy e4904fc
Merge branch 'main' into add-meldemichel-embedded-scenario
dopenguin b2f7d5d
Merge branch 'main' into add-meldemichel-embedded-scenario
dopenguin b01b43f
Merge branch 'main' into add-meldemichel-embedded-scenario
warm-coolguy 2b22417
Update packages/clients/meldemichel/API.md
warm-coolguy f4477c7
Update packages/clients/meldemichel/API.md
warm-coolguy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 125 additions & 0 deletions
125
packages/clients/meldemichel/example/complete_embedded.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
| <meta | ||
| name="viewport" | ||
| content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" | ||
| /> | ||
| <meta | ||
| http-equiv="Cache-Control" | ||
| content="no-cache, no-store, must-revalidate, max-age=0" | ||
| /> | ||
| <title>MML INTEGRATION TEST</title> | ||
| <style> | ||
| /* div with this id is created on `createMap` call to host shadow DOM */ | ||
| #polarstern-wrapper { | ||
| position: relative; | ||
| height: 400px; | ||
| width: 100%; | ||
| } | ||
|
|
||
| /* the following styling is purely for surrounding example content */ | ||
| html, body { | ||
| margin: 0; | ||
| padding: 0; | ||
| font-family: sans-serif; | ||
| } | ||
|
|
||
| header { | ||
| padding: 0 2em; | ||
| } | ||
|
|
||
| #hh-bug { | ||
| height: 35px; | ||
| width: 400px; | ||
| margin-left: -280px; | ||
| transform: skew(-35deg); | ||
| background: #e10019; | ||
| border-bottom-right-radius: 6px; | ||
| margin-bottom: 1em; | ||
| } | ||
|
|
||
| main { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 2em; | ||
| } | ||
|
|
||
| .blue-content { | ||
| color: white; | ||
| background: #1a4573; | ||
| } | ||
|
|
||
| .padded-x { | ||
| padding-right: 10vw; | ||
| padding-left: 10vw; | ||
| } | ||
|
|
||
| .padded-y { | ||
| padding-top: 4em; | ||
| padding-bottom: 4em; | ||
| } | ||
|
|
||
| h2 { | ||
| font-size: 38pt; | ||
| } | ||
|
|
||
| p { | ||
| font-size: 32px; | ||
| } | ||
|
|
||
| footer { | ||
| color: white; | ||
| background: #003063; | ||
| padding: 1em 5vw; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <nav></nav> | ||
| <header> | ||
| <h1>Meldemichel-Einbindesimulation</h1> | ||
| </header> | ||
| <div id="hh-bug"></div> | ||
| <main> | ||
| <section class="blue-content padded-x padded-y"> | ||
| <h2>Blindtext</h2> | ||
| <p>Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular.</p> | ||
| </section> | ||
| <section> | ||
| <h2 class="padded-x">Aktuell gemeldete Schäden</h2> | ||
| <!-- ID can be anything as long as it's used in .createMap, too --> | ||
| <div id="polarstern"></div> | ||
| </section> | ||
| <section class="padded-x padded-y"> | ||
| <h2>Blindtext II.</h2> | ||
| <p>Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.</p> | ||
| </section> | ||
| </main> | ||
| <footer>At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles.</footer> | ||
| <script type="module"> | ||
| import meldemichelMapClient from '../dist/client-meldemichel.js' | ||
|
|
||
| // toggle to switch between stage/prod layer and report system | ||
| const stage = true | ||
|
|
||
| meldemichelMapClient.createMap({ | ||
| containerId: 'polarstern', | ||
| mode: 'COMPLETE', | ||
| afmUrl: `https://${ | ||
| stage ? 'stage.' : '' | ||
| }afm.hamburg.de/intelliform/forms/mml_melde_michel/standard/mml_melde_michel/index`, | ||
| reportServiceId: stage ? '6061' : '6059', | ||
| configOverride: { | ||
| stylePath: '../dist/style.css', | ||
| attributions: { | ||
| staticAttributions: [ | ||
| `<a href="https://github.com/Dataport/polar/blob/main/LEGALNOTICE.md">Legal Notice (Impressum)</a>` | ||
| ] | ||
| } | ||
| } | ||
| }) | ||
| </script> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.