2023-06-23 14:00:35 +02:00
<!DOCTYPE html>
2023-06-26 10:22:18 +02:00
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "da" xml:lang = "da" > < head >
2023-06-23 14:00:35 +02:00
< meta charset = "utf-8" >
< meta name = "generator" content = "quarto-1.3.361" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0, user-scalable=yes" >
< meta name = "author" content = "Andreas" >
< meta name = "description" content = "Lidt om vores campertur." >
< title > Familien G Damsbo - Canada i camper< / title >
< style >
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
}
pre.numberSource { margin-left: 3em; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
< / style >
< script src = "../site_libs/quarto-nav/quarto-nav.js" > < / script >
< script src = "../site_libs/quarto-nav/headroom.min.js" > < / script >
< script src = "../site_libs/clipboard/clipboard.min.js" > < / script >
< script src = "../site_libs/quarto-search/autocomplete.umd.js" > < / script >
< script src = "../site_libs/quarto-search/fuse.min.js" > < / script >
< script src = "../site_libs/quarto-search/quarto-search.js" > < / script >
< meta name = "quarto:offset" content = "../" >
< script src = "../site_libs/quarto-html/quarto.js" > < / script >
< script src = "../site_libs/quarto-html/popper.min.js" > < / script >
< script src = "../site_libs/quarto-html/tippy.umd.min.js" > < / script >
< script src = "../site_libs/quarto-html/anchor.min.js" > < / script >
< link href = "../site_libs/quarto-html/tippy.css" rel = "stylesheet" >
< link href = "../site_libs/quarto-html/quarto-syntax-highlighting.css" rel = "stylesheet" class = "quarto-color-scheme" id = "quarto-text-highlighting-styles" >
< link href = "../site_libs/quarto-html/quarto-syntax-highlighting-dark.css" rel = "stylesheet" class = "quarto-color-scheme quarto-color-alternate" id = "quarto-text-highlighting-styles" >
< script src = "../site_libs/bootstrap/bootstrap.min.js" > < / script >
< link href = "../site_libs/bootstrap/bootstrap-icons.css" rel = "stylesheet" >
< link href = "../site_libs/bootstrap/bootstrap.min.css" rel = "stylesheet" class = "quarto-color-scheme" id = "quarto-bootstrap" data-mode = "light" >
< link href = "../site_libs/bootstrap/bootstrap-dark.min.css" rel = "stylesheet" class = "quarto-color-scheme quarto-color-alternate" id = "quarto-bootstrap" data-mode = "dark" >
< script id = "quarto-search-options" type = "application/json" > {
"location": "navbar",
"copy-button": false,
"collapse-after": 3,
"panel-placement": "end",
"type": "overlay",
"limit": 20,
"language": {
2023-06-26 10:22:18 +02:00
"search-no-results-text": "Ingen resultater",
"search-matching-documents-text": "Matchende dokumenter",
"search-copy-link-title": "Kopier link for at søge",
"search-hide-matches-text": "Skjul yderligere resultater",
"search-more-match-text": "andet resultat i dette dokument",
"search-more-matches-text": "andre resultater i dette dokument",
"search-clear-button-title": "Ryd",
"search-detached-cancel-button-title": "Fortryd",
"search-submit-button-title": "Indsend",
"search-label": "Søg"
2023-06-23 14:00:35 +02:00
}
}< / script >
< script async = "" src = "https://stats.nikohuru.dk/script.js" data-website-id = "a4d92881-2a72-4d85-ac3c-6864e87b9881" > < / script >
< script src = "../site_libs/htmlwidgets-1.6.2/htmlwidgets.js" > < / script >
< script src = "../site_libs/jquery-1.12.4/jquery.min.js" > < / script >
< link href = "../site_libs/leaflet-1.3.1/leaflet.css" rel = "stylesheet" >
< script src = "../site_libs/leaflet-1.3.1/leaflet.js" > < / script >
< link href = "../site_libs/leafletfix-1.0.0/leafletfix.css" rel = "stylesheet" >
< script src = "../site_libs/proj4-2.6.2/proj4.min.js" > < / script >
< script src = "../site_libs/Proj4Leaflet-1.0.1/proj4leaflet.js" > < / script >
< link href = "../site_libs/rstudio_leaflet-1.3.1/rstudio_leaflet.css" rel = "stylesheet" >
< script src = "../site_libs/leaflet-binding-2.1.2/leaflet.js" > < / script >
< script src = "../site_libs/leaflet-providers-1.9.0/leaflet-providers_1.9.0.js" > < / script >
< script src = "../site_libs/leaflet-providers-plugin-2.1.2/leaflet-providers-plugin.js" > < / script >
< link rel = "stylesheet" href = "../styles.css" >
< / head >
< body class = "nav-fixed" >
< div id = "quarto-search-results" > < / div >
< header id = "quarto-header" class = "headroom fixed-top" >
< nav class = "navbar navbar-expand-lg navbar-dark " >
< div class = "navbar-container container-fluid" >
< div class = "navbar-brand-container" >
< a class = "navbar-brand" href = "../index.html" >
< span class = "navbar-title" > Familien G Damsbo< / span >
< / a >
< / div >
2023-06-26 10:22:18 +02:00
< div id = "quarto-search" class = "" title = "Søg" > < / div >
< button class = "navbar-toggler" type = "button" data-bs-toggle = "collapse" data-bs-target = "#navbarCollapse" aria-controls = "navbarCollapse" aria-expanded = "false" aria-label = "Skift navigation" onclick = "if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }" >
2023-06-23 14:00:35 +02:00
< span class = "navbar-toggler-icon" > < / span >
< / button >
< div class = "collapse navbar-collapse" id = "navbarCollapse" >
< ul class = "navbar-nav navbar-nav-scroll me-auto" >
< li class = "nav-item" >
< a class = "nav-link" href = "../index.html" rel = "" target = "" >
2023-06-26 10:22:18 +02:00
< span class = "menu-text" > Start< / span > < / a >
2023-06-23 14:00:35 +02:00
< / li >
< li class = "nav-item" >
< a class = "nav-link" href = "../food.html" rel = "" target = "" >
< span class = "menu-text" > Opskrifter< / span > < / a >
< / li >
< li class = "nav-item" >
< a class = "nav-link" href = "../blog.html" rel = "" target = "" >
< span class = "menu-text" > Blog< / span > < / a >
< / li >
< / ul >
< ul class = "navbar-nav navbar-nav-scroll ms-auto" >
< li class = "nav-item" >
< a class = "nav-link" href = "https://github.com/agdamsbo/familien.gdamsbo" rel = "" target = "" >
2023-06-26 10:22:18 +02:00
< span class = "menu-text" > Kildekode< / span > < / a >
2023-06-23 14:00:35 +02:00
< / li >
< / ul >
< div class = "quarto-navbar-tools" >
2023-06-26 10:22:18 +02:00
< a href = "" class = "quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick = "window.quartoToggleColorScheme(); return false;" title = "Skift mørk tilstand" > < i class = "bi" > < / i > < / a >
2023-06-23 14:00:35 +02:00
< / div >
< / div > <!-- /navcollapse -->
< / div > <!-- /container - fluid -->
< / nav >
< / header >
<!-- content -->
< div id = "quarto-content" class = "quarto-container page-columns page-rows-contents page-layout-article page-navbar" >
<!-- sidebar -->
<!-- margin - sidebar -->
< div id = "quarto-margin-sidebar" class = "sidebar margin-sidebar" >
< nav id = "TOC" role = "doc-toc" class = "toc-active" >
2023-06-26 10:22:18 +02:00
< h2 id = "toc-title" > På denne side< / h2 >
2023-06-23 14:00:35 +02:00
< ul >
< li > < a href = "#kode" id = "toc-kode" class = "nav-link active" data-scroll-target = "#kode" > Kode< / a > < / li >
< li > < a href = "#forklaring" id = "toc-forklaring" class = "nav-link" data-scroll-target = "#forklaring" > Forklaring< / a >
< ul class = "collapse" >
< li > < a href = "#kommentarer" id = "toc-kommentarer" class = "nav-link" data-scroll-target = "#kommentarer" > Kommentarer< / a > < / li >
< / ul > < / li >
< / ul >
< / nav >
< / div >
<!-- main -->
< main class = "content" id = "quarto-document-content" >
< header id = "title-block-header" class = "quarto-title-block default" >
< div class = "quarto-title" >
< h1 class = "title" > Canada i camper< / h1 >
< div class = "quarto-categories" >
< div class = "quarto-category" > Canada< / div >
< div class = "quarto-category" > Rejse< / div >
< div class = "quarto-category" > Børn< / div >
< div class = "quarto-category" > R< / div >
< / div >
< / div >
< div >
< div class = "description" >
Lidt om vores campertur.
< / div >
< / div >
< div class = "quarto-title-meta" >
< div >
2023-06-26 10:22:18 +02:00
< div class = "quarto-title-meta-heading" > Forfatter< / div >
2023-06-23 14:00:35 +02:00
< div class = "quarto-title-meta-contents" >
< p > Andreas < / p >
< / div >
< / div >
< div >
2023-06-26 10:22:18 +02:00
< div class = "quarto-title-meta-heading" > Udgivet< / div >
2023-06-23 14:00:35 +02:00
< div class = "quarto-title-meta-contents" >
2023-06-27 14:29:16 +02:00
< p class = "date" > 27. juni 2023< / p >
2023-06-23 14:00:35 +02:00
< / div >
< / div >
< / div >
< / header >
< section id = "kode" class = "level1" >
< h1 > Kode< / h1 >
< div class = "cell" >
< details >
< summary > Kode til oversigtskort< / summary >
< div class = "sourceCode cell-code" id = "cb1" > < pre class = "sourceCode r code-with-copy" > < code class = "sourceCode r" > < span id = "cb1-1" > < a href = "#cb1-1" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # Original export from plotting in OsmAnd on phone< / span > < / span >
< span id = "cb1-2" > < a href = "#cb1-2" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # bookmarks < - gpx::read_gpx(file = "data/favorites_canada_2023.gpx")< / span > < / span >
< span id = "cb1-3" > < a href = "#cb1-3" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-4" > < a href = "#cb1-4" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # Udtræk til .csv, herefter manuelt tilpasset, sorteret og tilføjet yderligere data.< / span > < / span >
< span id = "cb1-5" > < a href = "#cb1-5" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # write.csv(bookmarks$waypoints,"data/camper_points.csv")< / span > < / span >
< span id = "cb1-6" > < a href = "#cb1-6" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-7" > < a href = "#cb1-7" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > library< / span > (dplyr)< / span >
< span id = "cb1-8" > < a href = "#cb1-8" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-9" > < a href = "#cb1-9" aria-hidden = "true" tabindex = "-1" > < / a > camper < span class = "ot" > < -< / span > < span class = "fu" > read.csv< / span > (< span class = "st" > "data/camper_points.csv"< / span > ,)[< span class = "sc" > -< / span > < span class = "dv" > 1< / span > ] < span class = "sc" > |> < / span > < span class = "fu" > arrange< / span > (Order)< / span >
< span id = "cb1-10" > < a href = "#cb1-10" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-11" > < a href = "#cb1-11" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # Alternative source from RVParky export< / span > < / span >
< span id = "cb1-12" > < a href = "#cb1-12" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # RVParky er fed, men fornyligt er det blevet en betalingstjeneste. Hvorfor er den ikke integreret i OSM?< / span > < / span >
< span id = "cb1-13" > < a href = "#cb1-13" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # vnc < - gpx::read_gpx(file = "data/vancouver-trip.gpx")< / span > < / span >
< span id = "cb1-14" > < a href = "#cb1-14" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-15" > < a href = "#cb1-15" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "do" > ## Iconer< / span > < / span >
< span id = "cb1-16" > < a href = "#cb1-16" aria-hidden = "true" tabindex = "-1" > < / a > matching < span class = "ot" > < -< / span > < span class = "fu" > c< / span > (< span class = "at" > car=< / span > < span class = "st" > "images/key.png"< / span > , < / span >
< span id = "cb1-17" > < a href = "#cb1-17" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > bed=< / span > < span class = "st" > "images/rv.png"< / span > , < / span >
< span id = "cb1-18" > < a href = "#cb1-18" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > house=< / span > < span class = "st" > "images/house.png"< / span > )< / span >
< span id = "cb1-19" > < a href = "#cb1-19" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-20" > < a href = "#cb1-20" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > library< / span > (leaflet)< / span >
< span id = "cb1-21" > < a href = "#cb1-21" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-22" > < a href = "#cb1-22" aria-hidden = "true" tabindex = "-1" > < / a > icons_list < span class = "ot" > < -< / span > < span class = "fu" > icons< / span > (< / span >
< span id = "cb1-23" > < a href = "#cb1-23" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > iconUrl =< / span > matching[< span class = "fu" > match< / span > (camper< span class = "sc" > $< / span > Icon,< span class = "fu" > names< / span > (matching))],< / span >
< span id = "cb1-24" > < a href = "#cb1-24" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > iconWidth =< / span > < span class = "fu" > c< / span > (< span class = "dv" > 40< / span > ),< / span >
< span id = "cb1-25" > < a href = "#cb1-25" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > iconHeight =< / span > < span class = "fu" > c< / span > (< span class = "dv" > 40< / span > )< / span >
< span id = "cb1-26" > < a href = "#cb1-26" aria-hidden = "true" tabindex = "-1" > < / a > )< / span >
< span id = "cb1-27" > < a href = "#cb1-27" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-28" > < a href = "#cb1-28" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "do" > ## Så er det tid til at bruge Open Street Routing Machine< / span > < / span >
< span id = "cb1-29" > < a href = "#cb1-29" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-30" > < a href = "#cb1-30" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > library< / span > (osrm)< / span >
< span id = "cb1-31" > < a href = "#cb1-31" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-32" > < a href = "#cb1-32" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # osrmTable(loc = camper |> transmute(lon=Longitude,lat=Latitude))< / span > < / span >
< span id = "cb1-33" > < a href = "#cb1-33" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-34" > < a href = "#cb1-34" aria-hidden = "true" tabindex = "-1" > < / a > trips < span class = "ot" > < -< / span > < span class = "fu" > osrmTrip< / span > (< span class = "at" > loc =< / span > camper < span class = "sc" > |> < / span > < span class = "fu" > transmute< / span > (< span class = "at" > lon=< / span > Longitude,< span class = "at" > lat=< / span > Latitude), < span class = "at" > overview =< / span > < span class = "st" > "full"< / span > ,< / span >
< span id = "cb1-35" > < a href = "#cb1-35" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > osrm.profile =< / span > < span class = "st" > "car"< / span > )< / span >
< span id = "cb1-36" > < a href = "#cb1-36" aria-hidden = "true" tabindex = "-1" > < / a > trip < span class = "ot" > < -< / span > trips[[< span class = "dv" > 1< / span > ]]< span class = "sc" > $< / span > trip< / span >
< span id = "cb1-37" > < a href = "#cb1-37" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-38" > < a href = "#cb1-38" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # There exists a lua filter for truck, put I can't figure how to implement.< / span > < / span >
< span id = "cb1-39" > < a href = "#cb1-39" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # I suppose I would have to run a local OSRM instance...< / span > < / span >
< span id = "cb1-40" > < a href = "#cb1-40" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-41" > < a href = "#cb1-41" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "do" > ## HTML labels til kortet< / span > < / span >
< span id = "cb1-42" > < a href = "#cb1-42" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-43" > < a href = "#cb1-43" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > invisible< / span > (< span class = "fu" > Sys.setlocale< / span > (< span class = "st" > "LC_TIME"< / span > , < span class = "st" > "da_DK"< / span > ))< / span >
< span id = "cb1-44" > < a href = "#cb1-44" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-45" > < a href = "#cb1-45" aria-hidden = "true" tabindex = "-1" > < / a > content < span class = "ot" > < -< / span > < span class = "fu" > paste0< / span > (< / span >
< span id = "cb1-46" > < a href = "#cb1-46" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > ifelse< / span > (< span class = "fu" > substr< / span > (camper< span class = "sc" > $< / span > Description,< span class = "dv" > 1< / span > ,< span class = "dv" > 4< / span > )< span class = "sc" > !=< / span > < span class = "st" > "http"< / span > < span class = "sc" > |< / span > < span class = "fu" > is.na< / span > (camper< span class = "sc" > $< / span > Description),< span class = "fu" > paste0< / span > (< span class = "st" > "< br/> "< / span > ,camper< span class = "sc" > $< / span > Name),< span class = "fu" > paste0< / span > (< span class = "st" > "< b> < a href='"< / span > ,camper< span class = "sc" > $< / span > Description,< span class = "st" > "'> "< / span > ,camper< span class = "sc" > $< / span > Name,< span class = "st" > "< /a> < /b> "< / span > )),< / span >
< span id = "cb1-47" > < a href = "#cb1-47" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "st" > "< br/> "< / span > ,< span class = "fu" > paste< / span > (< span class = "st" > "Ankomst:"< / span > ,< span class = "fu" > tolower< / span > (< span class = "fu" > format< / span > (< span class = "fu" > as.Date< / span > (camper< span class = "sc" > $< / span > Arrival),< span class = "st" > "%d. %B"< / span > ))),< / span >
< span id = "cb1-48" > < a href = "#cb1-48" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "st" > "< br/> "< / span > ,< span class = "fu" > paste< / span > (< span class = "st" > "Nætter:"< / span > ,camper< span class = "sc" > $< / span > Nights),< / span >
< span id = "cb1-49" > < a href = "#cb1-49" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "st" > "< br/> "< / span > ,< span class = "fu" > paste< / span > (< span class = "st" > "Tid til næste:"< / span > ,< span class = "fu" > round< / span > (trips[[< span class = "dv" > 1< / span > ]]< span class = "sc" > $< / span > trip< span class = "sc" > $< / span > duration,< span class = "dv" > 1< / span > ),< span class = "st" > "min"< / span > ),< / span >
< span id = "cb1-50" > < a href = "#cb1-50" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "st" > "< br/> "< / span > ,< span class = "fu" > paste< / span > (< span class = "st" > "Afstand til næste:"< / span > ,< span class = "fu" > round< / span > (trips[[< span class = "dv" > 1< / span > ]]< span class = "sc" > $< / span > trip< span class = "sc" > $< / span > distance,< span class = "dv" > 1< / span > ),< span class = "st" > "km"< / span > ),< / span >
< span id = "cb1-51" > < a href = "#cb1-51" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > ifelse< / span > (camper< span class = "sc" > $< / span > Notes< span class = "sc" > !=< / span > < span class = "st" > ""< / span > ,< span class = "fu" > paste0< / span > (< span class = "st" > "< br/> "< / span > ,< span class = "fu" > paste< / span > (< span class = "st" > "Noter:"< / span > ,camper< span class = "sc" > $< / span > Notes)),< span class = "st" > ""< / span > )< / span >
< span id = "cb1-52" > < a href = "#cb1-52" aria-hidden = "true" tabindex = "-1" > < / a > )< / span >
< span id = "cb1-53" > < a href = "#cb1-53" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-54" > < a href = "#cb1-54" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "do" > ## Interaktivt kort med `leaflet`< / span > < / span >
< span id = "cb1-55" > < a href = "#cb1-55" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-56" > < a href = "#cb1-56" aria-hidden = "true" tabindex = "-1" > < / a > map < span class = "ot" > < -< / span > < span class = "fu" > leaflet< / span > (trip) < span class = "sc" > %> %< / span > < / span >
< span id = "cb1-57" > < a href = "#cb1-57" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > addTiles< / span > (< span class = "at" > group =< / span > < span class = "st" > "OSM (standard)"< / span > ) < span class = "sc" > %> %< / span > < / span >
< span id = "cb1-58" > < a href = "#cb1-58" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > addProviderTiles< / span > (providers< span class = "sc" > $< / span > OpenTopoMap,< / span >
< span id = "cb1-59" > < a href = "#cb1-59" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > group =< / span > < span class = "st" > "Topografisk"< / span > ) < span class = "sc" > %> %< / span > < / span >
< span id = "cb1-60" > < a href = "#cb1-60" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # addProviderTiles(providers$HERE.satelliteDay,< / span > < / span >
< span id = "cb1-61" > < a href = "#cb1-61" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # group = "Satelit") %> %< / span > < / span >
< span id = "cb1-62" > < a href = "#cb1-62" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > setView< / span > (< span class = "at" > lng =< / span > < span class = "fu" > median< / span > (camper< span class = "sc" > $< / span > Longitude), < span class = "at" > lat =< / span > < span class = "fu" > median< / span > (camper< span class = "sc" > $< / span > Latitude), < span class = "at" > zoom =< / span > < span class = "dv" > 7< / span > ) < span class = "sc" > %> %< / span > < / span >
2023-06-27 14:29:16 +02:00
< span id = "cb1-63" > < a href = "#cb1-63" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > addPolylines< / span > (< span class = "at" > group =< / span > < span class = "st" > "Estimated route"< / span > ) < span class = "sc" > %> %< / span > < / span >
2023-06-23 14:00:35 +02:00
< span id = "cb1-64" > < a href = "#cb1-64" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > addMarkers< / span > (< span class = "at" > data =< / span > camper[< span class = "sc" > -< / span > < span class = "fu" > nrow< / span > (camper),],< / span >
< span id = "cb1-65" > < a href = "#cb1-65" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > icon =< / span > icons_list,< / span >
< span id = "cb1-66" > < a href = "#cb1-66" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > popup =< / span > content[< span class = "sc" > -< / span > < span class = "fu" > nrow< / span > (camper)], < / span >
2023-06-27 14:29:16 +02:00
< span id = "cb1-67" > < a href = "#cb1-67" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > label =< / span > < span class = "sc" > ~< / span > Name, < / span >
< span id = "cb1-68" > < a href = "#cb1-68" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > group =< / span > < span class = "st" > "Points"< / span > ) < span class = "sc" > |> < / span > < / span >
< span id = "cb1-69" > < a href = "#cb1-69" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "fu" > addLayersControl< / span > (< / span >
< span id = "cb1-70" > < a href = "#cb1-70" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > baseGroups =< / span > < span class = "fu" > c< / span > (< span class = "st" > "OSM (standard)"< / span > , < span class = "st" > "Topografisk"< / span > ),< / span >
< span id = "cb1-71" > < a href = "#cb1-71" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > overlayGroups =< / span > < span class = "fu" > c< / span > (< span class = "st" > "Estimated route"< / span > , < span class = "st" > "Points"< / span > ),< / span >
< span id = "cb1-72" > < a href = "#cb1-72" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "at" > options =< / span > < span class = "fu" > layersControlOptions< / span > (< span class = "at" > collapsed =< / span > < span class = "cn" > FALSE< / span > )< / span >
< span id = "cb1-73" > < a href = "#cb1-73" aria-hidden = "true" tabindex = "-1" > < / a > )< / span >
< span id = "cb1-74" > < a href = "#cb1-74" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-75" > < a href = "#cb1-75" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # Hjælp til lige at komme det sidste stykke med at tegne ruten på:< / span > < / span >
< span id = "cb1-76" > < a href = "#cb1-76" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # https://stackoverflow.com/a/60940696/21019325< / span > < / span >
< span id = "cb1-77" > < a href = "#cb1-77" aria-hidden = "true" tabindex = "-1" > < / a > < / span >
< span id = "cb1-78" > < a href = "#cb1-78" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # Vejledning til at opsætte en lokal server med mulighed for modificeret profil.< / span > < / span >
< span id = "cb1-79" > < a href = "#cb1-79" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # https://www.r-bloggers.com/2017/09/building-a-local-osrm-instance/< / span > < / span >
< span id = "cb1-80" > < a href = "#cb1-80" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # Download specifikke områder: http://download.geofabrik.de/< / span > < / span >
< span id = "cb1-81" > < a href = "#cb1-81" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # < / span > < / span >
< span id = "cb1-82" > < a href = "#cb1-82" aria-hidden = "true" tabindex = "-1" > < / a > < span class = "co" > # Lastbil profil (den minder vel mere om en camper?): https://github.com/Project-OSRM/osrm-profiles-contrib/blob/master/5/27/truck-soft/car.lua< / span > < / span > < / code > < button title = "Kopier til udklipsholder" class = "code-copy-button" > < i class = "bi" > < / i > < / button > < / pre > < / div >
2023-06-23 14:00:35 +02:00
< / details >
< / div >
< p > Her er ikke tale om en overspringshandling.< / p >
< / section >
< section id = "forklaring" class = "level1" >
< h1 > Forklaring< / h1 >
< p > Lige om lidt tager vi til Canada i tre måneder som led i min PhD-uddannelse.< / p >
< p > Først holder vi lidt ferie. På dag 2 kører vi afsted i en lejet camper og har 14 dage i den, hvor vi skal udforske den sydvestlige del af British Colombia.< / p >
< p > Vores rute er tegnet in på kortet herunder.< / p >
< div class = "cell" >
< details >
< summary > Print kort< / summary >
2023-06-26 10:22:18 +02:00
< div class = "sourceCode cell-code" id = "cb2" > < pre class = "sourceCode r code-with-copy" > < code class = "sourceCode r" > < span id = "cb2-1" > < a href = "#cb2-1" aria-hidden = "true" tabindex = "-1" > < / a > map< / span > < / code > < button title = "Kopier til udklipsholder" class = "code-copy-button" > < i class = "bi" > < / i > < / button > < / pre > < / div >
2023-06-23 14:00:35 +02:00
< / details >
< div class = "cell-output-display" >
2023-06-27 14:29:16 +02:00
< div class = "leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id = "htmlwidget-dfd10d5ffb3eaa935eff" style = "width:100%;height:464px;" > < / div >
< script type = "application/json" data-for = "htmlwidget-dfd10d5ffb3eaa935eff" > { " x " : { " o p t i o n s " : { " c r s " : { " c r s C l a s s " : " L . C R S . E P S G 3 8 5 7 " , " c o d e " : n u l l , " p r o j 4 d e f " : n u l l , " p r o j e c t e d B o u n d s " : n u l l , " o p t i o n s " : { } } } , " c a l l s " : [ { " m e t h o d " : " a d d T i l e s " , " a r g s " : [ " h t t p s : / / { s } . t i l e . o p e n s t r e e t m a p . o r g / { z } / { x } / { y } . p n g " , n u l l , " O S M ( s t a n d a r d ) " , { " m i n Z o o m " : 0 , " m a x Z o o m " : 1 8 , " t i l e S i z e " : 2 5 6 , " s u b d o m a i n s " : " a b c " , " e r r o r T i l e U r l " : " " , " t m s " : f a l s e , " n o W r a p " : f a l s e , " z o o m O f f s e t " : 0 , " z o o m R e v e r s e " : f a l s e , " o p a c i t y " : 1 , " z I n d e x " : 1 , " d e t e c t R e t i n a " : f a l s e , " a t t r i b u t i o n " : " & c o p y ; < a h r e f = \ " h t t p s : / / o p e n s t r e e t m a p . o r g \ " > O p e n S t r e e t M a p < \ / a > c o n t r i b u t o r s , < a h r e f = \ " h t t p s : / / c r e a t i v e c o m m o n s . o r g / l i c e n s e s / b y - s a / 2 . 0 / \ " > C C - B Y - S A < \ / a > " } ] } , { " m e t h o d " : " a d d P r o v i d e r T i l e s " , " a r g s " : [ " O p e n T o p o M a p " , n u l l , " T o p o g r a f i s k " , { " e r r o r T i l e U r l " : " " , " n o W r a p " : f a l s e , " d e t e c t R e t i n a " : f a l s e } ] } , { " m e t h o d " : " a d d P o l y l i n e s " , " a r g s " : [ [ [ [ { " l n g " : [ - 1 2 2 . 9 6 8 4 3 2 , - 1 2 2 . 9 6 8 4 3 , - 1 2 2 . 9 6 8 4 2 6 , - 1 2 2 . 9 6 8 4 2 6 , - 1 2 2 . 9 6 8 4 2 4 , - 1 2 2 . 9 6 8 4 2 2 , - 1 2 2 . 9 6 8 4 2 2 , - 1 2 2 . 9 6 8 4 2 1 , - 1 2 2 . 9 6 8 3 4 5 , - 1 2 2 . 9 6 8 2 9 7 , - 1 2 2 . 9 6 8 2 2 2 , - 1 2 2 . 9 6 8 1 2 5 , - 1 2 2 . 9 6 7 9 9 9 , - 1 2 2 . 9 6 7 5 7 8 , - 1 2 2 . 9 6 7 4 6 3 , - 1 2 2 . 9 6 6 8 2 9 , - 1 2 2 . 9 6 6 0 2 1 , - 1 2 2 . 9 6 4 9 0 4 , - 1 2 2 . 9 6 4 0 0 8 , - 1 2 2 . 9 6 3 8 3 6 , - 1 2 2 . 9 6 3 5 6 8 , - 1 2 2 . 9 6 3 1 0 8 , - 1 2 2 . 9 6 2 6 9 7 , - 1 2 2 . 9 6 2 0 0 6 , - 1 2 2 . 9 6 1 4 1 6 , - 1 2 2 . 9 6 0 9 5 3 , - 1 2 2 . 9 6 0 6 2 8 , - 1 2 2 . 9 6 0 2 7 5 , - 1 2 2 . 9 5 9 5 7 7 , - 1 2 2 . 9 5 8 9 4 2 , - 1 2 2 . 9 5 8 3 8 1 , - 1 2 2 . 9 5 8 1 0 7 , - 1 2 2 . 9 5 7 6 8 8 , - 1 2 2 . 9 5 7 2 3 5 , - 1 2 2 . 9 5 6 6 7 4 , - 1 2 2 . 9 5 6 3 4 1 , - 1 2 2 . 9 5 6 2 1 3 , - 1 2 2 . 9 5 6 1 2 9 , - 1 2 2 . 9 5 5 8 1 1 ,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 . 9 6 1 5 3 3 , - 1 2 2 . 9 6 1 7 1 , - 1 2 2 . 9 6 1 8 3 7 , - 1 2 2 . 9 6 1 9 2 5 , - 1 2 2 . 9 6 1 8 7 8 , - 1 2 2 . 9 6 1 6 1 7 , - 1 2 2 . 9 6 1 3 7 7 , - 1 2 2 . 9 6 1 0 8 4 , - 1 2 2 . 9 6 0 7 3 5 , - 1 2 2 . 9 6 0 2 3 2 , - 1 2 2 . 9 5
2023-06-23 14:00:35 +02:00
< / div >
< / div >
< section id = "kommentarer" class = "level2" >
< h2 class = "anchored" data-anchor-id = "kommentarer" > Kommentarer< / h2 >
< p > Kortet er et lille forsøg på at binde forskelligt indhold sammen og visualisere det på en let tilgængelig og interaktiv måde.< / p >
< / section >
< / section >
< / main > <!-- /main -->
< script id = "quarto-html-after-body" type = "application/javascript" >
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
const mode = bsSheetEl.getAttribute("data-mode");
const bodyEl = window.document.querySelector("body");
if (mode === "dark") {
bodyEl.classList.add("quarto-dark");
bodyEl.classList.remove("quarto-light");
} else {
bodyEl.classList.add("quarto-light");
bodyEl.classList.remove("quarto-dark");
}
}
const toggleBodyColorPrimary = () => {
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
if (bsSheetEl) {
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
const disableStylesheet = (stylesheets) => {
for (let i=0; i < style sheets . length ; i + + ) {
const stylesheet = stylesheets[i];
stylesheet.rel = 'prefetch';
}
}
const enableStylesheet = (stylesheets) => {
for (let i=0; i < style sheets . length ; i + + ) {
const stylesheet = stylesheets[i];
stylesheet.rel = 'stylesheet';
}
}
const manageTransitions = (selector, allowTransitions) => {
const els = window.document.querySelectorAll(selector);
for (let i=0; i < els.length ; i + + ) {
const el = els[i];
if (allowTransitions) {
el.classList.remove('notransition');
} else {
el.classList.add('notransition');
}
}
}
const toggleColorMode = (alternate) => {
// Switch the stylesheets
const alternateStylesheets = window.document.querySelectorAll('link.quarto-color-scheme.quarto-color-alternate');
manageTransitions('#quarto-margin-sidebar .nav-link', false);
if (alternate) {
enableStylesheet(alternateStylesheets);
for (const sheetNode of alternateStylesheets) {
if (sheetNode.id === "quarto-bootstrap") {
toggleBodyColorMode(sheetNode);
}
}
} else {
disableStylesheet(alternateStylesheets);
toggleBodyColorPrimary();
}
manageTransitions('#quarto-margin-sidebar .nav-link', true);
// Switch the toggles
const toggles = window.document.querySelectorAll('.quarto-color-scheme-toggle');
for (let i=0; i < toggles.length ; i + + ) {
const toggle = toggles[i];
if (toggle) {
if (alternate) {
toggle.classList.add("alternate");
} else {
toggle.classList.remove("alternate");
}
}
}
// Hack to workaround the fact that safari doesn't
// properly recolor the scrollbar when toggling (#1455)
if (navigator.userAgent.indexOf('Safari') > 0 & & navigator.userAgent.indexOf('Chrome') == -1) {
manageTransitions("body", false);
window.scrollTo(0, 1);
setTimeout(() => {
window.scrollTo(0, 0);
manageTransitions("body", true);
}, 40);
}
}
const isFileUrl = () => {
return window.location.protocol === 'file:';
}
const hasAlternateSentinel = () => {
let styleSentinel = getColorSchemeSentinel();
if (styleSentinel !== null) {
return styleSentinel === "alternate";
} else {
return false;
}
}
const setStyleSentinel = (alternate) => {
const value = alternate ? "alternate" : "default";
if (!isFileUrl()) {
window.localStorage.setItem("quarto-color-scheme", value);
} else {
localAlternateSentinel = value;
}
}
const getColorSchemeSentinel = () => {
if (!isFileUrl()) {
const storageValue = window.localStorage.getItem("quarto-color-scheme");
return storageValue != null ? storageValue : localAlternateSentinel;
} else {
return localAlternateSentinel;
}
}
let localAlternateSentinel = 'alternate';
// Dark / light mode switch
window.quartoToggleColorScheme = () => {
// Read the current dark / light value
let toAlternate = !hasAlternateSentinel();
toggleColorMode(toAlternate);
setStyleSentinel(toAlternate);
};
// Ensure there is a toggle, if there isn't float one in the top right
if (window.document.querySelector('.quarto-color-scheme-toggle') === null) {
const a = window.document.createElement('a');
a.classList.add('top-right');
a.classList.add('quarto-color-scheme-toggle');
a.href = "";
a.onclick = function() { try { window.quartoToggleColorScheme(); } catch {} return false; };
const i = window.document.createElement("i");
i.classList.add('bi');
a.appendChild(i);
window.document.body.appendChild(a);
}
// Switch to dark mode if need be
if (hasAlternateSentinel()) {
toggleColorMode(true);
} else {
toggleColorMode(false);
}
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
placement: 'right',
icon: icon
};
anchorJS.add('.anchored');
const isCodeAnnotation = (el) => {
for (const clz of el.classList) {
if (clz.startsWith('code-annotation-')) {
return true;
}
}
return false;
}
const clipboard = new window.ClipboardJS('.code-copy-button', {
text: function(trigger) {
const codeEl = trigger.previousElementSibling.cloneNode(true);
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
});
clipboard.on('success', function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
2023-06-26 10:22:18 +02:00
button.setAttribute("title", "Kopieret!");
2023-06-23 14:00:35 +02:00
let tooltip;
if (window.bootstrap) {
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
2023-06-26 10:22:18 +02:00
button.setAttribute("data-bs-title", "Kopieret!");
2023-06-23 14:00:35 +02:00
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
tooltip.hide();
button.removeAttribute("data-bs-title");
button.removeAttribute("data-bs-toggle");
button.removeAttribute("data-bs-placement");
}
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
});
function tippyHover(el, contentFn) {
const config = {
allowHTML: true,
content: contentFn,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start'
};
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i< noterefs.length ; i + + ) {
const ref = noterefs[i];
tippyHover(ref, function() {
// use id or data attribute instead here
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
return note.innerHTML;
});
}
let selectedAnnoteEl;
const selectorForAnnotation = ( cell, annotation) => {
let cellAttr = 'data-code-cell="' + cell + '"';
let lineAttr = 'data-code-annotation="' + annotation + '"';
const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
return selector;
}
const selectCodeLines = (annoteEl) => {
const doc = window.document;
const targetCell = annoteEl.getAttribute("data-target-cell");
const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
const lines = annoteSpan.getAttribute("data-code-lines").split(",");
const lineIds = lines.map((line) => {
return targetCell + "-" + line;
})
let top = null;
let height = null;
let parent = null;
if (lineIds.length > 0) {
//compute the position of the single el (top and bottom and make a div)
const el = window.document.getElementById(lineIds[0]);
top = el.offsetTop;
height = el.offsetHeight;
parent = el.parentElement.parentElement;
if (lineIds.length > 1) {
const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
const bottom = lastEl.offsetTop + lastEl.offsetHeight;
height = bottom - top;
}
if (top !== null & & height !== null & & parent !== null) {
// cook up a div (if necessary) and position it
let div = window.document.getElementById("code-annotation-line-highlight");
if (div === null) {
div = window.document.createElement("div");
div.setAttribute("id", "code-annotation-line-highlight");
div.style.position = 'absolute';
parent.appendChild(div);
}
div.style.top = top - 2 + "px";
div.style.height = height + 4 + "px";
let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
if (gutterDiv === null) {
gutterDiv = window.document.createElement("div");
gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
gutterDiv.style.position = 'absolute';
const codeCell = window.document.getElementById(targetCell);
const gutter = codeCell.querySelector('.code-annotation-gutter');
gutter.appendChild(gutterDiv);
}
gutterDiv.style.top = top - 2 + "px";
gutterDiv.style.height = height + 4 + "px";
}
selectedAnnoteEl = annoteEl;
}
};
const unselectCodeLines = () => {
const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
elementsIds.forEach((elId) => {
const div = window.document.getElementById(elId);
if (div) {
div.remove();
}
});
selectedAnnoteEl = undefined;
};
// Attach click handler to the DT
const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
for (const annoteDlNode of annoteDls) {
annoteDlNode.addEventListener('click', (event) => {
const clickedEl = event.target;
if (clickedEl !== selectedAnnoteEl) {
unselectCodeLines();
const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
if (activeEl) {
activeEl.classList.remove('code-annotation-active');
}
selectCodeLines(clickedEl);
clickedEl.classList.add('code-annotation-active');
} else {
// Unselect the line
unselectCodeLines();
clickedEl.classList.remove('code-annotation-active');
}
});
}
const findCites = (el) => {
const parentEl = el.parentElement;
if (parentEl) {
const cites = parentEl.dataset.cites;
if (cites) {
return {
el,
cites: cites.split(' ')
};
} else {
return findCites(el.parentElement)
}
} else {
return undefined;
}
};
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
for (var i=0; i< bibliorefs.length ; i + + ) {
const ref = bibliorefs[i];
const citeInfo = findCites(ref);
if (citeInfo) {
tippyHover(citeInfo.el, function() {
var popup = window.document.createElement('div');
citeInfo.cites.forEach(function(cite) {
var citeDiv = window.document.createElement('div');
citeDiv.classList.add('hanging-indent');
citeDiv.classList.add('csl-entry');
var biblioDiv = window.document.getElementById('ref-' + cite);
if (biblioDiv) {
citeDiv.innerHTML = biblioDiv.innerHTML;
}
popup.appendChild(citeDiv);
});
return popup.innerHTML;
});
}
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
2023-06-26 09:13:54 +02:00
var filterRegex = new RegExp('/' + window.location.host + '/');
2023-06-23 14:00:35 +02:00
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item)');
for (var i=0; i< links.length ; i + + ) {
const link = links[i];
if (!isInternal(link.href)) {
// target, if specified
link.setAttribute("target", "_blank");
}
}
});
< / script >
< / div > <!-- /content -->
< footer class = "footer" >
< div class = "nav-footer" >
< div class = "nav-footer-left" >
< / div >
< div class = "nav-footer-center" > Lavet med < a href = "https://quarto.org/" > Quarto< / a > i < a href = "" > RStudio< / a > | Statistics with < a href = "https://stats.nikohuru.dk/share/qpECsH3GvxLM5L92/fam.gdamsbo" > Umami< / a > < / div >
< div class = "nav-footer-right" >
< / div >
< / div >
< / footer >
< / body > < / html >