|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 5 | + <meta |
| 6 | + name="viewport" |
| 7 | + content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" |
| 8 | + /> |
| 9 | + <meta |
| 10 | + http-equiv="Cache-Control" |
| 11 | + content="no-cache, no-store, must-revalidate, max-age=0" |
| 12 | + /> |
| 13 | + <title>MML INTEGRATION TEST</title> |
| 14 | + <style> |
| 15 | + /* div with this id is created on `createMap` call to host shadow DOM */ |
| 16 | + #polarstern-wrapper { |
| 17 | + position: relative; |
| 18 | + height: 400px; |
| 19 | + width: 100%; |
| 20 | + } |
| 21 | + |
| 22 | + /* the following styling is purely for surrounding example content */ |
| 23 | + html, body { |
| 24 | + margin: 0; |
| 25 | + padding: 0; |
| 26 | + font-family: sans-serif; |
| 27 | + } |
| 28 | + |
| 29 | + header { |
| 30 | + padding: 0 2em; |
| 31 | + } |
| 32 | + |
| 33 | + #hh-bug { |
| 34 | + height: 35px; |
| 35 | + width: 400px; |
| 36 | + margin-left: -280px; |
| 37 | + transform: skew(-35deg); |
| 38 | + background: #e10019; |
| 39 | + border-bottom-right-radius: 6px; |
| 40 | + margin-bottom: 1em; |
| 41 | + } |
| 42 | + |
| 43 | + main { |
| 44 | + display: flex; |
| 45 | + flex-direction: column; |
| 46 | + gap: 2em; |
| 47 | + } |
| 48 | + |
| 49 | + .blue-content { |
| 50 | + color: white; |
| 51 | + background: #1a4573; |
| 52 | + } |
| 53 | + |
| 54 | + .padded-x { |
| 55 | + padding-right: 10vw; |
| 56 | + padding-left: 10vw; |
| 57 | + } |
| 58 | + |
| 59 | + .padded-y { |
| 60 | + padding-top: 4em; |
| 61 | + padding-bottom: 4em; |
| 62 | + } |
| 63 | + |
| 64 | + h2 { |
| 65 | + font-size: 38pt; |
| 66 | + } |
| 67 | + |
| 68 | + p { |
| 69 | + font-size: 32px; |
| 70 | + } |
| 71 | + |
| 72 | + footer { |
| 73 | + color: white; |
| 74 | + background: #003063; |
| 75 | + padding: 1em 5vw; |
| 76 | + } |
| 77 | + </style> |
| 78 | + </head> |
| 79 | + <body> |
| 80 | + <nav></nav> |
| 81 | + <header> |
| 82 | + <h1>Meldemichel-Einbindesimulation</h1> |
| 83 | + </header> |
| 84 | + <div id="hh-bug"></div> |
| 85 | + <main> |
| 86 | + <section class="blue-content padded-x padded-y"> |
| 87 | + <h2>Blindtext</h2> |
| 88 | + <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> |
| 89 | + </section> |
| 90 | + <section> |
| 91 | + <h2 class="padded-x">Aktuell gemeldete Schäden</h2> |
| 92 | + <!-- ID can be anything as long as it's used in .createMap, too --> |
| 93 | + <div id="polarstern"></div> |
| 94 | + </section> |
| 95 | + <section class="padded-x padded-y"> |
| 96 | + <h2>Blindtext II.</h2> |
| 97 | + <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> |
| 98 | + </section> |
| 99 | + </main> |
| 100 | + <footer>At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles.</footer> |
| 101 | + <script type="module"> |
| 102 | + import meldemichelMapClient from '../dist/client-meldemichel.js' |
| 103 | + |
| 104 | + // toggle to switch between stage/prod layer and report system |
| 105 | + const stage = true |
| 106 | + |
| 107 | + meldemichelMapClient.createMap({ |
| 108 | + containerId: 'polarstern', |
| 109 | + mode: 'COMPLETE', |
| 110 | + afmUrl: `https://${ |
| 111 | + stage ? 'stage.' : '' |
| 112 | + }afm.hamburg.de/intelliform/forms/mml_melde_michel/standard/mml_melde_michel/index`, |
| 113 | + reportServiceId: stage ? '6061' : '6059', |
| 114 | + configOverride: { |
| 115 | + stylePath: '../dist/style.css', |
| 116 | + attributions: { |
| 117 | + staticAttributions: [ |
| 118 | + `<a href="https://github.com/Dataport/polar/blob/main/LEGALNOTICE.md">Legal Notice (Impressum)</a>` |
| 119 | + ] |
| 120 | + } |
| 121 | + } |
| 122 | + }) |
| 123 | + </script> |
| 124 | + </body> |
| 125 | +</html> |
0 commit comments