Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


              <button id="btn"  type="button"  onclick="getPosition()" class="btn btn-default">Hvor fanden er jeg ???</button></span><p>
<div id="alert" class="alert alert-warning" role="alert">
  Bruger browserens Geolocation til opslag i DAWA. Geolocation er mest præcis for enheder med GPS.
<div id="outer" style="visibility:hidden"> 
<div class="card card-cascade narrower">
      <div class="view view-cascade gradient-card-header blue-gradient">
        <h5 class="mb-4" >Du er jo lige her....</h5>
      <div class="card-body card-body-cascade text-center">
        <div id="map-container-google-8" class="z-depth-1-half map-container-5" style="height: 300px">
<div class="card card-cascade narrower">
      <div class="view view-cascade gradient-card-header peach-gradient">
        <h5 class="mb-4" >Lidt mere info....</h5>
      <div class="card-body ">
<div class="container">
  <div class="row">
    <div class="col-xs-12">
      <div class="table-responsive">
        <table id="dataTable"  class="table table-bordered table-hover" style="text-align:left">



              h5 {

#btn {  
  margin:0 auto;

.alert { font-size:12px;}



              function getPosition(){
  if (navigator.geolocation) {

function showPosition(position) {
document.getElementById("outer").style.visibility = "visible";

function getDawaData(position){
  var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
  if (this.readyState == 4 && this.status == 200) {
    var data = JSON.parse(this.responseText);
    var adresse = data.vejstykke.navn + " " + data.husnr + ", " + + " " + data.postnummer.navn;
    var s = "";
    s += "<tr><td><b>Adresse</b></td><td>" + adresse + "</td></tr>";
    s += "<tr><td><b>Koordinater</b></td><td>Længdegrad: "  + 
      position.coords.longitude.toFixed(4) + 
      ", Breddegrad: " +position.coords.latitude.toFixed(4) +  
      " (Højde over havet: " + data.adgangspunkt.højde + " meter)</td></tr>";
    s += "<tr><td><b>Region</b></td><td>" + data.region.navn + "</td></tr>";
    s += "<tr><td><b>Kommune</b></td><td>" + data.kommune.navn + "</td></tr>";
    s += "<tr><td><b>Sogn</b></td><td>" + data.sogn.navn + "</td></tr>";
    s += "<tr><td><b>Ejerlav</b></td><td>" + data.ejerlav.navn + "</td></tr>";
    s += "<tr><td><b>Matrikelnummer</b></td><td>" + data.matrikelnr + "</td></tr>";
    s += "<tr><td><b>Ejendomsnummer</b></td><td>" + data.esrejendomsnr + "</td></tr>";
    s += "<tr><td><b>Zone</b></td><td>" + + "</td></tr>";
    s += "<tr><td><b>Retskreds</b></td><td>" + data.retskreds.navn + "</td></tr>";
    s += "<tr><td><b>Politikreds</b></td><td>" + data.politikreds.navn + "</td></tr>";
    s += "<tr><td><b>Opstillingskreds</b></td><td>" + data.opstillingskreds.navn + "</td></tr>";
    s += "<tr><td><b>Afstemningsområde</b></td><td>" + data.afstemningsområde.navn + "</td></tr>";
    s += "<tr><td><b>Storkreds</b></td><td>" + data.storkreds.navn + "</td></tr>";
    s += "<tr><td><b>Valglandsdel</b></td><td>" + data.valglandsdel.navn + "</td></tr>";

    document.getElementById("dataTable").innerHTML += s;
};"GET", "" + position.coords.longitude + "&y=" + position.coords.latitude, true);

function initMap(position) {
  map = new google.maps.Map(document.getElementById("map-container-google-8"), {
    center: { lat: Number(position.coords.latitude), lng: Number(position.coords.longitude)  },
    zoom: 17