Exception in template (Designs/bleau-solutionset/_parsed/left-nav-subpage.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.ecffebfbeefcba.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, DynamicViewBag viewBag, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering @using System.Collections; @using System.Globalization; @using System.Web; @using Dynamicweb.Content; @{ // Code to get info for linkcrawler PageService ps = new PageService(); var cmspageID = GetInteger("DwPageID"); var cmspageCreated = GetDate("DwPageCreatedDate").ToString("yyyy-MM-dd HH:mm:ss"); var cmspageUpdated = GetDate("DwPageUpdatedDate").ToString("yyyy-MM-dd HH:mm:ss"); var cmseditorID = GetString("Item.Page.Editor.Value"); var cmseditorIDstring = ""; if (cmseditorID != "") { var ActualUser = Dynamicweb.Security.UserManagement.User.GetUserByID(Convert.ToInt16(cmseditorID)); if (ActualUser != null) { cmseditorIDstring = ActualUser.Email; cmseditorIDstring = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(cmseditorIDstring)); } } var cmsresponsibleID = GetString("Item.Page.PageResponsible.Value"); var cmsresponsibleIDstring = ""; if (cmsresponsibleID != "") { var ActualUser = Dynamicweb.Security.UserManagement.User.GetUserByID(Convert.ToInt16(cmsresponsibleID)); if (ActualUser != null) { cmsresponsibleIDstring = ActualUser.Email; cmsresponsibleIDstring = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(cmsresponsibleIDstring)); } } var thisPage = ps.GetPage(cmspageID); var cmsactiveTo = ""; if (thisPage != null) { cmsactiveTo = thisPage.ActiveTo.ToString("yyyy-MM-dd HH:mm:ss"); } } <!DOCTYPE html> <html lang="@Pageview.Area.CultureInfo.TwoLetterISOLanguageName"> <head> <meta charset="utf-8"> <meta name="cmspageid" content="@cmspageID"> <meta name="cmspageactiveto" content="@cmsactiveTo"> <meta name="cmseditorid" content="@cmseditorID"> <meta name="cmspagecreated" content="@cmspageCreated"> <meta name="cmspageupdated" content="@cmspageCreated"> <meta name="cmseditor" content="@cmseditorIDstring"> <meta name="cmsresponsible" content="@cmsresponsibleIDstring"> <meta name="author" content='@(!string.IsNullOrEmpty(GetString("Item.Page.PageResponsible")) ? Dynamicweb.Security.UserManagement.User.GetUserByID(Convert.ToInt32(GetValue("Item.Page.PageResponsible"))).Name : "")'> @*<script> !function (T, l, y) { var S = T.location, u = "script", k = "instrumentationKey", D = "ingestionendpoint", C = "disableExceptionTracking", E = "ai.device.", I = "toLowerCase", b = "crossOrigin", w = "POST", e = "appInsightsSDK", t = y.name || "appInsights"; (y.name || T[e]) && (T[e] = t); var n = T[t] || function (d) { var g = !1, f = !1, m = { initialize: !0, queue: [], sv: "4", version: 2, config: d }; function v(e, t) { var n = {}, a = "Browser"; return n[E + "id"] = a[I](), n[E + "type"] = a, n["ai.operation.name"] = S && S.pathname || "_unknown_", n["ai.internal.sdkVersion"] = "javascript:snippet_" + (m.sv || m.version), { time: function () { var e = new Date; function t(e) { var t = "" + e; return 1 === t.length && (t = "0" + t), t } return e.getUTCFullYear() + "-" + t(1 + e.getUTCMonth()) + "-" + t(e.getUTCDate()) + "T" + t(e.getUTCHours()) + ":" + t(e.getUTCMinutes()) + ":" + t(e.getUTCSeconds()) + "." + ((e.getUTCMilliseconds() / 1e3).toFixed(3) + "").slice(2, 5) + "Z" }(), iKey: e, name: "Microsoft.ApplicationInsights." + e.replace(/-/g, "") + "." + t, sampleRate: 100, tags: n, data: { baseData: { ver: 2 } } } } var h = d.url || y.src; if (h) { function a(e) { var t, n, a, i, r, o, s, c, p, l, u; g = !0, m.queue = [], f || (f = !0, t = h, s = function () { var e = {}, t = d.connectionString; if (t) for (var n = t.split(";"), a = 0; a < n.length; a++) { var i = n[a].split("="); 2 === i.length && (e[i[0][I]()] = i[1]) } if (!e[D]) { var r = e.endpointsuffix, o = r ? e.location : null; e[D] = "https://" + (o ? o + "." : "") + "dc." + (r || "services.visualstudio.com") } return e }(), c = s[k] || d[k] || "", p = s[D], l = p ? p + "/v2/track" : config.endpointUrl, (u = []).push((n = "SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details)", a = t, i = l, (o = (r = v(c, "Exception")).data).baseType = "ExceptionData", o.baseData.exceptions = [{ typeName: "SDKLoadFailed", message: n.replace(/\./g, "-"), hasFullStack: !1, stack: n + "\nSnippet failed to load [" + a + "] -- Telemetry is disabled\nHelp Link: https://go.microsoft.com/fwlink/?linkid=2128109\nHost: " + (S && S.pathname || "_unknown_") + "\nEndpoint: " + i, parsedStack: [] }], r)), u.push(function (e, t, n, a) { var i = v(c, "Message"), r = i.data; r.baseType = "MessageData"; var o = r.baseData; return o.message = 'AI (Internal): 99 message:"' + ("SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details) (" + n + ")").replace(/\"/g, "") + '"', o.properties = { endpoint: a }, i }(0, 0, t, l)), function (e, t) { if (JSON) { var n = T.fetch; if (n && !y.useXhr) n(t, { method: w, body: JSON.stringify(e), mode: "cors" }); else if (XMLHttpRequest) { var a = new XMLHttpRequest; a.open(w, t), a.setRequestHeader("Content-type", "application/json"), a.send(JSON.stringify(e)) } } }(u, l)) } function i(e, t) { f || setTimeout(function () { !t && m.core || a() }, 500) } var e = function () { var n = l.createElement(u); n.src = h; var e = y[b]; return !e && "" !== e || "undefined" == n[b] || (n[b] = e), n.onload = i, n.onerror = a, n.onreadystatechange = function (e, t) { "loaded" !== n.readyState && "complete" !== n.readyState || i(0, t) }, n }(); y.ld < 0 ? l.getElementsByTagName("head")[0].appendChild(e) : setTimeout(function () { l.getElementsByTagName(u)[0].parentNode.appendChild(e) }, y.ld || 0) } try { m.cookie = l.cookie } catch (p) { } function t(e) { for (; e.length;)!function (t) { m[t] = function () { var e = arguments; g || m.queue.push(function () { m[t].apply(m, e) }) } }(e.pop()) } var n = "track", r = "TrackPage", o = "TrackEvent"; t([n + "Event", n + "PageView", n + "Exception", n + "Trace", n + "DependencyData", n + "Metric", n + "PageViewPerformance", "start" + r, "stop" + r, "start" + o, "stop" + o, "addTelemetryInitializer", "setAuthenticatedUserContext", "clearAuthenticatedUserContext", "flush"]), m.SeverityLevel = { Verbose: 0, Information: 1, Warning: 2, Error: 3, Critical: 4 }; var s = (d.extensionConfig || {}).ApplicationInsightsAnalytics || {}; if (!0 !== d[C] && !0 !== s[C]) { method = "onerror", t(["_" + method]); var c = T[method]; T[method] = function (e, t, n, a, i) { var r = c && c(e, t, n, a, i); return !0 !== r && m["_" + method]({ message: e, url: t, lineNumber: n, columnNumber: a, error: i }), r }, d.autoExceptionInstrumented = !0 } return m }(y.cfg); (T[t] = n).queue && 0 === n.queue.length && n.trackPageView({}) }(window, document, { src: "https://az416426.vo.msecnd.net/scripts/b/ai.2.min.js", // The SDK URL Source //name: "appInsights", // Global SDK Instance name defaults to "appInsights" when not supplied //ld: 0, // Defines the load delay (in ms) before attempting to load the sdk. -1 = block page load and add to head. (default) = 0ms load after timeout, //useXhr: 1, // Use XHR instead of fetch to report failures (if available), //crossOrigin: "anonymous", // When supplied this will add the provided value as the cross origin attribute on the script tag cfg: { // Application Insights Configuration instrumentationKey: "5b8602f4-7263-41f7-b005-6c42db042759", name: "BleauBorgerBase", isCookieUseDisabled: "true" /* ...Other Configuration Options...TEST PUBLISH FTP */ } }); </script>*@ @{ if (!string.IsNullOrWhiteSpace(GetString("Item.Area.StatScript"))) { var visitorIp = System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; string noLoggingForIps = GetString("Item.Area.NoLoggingForIps"); if (string.IsNullOrEmpty(visitorIp)) { visitorIp = System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; } if (visitorIp.Contains(":")) { visitorIp = visitorIp.Split(Convert.ToChar(":"))[0]; } if (noLoggingForIps.Contains(visitorIp) && noLoggingForIps.Length > 6) { <script>console.log("OfficeIP detected");</script> } else { @GetString("Item.Area.StatScript") } } @GetString("Item.Area.InsightsScripts") } <meta name="viewport" content="width=device-width, initial-scale = 1.0"> @if (!string.IsNullOrEmpty("Item.Area.Google_Site_VerificationCode")) { <meta name="google-site-verification" content='@GetString("Item.Area.Google_Site_VerificationCode")'> } <title>@GetValue("Title")</title> @GetValue("MetaTags") @GetValue("CopyRightNotice") @RenderSnippet("OpenGraph") @{ string SiteStyle = GetString("Item.Area.HovedSite") == "True" ? "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/bleau-styles.min.css" : "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/bleau-styles_" + @Pageview.Area.ID + ".min.css"; } <link rel="stylesheet" href="@SiteStyle" media="all"> <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/print.min.css" media="print"> @*<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>*@ <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/svg-inject.min.js"></script> @RenderSnippet("StyleSheetHead") @RenderSnippet("StyleSheet") @if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenu)"))) { <link href='@GetString("Item.Area.Custom_CSS_Url")' rel="stylesheet"> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) { <!-- Google Tag Manager --> <script> (function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.GTMID")');</script> <!-- End Google Tag Manager --> } <link rel="shortcut icon" href='/Admin/Public/GetImage.ashx?Image=@GetString("Item.Area.Favicon")&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png'> <link rel="apple-touch-icon" href='/Admin/Public/GetImage.ashx?Image=@GetString("Item.Area.Apple_touch_icon")&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png'> @*Site - Extra scripts*@ @if (!string.IsNullOrEmpty(GetString("Item.Area.HeaderScripts"))) { @GetString("Item.Area.HeaderScripts") } @*Page - Extra scripts*@ @if (!string.IsNullOrEmpty(GetString("Item.Page.Header"))) { @GetString("Item.Page.Header") } <script type="text/javascript" src="https://presscloud.com/nr/lib/iframe-resizer/js/iframeResizer.min.js"></script> @GetValue("Stylesheets") @GetValue("Javascripts") </head> @{ var bodyclass = ""; string Cpage = GetString("DwPageName"); string CpageID = GetString("DwPageID"); if (Cpage.Contains("Forside") || CpageID == "1") { bodyclass = "frontpage "; } if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Color"))) { bodyclass += GetString("Item.Area.Color"); } bodyclass = bodyclass.Trim(); string language = !String.IsNullOrEmpty(GetString("Item.Page.Language")) ? @GetString("Item.Page.Language") : @Pageview.Area.CultureInfo.TwoLetterISOLanguageName; } <body class="@bodyclass"> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) { <!-- Google Tag Manager (noscript) --> <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.GTMID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> } <div class="body-wrapper"> @if (GetString("Item.Area.Use_Custom_Header") == "True") { @inherits RazorTemplateBase<RazorTemplateModel<Template>> @*@using Dynamicweb.Rendering; @using System.Collections; @using System.Globalization;*@ <header class="custom"> @foreach (LoopItem item in GetLoop("Languages")) { <a href='/Default.aspx?AreaId=@item.GetString("ID")' class="menu-dropdown__link dw-mod">@item.GetString("Culture")</a> <br><br> } <a class="skip-main" aria-label="Skip til hoved indholdet" href="#Hovedindhold">Skip til hoved indholdet</a> @*breaking banner*@ @if (GetString("Item.Area.InformationsBanner.ActivateBanner") == "True") { <style> .body-wrapper{ position: relative; } .alert{ margin-bottom:0; border-radius:0; padding:25px 15px; font-size:16px; } .alert-warning{ color: @GetString("Item.Area.InformationsBanner.TekstFarve"); background-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); border-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); } .myAlert p{ display:inline; } </style> if (!string.IsNullOrWhiteSpace(GetString("Item.Area.InformationsBanner.InfoLink"))) { <section role="navigation" aria-label="Info banner"> <div class="alert alert-warning fade in myAlert"> <a href='@GetString("Item.Area.InformationsBanner.InfoLink")'> <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") </a> </div> </section> } else { <section role="navigation" aria-label="Info banner"> <div class="alert alert-warning fade in"> <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") </div> </section> } } @*Service menu*@ @if (GetString("Item.Area.Hide_Servicemenu") == "False") { <section class="service-navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")' aria-label="service menu"> <nav aria-label="Service menu"> <ul class="container text-right hidden-print"> @GetValue("DwNavigation(customservicenavigation)") <li><a href="//www.adgangforalle.dk/" target="_blank" class="read-more-icon" rel="noreferrer">Læs op</a></li> <li><a href="javascript:void(0);" id="printicon" class="print-icon">Print</a></li> </ul> </nav> </section> } <div class="navbar hidden-print" role="navigation" aria-label="Hoved menu" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> <div class="container top-nav" id="nav-wrapper"> @*Top menu*@ @{ if (GetString("Item.Area.TopMenuType") == "overlay") { @SnippetStart("StyleSheetHead") <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/custom_overlayMenu.min.css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") @*Top menu overlay*@ if (!String.IsNullOrEmpty(GetString("DwNavigation(menuMain)")) && String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"])) { <figure class="menuToggle pull-left col-md-2 col-md-offset-0 col-lg-offset-0 col-xs-3" onclick="openNav()"> <a href="javascript:void(0);" aria-hidden="true" aria-label="Fold menuen ud"> <img class="opennav" src="/Files/Templates/Designs/bleau-solutionset/assets/images/svg/nav.svg" alt="Menu" title="Menu"> </a> <span class="hidden-xs hidden-sm menuToggle openMenu">MENU</span> </figure> <nav id="menuOverlay" class="overlay" role="complementary" aria-labelledby="menuOverlay"> @*breaking banner*@ @if (GetString("Item.Area.InformationsBanner.ActivateBanner") == "True") { <style> .body-wrapper{ position: relative; } .alert{ margin-bottom:0; border-radius:0; padding:25px 15px; font-size:16px; } .alert-warning{ color: @GetString("Item.Area.InformationsBanner.TekstFarve"); background-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); border-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); } .myAlert p{ display:inline; } </style> if (!string.IsNullOrWhiteSpace(GetString("Item.Area.InformationsBanner.InfoLink"))) { <section role="navigation" aria-label="Info banner"> <div class="alert alert-warning fade in myAlert"> <a href='@GetString("Item.Area.InformationsBanner.InfoLink")'> <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") </a> </div> </section> } else { <section role="navigation" aria-label="Info banner"> <div class="alert alert-warning fade in"> <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") </div> </section> } } @*Service menu*@ @if (GetString("Item.Area.Hide_Servicemenu") == "False") { @*Service*@ <section class="service-navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")' aria-label="service menu"> <nav aria-label="Service menu"> <ul class="container text-right hidden-print"> @GetValue("DwNavigation(servicenavigationnew)") <li><a href="//www.adgangforalle.dk/" target="_blank" class="read-more-icon" rel="noreferrer">Læs op</a></li> <li><a href="javascript:void(0);" id="printicon" class="print-icon">Print</a></li> </ul> </nav> </section> } <div class="container"> <figure class="menuToggle pull-left col-md-2 col-md-offset-0 col-lg-offset-0 col-xs-3" onclick="closeNav()"> <a href="javascript:void(0);" class="closebtn" aria-hidden="true" aria-label="Fold menuen ind"> <img src="/Files/Templates/Designs/bleau-solutionset/assets/images/svg/closeMenu.svg" alt="Menu" title="Menu"> </a> <span class="menuToggle closeMenu">LUK</span> </figure> <nav role="navigation" aria-labelledby="menuMain" class="overlay-content"> @GetValue("DwNavigation(menuMain)") </nav> </div> </nav> }; } else { <nav class='col-sm-5 col-md-7 nav-top hidden-print @GetString("Item.Area.LogoLocation")' aria-label="Desktop Menu"> @GetValue("DwNavigation(standardMenu)") </nav>; } } @*SearchTop*@ @{ if (GetString("Item.Area.SearchType") == "cludo") { @SnippetStart("StyleSheetHead") <link href="https://customer.cludo.com/css/templates/v2.2/essentials/cludo-search.min.css" type="text/css" rel="stylesheet"> <link href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/cludo.min.css" type="text/css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> <a href="" class="collapsed" title="Søg" aria-label="Indholdssøgning"></a> </div> <div id="search-boxTop" class="search-drop search-form"> @SnippetStart("StyleSheetHead") @if (GetString("Item.Area.HovedSite") == "True") { <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" rel="stylesheet"> } else { var csslink = "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch_" + @Pageview.Area.ID + ".min.css"; <link rel="stylesheet" href="@csslink" media="all"> } <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> @SnippetEnd("StyleSheetHead") <form id="cludoForm" role="search"> <div class="search-area" id="CludoSearchFormTop"> <input aria-label="Topmenu søgefelt" id="searchSubmit" name="searchrequest" class="col-md-7 col-lg-8 col-lg-offset-0 col-sm-9 col-xs-9 formInput search-input" title="Skriv hvad du søger" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' autocomplete="off" type="search" aria-label="Search" aria-describedby="autocomplete_hint"> <button type="submit" title="Søg" class="search-button col-lg-2 col-md-2 col-xs-3" id="search-button">Søg</button> </div> </form> </div> @SnippetStart("JavaScriptBottom") <script type="text/javascript" src="https://customer.cludo.com/scripts/bundles/search-script.min.js"></script> <script> var CludoType = 'GetValue("Item.Area.Type")'; var CludoTemplate = 'GetValue("Item.Area.Template")'; var CludoSearchExtra = 'GetValue("Item.Area.EkstraScriptkode")'; var CludoSearch; (function () { var cludoSettings = { customerId: @GetValue("Item.Area.CustomerID"), engineId: @GetValue("Item.Area.EngineID"), searchUrl: '@GetValue("Item.Area.SearchUrl")', language: 'da', searchInputs: ["cludoForm", "CludoSearchFormTop", "cludo-search-content-form", "SearchForm","CludoSearchForm"], template: '@GetValue("Item.Area.Template")', focusOnResultsAfterSearch: false, type: '@GetValue("Item.Area.Type")', loading: "<img src='//customer.cludo.com/img/loading.gif' alt='Loader flere resultater' class='loading' role='progressbar' /><div class='loading-more-text'></div>", endlessScroll: { stopAfterPage: 2, resultsPerPage: 10, bottomOffset: 700 } }; CludoSearch = new Cludo(cludoSettings); CludoSearch.translateProvider.translations["da"]["backToTop"] = "<i class='fa fa-chevron-up'></i>"; CludoSearch.translateProvider.translations["da"]["load_more"] = "Vis flere"; CludoSearch.translateProvider.translations["da"]["your_search_on"] = "Søgningen "; if (CludoSearchExtra != '') { CludoSearchExtra } CludoSearch.init(); })(); </script> <!--[if lte IE 9]> <script src="https://api.cludo.com/scripts/xdomain.js" slave="https://api.cludo.com/proxy.html" type="text/javascript"></script> <![endif]--> @SnippetEnd("JavaScriptBottom") } else { @inherits RazorTemplateBase<RazorTemplateModel<Template>> <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> <a href="" class="collapsed" title="Søg" aria-label="Indholdssøgning"></a> </div> <div id="search-boxTop" class="search-drop search-form"> @SnippetStart("StyleSheetHead") @{ string weightedStyle = GetString("Item.Area.HovedSite") == "True" ? "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" : "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch_" + @Pageview.Area.ID + ".min.css"; } <link rel="stylesheet" href="@weightedStyle" media="all"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> @SnippetEnd("StyleSheetHead") <form action="/Default.aspx" accept-charset="utf-8" id="SearchFormTop"> <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> <div class="search-area"> <input aria-label="Topmenu søge felt" id="searchSubmit" autocomplete="off" size="10" spellcheck="false" dir="ltr" class="search-input" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' data-error='@Translate("searchText", "S&oslash;g p&aring; sitet")' type="text" name="q" value='@GetValue("DwSearchPhrase")'> <input type="submit" value="Søg" class="search-button" title="Søg"> </div> </form> </div> } } @*Logo*@ @{ if (GetString("Item.Area.LogoLocation") == "logoRight") { @*Logo right*@ @*Logo*@ <div class='xnavbar-header col-xs-6 col-md-3 col-lg-3 logoRight'> @if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsDesktop")) || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsTablet"))) { if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))) { <!-- WCAG --> <a class="navbar-brand" href="/" aria-label='@GetString("Item.Area.NameOrganisation")'> <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> </a> <!-- WCAG --> } } else { if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoMobile"))) { <a class="navbar-brand" href="/" aria-label='@Translate("Sitename", "Bleauprint government")' style="padding-left:0"> <img src='@GetString("Item.Area.LogoMobile")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> </a> } else { <a class="navbar-brand logo-image" href="/" title=""></a> } } </div> ; } else { @*Logo left*@ <div class='navbar-header col-xs-6 col-md-4 logoLeft'> @if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsDesktop")) || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsTablet"))) { if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))) { <!-- WCAG --> <a class="navbar-brand" href="/" aria-label='@GetString("Item.Area.NameOrganisation")'> <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> </a> <!-- WCAG --> } } else { if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoMobile"))) { <a class="navbar-brand" href="/" aria-label='@Translate("Sitename", "Bleauprint government")'> <img src='@GetString("Item.Area.LogoMobile")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> </a> } else { <a class="navbar-brand logo-image" href="/" title=""></a> } } </div> } } </div><!-- /.container --> </div><!-- /.navbar --> </header>; } else if (GetString("Item.Area.Use_Extended_Topmenu") == "True") { @inherits RazorTemplateBase<RazorTemplateModel<Template>> <header> @{ string currentSkipUrl = HttpContext.Current.Request.Url.AbsoluteUri.ToString() + "#Hovedindhold"; } <a class="skip-main" aria-label="Skip til hoved indholdet" href="@currentSkipUrl">Skip til hoved indholdet</a> @foreach (LoopItem item in GetLoop("Languages")) { <a href='/Default.aspx?AreaId=@item.GetString("ID")' class="menu-dropdown__link dw-mod">@item.GetString("Culture")</a> <br><br> } @*breaking banner*@ @if (GetString("Item.Area.InformationsBanner.ActivateBanner") == "True") { <style> .body-wrapper{ position: relative; } .alert{ margin-bottom:0; border-radius:0; padding:25px 15px; font-size:16px; } .alert-warning{ color: @GetString("Item.Area.InformationsBanner.TekstFarve"); background-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); border-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); } .myAlert p{ display:inline; } </style> if (!string.IsNullOrWhiteSpace(GetString("Item.Area.InformationsBanner.InfoLink"))) { <section role="navigation" aria-label="Info banner"> <div class="alert alert-warning fade in myAlert"> <a href='@GetString("Item.Area.InformationsBanner.InfoLink")'> <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") </a> </div> </section> } else { <section role="navigation" aria-label="Info banner"> <div class="alert alert-warning fade in"> <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") </div> </section> } } @*Service menu*@ @if (GetString("Item.Area.Hide_Servicemenu") == "False") { <section class="service-navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")' aria-label="service menu"> <nav aria-label="Service menu"> <ul class="container text-right hidden-print"> @GetValue("DwNavigation(servicenavigationextended)") <li class=""><a href="//www.adgangforalle.dk/" target="_blank" class="read-more-icon" rel="noreferrer">Læs op</a></li> <li class=""><a href="javascript:void(0);" id="printicon" class="print-icon">Print</a></li> </ul> </nav> </section> } <div class="navbar hidden-print" role="navigation" aria-label="Hoved menu" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> <div class="container top-nav" id="nav-wrapper"> @*Mobile menu button*@ <button class="navbar-toggle collapsed" aria-expanded="false" aria-label="Mobile Menu" data-target="#mobile-menu" data-toggle="collapse" type="button" aria-haspopup="true"> </button> @*Mobile menu*@ <nav aria-label="Mobile Menu"> @GetValue("DwNavigation(mobilemenuextended)") </nav> @*Logo left*@ <div class='navbar-header col-xs-6 col-md-3 logoLeft'> @if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsDesktop")) || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsTablet"))) { if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))) { <!-- WCAG --> <a class="navbar-brand navbar-Extended" href="/" aria-label='@GetString("Item.Area.NameOrganisation")'> <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> </a> <!-- WCAG --> } } else { if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoMobile"))) { <a class="navbar-brand" href="/" aria-label='@Translate("Sitename", "Bleauprint government")'> <img src='@GetString("Item.Area.LogoMobile")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> </a> } else { <a class="navbar-brand logo-image" href="/" title=""></a> } } </div> @*Top menu desktop*@ @{ <nav class='col-sm-5 col-md-8 nav-top hidden-print @GetString("Item.Area.LogoLocation")' aria-label="Desktop Menu"> @GetValue("DwNavigation(menuextended)") </nav> } @*SearchTop*@ @{ if (GetString("Item.Area.SearchMethod") == "cludo") { @SnippetStart("StyleSheetHead") <link href="https://customer.cludo.com/css/templates/v2.2/essentials/cludo-search.min.css" type="text/css" rel="stylesheet"> <link href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/cludo.min.css" type="text/css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> <a href="" class="collapsed" title="Søg" aria-label="Indholdssøgning"></a> </div> <div id="search-boxTop" class="search-drop search-form"> @SnippetStart("StyleSheetHead") @if (GetString("Item.Area.HovedSite") == "True") { <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" rel="stylesheet"> } else { var csslink = "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch_" + @Pageview.Area.ID + ".min.css"; <link rel="stylesheet" href="@csslink" media="all"> } <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> @SnippetEnd("StyleSheetHead") <form id="cludoForm" role="search"> <div class="search-area" id="CludoSearchFormTop"> <input aria-label="Topmenu søgefelt" id="searchSubmit" name="searchrequest" class="col-md-7 col-lg-8 col-lg-offset-0 col-sm-9 col-xs-9 formInput search-input" title="Skriv hvad du søger" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' autocomplete="off" type="search" aria-label="Search" aria-describedby="autocomplete_hint"> <button type="submit" title="Søg" class="search-button col-lg-2 col-md-2 col-xs-3" id="search-button">Søg</button> </div> </form> </div> @SnippetStart("JavaScriptBottom") <script type="text/javascript" src="https://customer.cludo.com/scripts/bundles/search-script.min.js"></script> <script> var CludoType = 'GetValue("Item.Area.Type")'; var CludoTemplate = 'GetValue("Item.Area.Template")'; var CludoSearchExtra = 'GetValue("Item.Area.EkstraScriptkode")'; var CludoSearch; (function () { var cludoSettings = { customerId: @GetValue("Item.Area.CustomerID"), engineId: @GetValue("Item.Area.EngineID"), searchUrl: '@GetValue("Item.Area.SearchUrl")', language: 'da', searchInputs: ["cludoForm", "CludoSearchFormTop", "cludo-search-content-form", "SearchForm","CludoSearchForm"], template: '@GetValue("Item.Area.Template")', focusOnResultsAfterSearch: false, type: '@GetValue("Item.Area.Type")', loading: "<img src='//customer.cludo.com/img/loading.gif' alt='Loader flere resultater' class='loading' role='progressbar' /><div class='loading-more-text'></div>", endlessScroll: { stopAfterPage: 2, resultsPerPage: 10, bottomOffset: 700 } }; CludoSearch = new Cludo(cludoSettings); CludoSearch.translateProvider.translations["da"]["backToTop"] = "<i class='fa fa-chevron-up'></i>"; CludoSearch.translateProvider.translations["da"]["load_more"] = "Vis flere"; CludoSearch.translateProvider.translations["da"]["your_search_on"] = "Søgningen "; if (CludoSearchExtra != '') { CludoSearchExtra } CludoSearch.init(); })(); </script> <!--[if lte IE 9]> <script src="https://api.cludo.com/scripts/xdomain.js" slave="https://api.cludo.com/proxy.html" type="text/javascript"></script> <![endif]--> @SnippetEnd("JavaScriptBottom") } else { @inherits RazorTemplateBase<RazorTemplateModel<Template>> <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> <a href="" class="collapsed" title="Søg" aria-label="Indholdssøgning"></a> </div> <div id="search-boxTop" class="search-drop search-form"> @SnippetStart("StyleSheetHead") @{ string weightedStyle = GetString("Item.Area.HovedSite") == "True" ? "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" : "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch_" + @Pageview.Area.ID + ".min.css"; } <link rel="stylesheet" href="@weightedStyle" media="all"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> @SnippetEnd("StyleSheetHead") <form action="/Default.aspx" accept-charset="utf-8" id="SearchFormTop"> <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> <div class="search-area"> <input aria-label="Topmenu søge felt" id="searchSubmit" autocomplete="off" size="10" spellcheck="false" dir="ltr" class="search-input" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' data-error='@Translate("searchText", "S&oslash;g p&aring; sitet")' type="text" name="q" value='@GetValue("DwSearchPhrase")'> <input type="submit" value="Søg" class="search-button" title="Søg"> </div> </form> </div> } } </div><!-- /.container --> </div><!-- /.navbar --> </header> @SnippetStart("JavaScriptBottom") @*<script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/livesearch.js" type="text/javascript"></script>*@ @SnippetEnd("JavaScriptBottom"); } else { @inherits RazorTemplateBase<RazorTemplateModel<Template>> <header> @{ string currentSkipUrl = HttpContext.Current.Request.Url.AbsoluteUri.ToString() + "#Hovedindhold"; } <a class="skip-main" aria-label="Skip til hoved indholdet" href="@currentSkipUrl">Skip til hoved indholdet</a> @foreach (LoopItem item in GetLoop("Languages")) { <a href='/Default.aspx?AreaId=@item.GetString("ID")' class="menu-dropdown__link dw-mod">@item.GetString("Culture")</a> <br><br> } @*breaking banner*@ @if (GetString("Item.Area.InformationsBanner.ActivateBanner") == "True") { <style> .body-wrapper{ position: relative; } .alert{ margin-bottom:0; border-radius:0; padding:25px 15px; font-size:16px; } .alert-warning{ color: @GetString("Item.Area.InformationsBanner.TekstFarve"); background-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); border-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); } .myAlert p{ display:inline; } </style> if (!string.IsNullOrWhiteSpace(GetString("Item.Area.InformationsBanner.InfoLink"))) { <section role="navigation" aria-label="Info banner"> <div class="alert alert-warning fade in myAlert"> <a href='@GetString("Item.Area.InformationsBanner.InfoLink")'> <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") </a> </div> </section> } else { <section role="navigation" aria-label="Info banner"> <div class="alert alert-warning fade in"> <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") </div> </section> } } @*Service menu*@ @if (GetString("Item.Area.Hide_Servicemenu") == "False") { <section class="service-navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")' aria-label="service menu"> <nav aria-label="Service menu"> <ul class="container text-right hidden-print"> @GetValue("DwNavigation(servicenavigation)") <li class=""><a href="//www.adgangforalle.dk/" target="_blank" class="read-more-icon" rel="noreferrer">Læs op</a></li> <li class=""><a href="javascript:void(0);" id="printicon" class="print-icon">Print</a></li> </ul> </nav> </section> } <div class="navbar hidden-print" role="navigation" aria-label="Hoved menu" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> <div class="container top-nav" id="nav-wrapper"> @*Mobile menu button*@ <button class="navbar-toggle collapsed" aria-expanded="false" aria-label="Mobile Menu" data-target="#mobile-menu" data-toggle="collapse" type="button" aria-haspopup="true"> </button> @*Mobile menu*@ <nav aria-label="Mobile Menu"> @GetValue("DwNavigation(mobilemenu)") </nav> @*Logo left*@ <div class='navbar-header col-xs-6 col-md-4 logoLeft'> @if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsDesktop")) || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsTablet"))) { if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))) { <!-- WCAG --> <a class="navbar-brand" href="/" aria-label='@GetString("Item.Area.NameOrganisation")'> <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> </a> <!-- WCAG --> } } else { if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoMobile"))) { <a class="navbar-brand" href="/" aria-label='@Translate("Sitename", "Bleauprint government")'> <img src='@GetString("Item.Area.LogoMobile")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> </a> } else { <a class="navbar-brand logo-image" href="/" title=""></a> } } </div> @*Top menu desktop*@ @{ <nav class='col-sm-5 col-md-7 nav-top hidden-print @GetString("Item.Area.LogoLocation")' aria-label="Desktop Menu"> @GetValue("DwNavigation(menu)") </nav> } @*SearchTop*@ @{ if (GetString("Item.Area.SearchMethod") == "cludo") { @SnippetStart("StyleSheetHead") <link href="https://customer.cludo.com/css/templates/v2.2/essentials/cludo-search.min.css" type="text/css" rel="stylesheet"> <link href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/cludo.min.css" type="text/css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> <a href="" class="collapsed" title="Søg" aria-label="Indholdssøgning"></a> </div> <div id="search-boxTop" class="search-drop search-form"> @SnippetStart("StyleSheetHead") @if (GetString("Item.Area.HovedSite") == "True") { <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" rel="stylesheet"> } else { var csslink = "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch_" + @Pageview.Area.ID + ".min.css"; <link rel="stylesheet" href="@csslink" media="all"> } <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> @SnippetEnd("StyleSheetHead") <form id="cludoForm" role="search"> <div class="search-area" id="CludoSearchFormTop"> <input aria-label="Topmenu søgefelt" id="searchSubmit" name="searchrequest" class="col-md-7 col-lg-8 col-lg-offset-0 col-sm-9 col-xs-9 formInput search-input" title="Skriv hvad du søger" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' autocomplete="off" type="search" aria-label="Search" aria-describedby="autocomplete_hint"> <button type="submit" title="Søg" class="search-button col-lg-2 col-md-2 col-xs-3" id="search-button">Søg</button> </div> </form> </div> @SnippetStart("JavaScriptBottom") <script type="text/javascript" src="https://customer.cludo.com/scripts/bundles/search-script.min.js"></script> <script> var CludoType = 'GetValue("Item.Area.Type")'; var CludoTemplate = 'GetValue("Item.Area.Template")'; var CludoSearchExtra = 'GetValue("Item.Area.EkstraScriptkode")'; var CludoSearch; (function () { var cludoSettings = { customerId: @GetValue("Item.Area.CustomerID"), engineId: @GetValue("Item.Area.EngineID"), searchUrl: '@GetValue("Item.Area.SearchUrl")', language: 'da', searchInputs: ["cludoForm", "CludoSearchFormTop", "cludo-search-content-form", "SearchForm","CludoSearchForm"], template: '@GetValue("Item.Area.Template")', focusOnResultsAfterSearch: false, type: '@GetValue("Item.Area.Type")', loading: "<img src='//customer.cludo.com/img/loading.gif' alt='Loader flere resultater' class='loading' role='progressbar' /><div class='loading-more-text'></div>", endlessScroll: { stopAfterPage: 2, resultsPerPage: 10, bottomOffset: 700 } }; CludoSearch = new Cludo(cludoSettings); CludoSearch.translateProvider.translations["da"]["backToTop"] = "<i class='fa fa-chevron-up'></i>"; CludoSearch.translateProvider.translations["da"]["load_more"] = "Vis flere"; CludoSearch.translateProvider.translations["da"]["your_search_on"] = "Søgningen "; if (CludoSearchExtra != '') { CludoSearchExtra } CludoSearch.init(); })(); </script> <!--[if lte IE 9]> <script src="https://api.cludo.com/scripts/xdomain.js" slave="https://api.cludo.com/proxy.html" type="text/javascript"></script> <![endif]--> @SnippetEnd("JavaScriptBottom") } else { @inherits RazorTemplateBase<RazorTemplateModel<Template>> <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> <a href="" class="collapsed" title="Søg" aria-label="Indholdssøgning"></a> </div> <div id="search-boxTop" class="search-drop search-form"> @SnippetStart("StyleSheetHead") @{ string weightedStyle = GetString("Item.Area.HovedSite") == "True" ? "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" : "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch_" + @Pageview.Area.ID + ".min.css"; } <link rel="stylesheet" href="@weightedStyle" media="all"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> @SnippetEnd("StyleSheetHead") <form action="/Default.aspx" accept-charset="utf-8" id="SearchFormTop"> <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> <div class="search-area"> <input aria-label="Topmenu søge felt" id="searchSubmit" autocomplete="off" size="10" spellcheck="false" dir="ltr" class="search-input" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' data-error='@Translate("searchText", "S&oslash;g p&aring; sitet")' type="text" name="q" value='@GetValue("DwSearchPhrase")'> <input type="submit" value="Søg" class="search-button" title="Søg"> </div> </form> </div> } } </div><!-- /.container --> </div><!-- /.navbar --> </header> @SnippetStart("JavaScriptBottom") @*<script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/livesearch.js" type="text/javascript"></script>*@ @SnippetEnd("JavaScriptBottom"); } <div class="navbar visible-print" role="banner" aria-label="logo-image"> <div class="container top-nav"> <div class="navbar-header col-xs-6 col-md-4"> <div class="visible-print"> <div class="navbar-brand"> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image")) && !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsMobile"))) { <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> } </div> </div> </div> </div> </div> @{ string Tpage = GetGlobalValue("Global:Pageview.LayoutTemplate"); if (Tpage != ("frontpage.cshtml")) { <div class="selvbetjening-wrapper selvbetjening-mobil hidden-print" role="navigation" aria-label="selvbetjeningsmenu"> <button class="selv-btn collapsed" aria-controls="Selvbetjeningsmenu" aria-expanded="false" id="selvbetjening-btn">@Translate("Selvbetjening", "Selvbetjening")</button> <div class="selvbetjening-links clearfix collapse dont-collapse-sm" id="Selvbetjeningsmenu"> <ul id="selfservice-green"> @{ var entriesList = GetLoop("Item.Area.Entries_Item_List"); foreach (var e in entriesList) { var title = e.GetString("Item.Area.Entries_Item_List.Title.Value"); var type = e.GetString("Item.Area.Entries_Item_List.Type.Value"); var href = e.GetString("Item.Area.Entries_Item_List.Link_Url.Value"); <li> <a href="@href" target="_self"> <img class="svg-inject" src="@type" alt="Ikon @title" aria-hidden="true" onload="SVGInject(this)"> @title </a> </li> } } </ul> </div> </div> } } <div id="Hovedindhold" role="main" tabindex="0" lang="@language"> <!--Breadcrumb grey line--> <div class="grey-box leftSidebar"> <!--Breadcrumb--> <div class="container leftSidebar-subpage hidden-print"> <div class="breadcrumb text-right col-xs-12"> <nav aria-label="Breadcrumb navigation"> @GetValue("DwNavigation(Breadcrumb)") </nav> </div> </div> </div> <!--Left Sidebar--> <div class="leftSidebar"> <div class="container leftSidebar-subpage dagsordner"> <!--Left Sidebar menu--> <div class="col-xs-12 col-sm-4 submenu-list hidden-xs hidden-print" id="leftMenu" role="navigation" aria-label="Venstre undermenu"> @GetValue("DwNavigation(leftnav)") </div> <div class="col-xs-12 col-sm-8 page-title"> <h1 class="title" id="pageTitle">@GetString("DwPageName")</h1> <section aria-label="hoved indhold"> <div class="main-content" id="rightColumn">@GetValue("DwContent(rightColumn)")</div> </section> </div> </div> </div> <!--Purple & White Bottom Boxes--> <div class="row full-width" id="bottom-row-fluid">@GetValue("DwContent(bottomrowfluid)")</div> <!--Grey Box with custom mobile submenu--> @*<div class="grey-box leftSidebar hidden-print"> <div class="container leftSidebar-subpage"> <div class="col-xs-12 hidden-sm hidden-md hidden-lg clearfix mobile-submenu" id="GreyBox"> @GetValue("Include(navigation/MobileSubmenu.cshtml)") </div> </div> </div>*@ <!-- OpenGraph --> @{ var SoMeUrl = GetGlobalValue("Global:Request.Url"); var SoMeImage = ""; string SoMePageImage = GetString("Item.Page.SoMeImage"); if (!string.IsNullOrEmpty(SoMePageImage)) {SoMeImage = "https://" + GetGlobalValue("Global:Request.Host") + GetValue("Item.Page.SoMeImage");} else {SoMeImage = "https://" + GetGlobalValue("Global:Request.Host") + GetValue("Item.Area.Image");} string SoMeTitle = GetString("DwPageName"); string SoMeSite = GetString("DwAreaName"); string SoMeDescription = GetString("Meta.Description"); } @SnippetStart("OpenGraph") <meta property="og:type" content="website"> <meta property="og:site_name" content="@SoMeSite"> <meta property="og:url" content="@SoMeUrl"> <meta property="og:url_secure" content="@SoMeUrl"> <meta property="og:title" content="@SoMeTitle"> <meta property="og:image" content="@SoMeImage"> <meta property="og:image_secure" content="@SoMeImage"> @if (!string.IsNullOrEmpty(SoMeDescription)) {<meta property="og:description" content="@SoMeDescription">} <meta property="og:image:width" content="1000"> <meta property="og:image:height" content="500"> @SnippetEnd("OpenGraph") </div> </div> @if (GetString("Item.Area.Use_Custom_Footer") == "True") { @SnippetStart("StyleSheetHead") <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/customFooter.min.css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <footer class="row custom"> <section class="container footer-wrapper" aria-label="footer"> <div class="row" id="footerSections"> @*Footer Col 1*@ <div class="col-xs-12 col-sm-4 col-md-3 quick-links hidden-print"> <h2>@Translate("QuickLinks", "Quick links")</h2> @GetValue("DwNavigation(customquicklinks)") </div> @*Footer Col 2*@ <div class="col-xs-12 col-sm-4 col-md-3 quick-links quick-links2 hidden-print"> @GetValue("DwNavigation(customquicklinks2)") </div> @*Footer Col 3*@ <div class="col-xs-12 col-sm-4 col-md-3 adress-box vcard"> <span class="fn hidden"> <span class="given-name">@GetString("Item.Area.NameOrganisation")</span> <span class="additional-name"></span> <span class="family-name"></span> </span> <div class="fn org"><h2>@GetString("Item.Area.NameOrganisation")</h2></div> <div class="adress"> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.StreetAddress"))) { <div class="street-address">@GetString("Item.Area.StreetAddress")</div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.PostalCode")) || !string.IsNullOrWhiteSpace(GetString("Item.Area.Lacation"))) { <div class="adr"><span class="postal-code">@GetString("Item.Area.PostalCode")</span> <span class="locality">@GetString("Item.Area.Lacation")</span></div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telefon"))) { <div>@Translate("Telefon", "Telefon"): <span class="tel">@GetString("Item.Area.Telefon")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Fax"))) { <div class="tel"> <span class="type">@Translate("Fax", "Fax"): </span><span class="value">@GetString("Item.Area.Fax")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) { <div class="tel"> <span class="type">@Translate("CVR", "CVR"): </span><span class="value">@GetString("Item.Area.CVR")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Email"))) { <a class="email" href='mailto:@GetValue("Item.Area.Email")'>@GetValue("Item.Area.Email")</a> } </div> </div> @*Footer Col 4*@ @if (GetString("Item.Area.UseSocialMediaFooter") == "True") { @SnippetStart("StyleSheetHead") <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/footerSocialMedia.min.css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <div class="col-md-3 col-md-offset-0 col-sm-6 col-xs-12 socialContainer noPadding"> <h2 class="hidden-sm hidden-xs">@Translate("followUs", "Find os på")</h2> @* Social Media *@ @SnippetStart("socialMedia") <ul class="noxPadding xcol-xs-12" id="socialMedia"> @*<li><a title="Web TV" class="webTv" target="_blank" href="http://video.skanderborg.dk/"></a></li>*@ @*<li><a title="Facebook" class="facebook" target="_blank" href="https://www.facebook.com/skanderborg.dk"></a></li> <li><a title="LinkedIn" class="linkedin" target="_blank" href="https://www.linkedin.com/company/skanderborg-kommune/?trk=biz-companies-cym"></a></li>*@ </ul> @SnippetEnd("socialMedia") @RenderSnippet("socialMedia") @*<div>&nbsp;</div>*@ <div class="col-md-12 work-time noPadding"> <h2>@Translate("Aabningstider", "Åbningstider")</h2> <ul class="noPadding"> @foreach (var item in GetLoop("Item.Area.OpeningHours")) { <li><meta itemprop="openingHours" content='@item.GetValue("Item.Area.OpeningHours.Days")-@item.GetValue("Item.Area.OpeningHours.OpenHour")'>@item.GetValue("Item.Area.OpeningHours.Days")<span>@item.GetValue("Item.Area.OpeningHours.OpenHour")</span></li> } </ul> </div> </div> } else { <div class="col-xs-12 col-sm-4 col-md-3 work-time oh-day" itemscope="" itemtype="http://schema.org/CivicStructure"> <h2 itemprop="name">@Translate("Borgerservice", "Borgerservice åbningstider")</h2> <ul class="oh-highlight-day"> @foreach (var item in GetLoop("Item.Area.OpeningHours")) { <li><meta itemprop="openingHours" content='@item.GetValue("Item.Area.OpeningHours.Days")-@item.GetValue("Item.Area.OpeningHours.OpenHour")'>@item.GetValue("Item.Area.OpeningHours.Days")<span>@item.GetValue("Item.Area.OpeningHours.OpenHour")</span></li> } </ul> </div> } </div> @if (GetString("Item.Area.Use_WCAGModule") == "True") { @SnippetStart("StyleSheetHead") <link href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/footerWcag.min.css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <div class="col-xs-12 col-sm-12 col-md-12 hidden-print" id="WebAccessibility"> <h2>Webtilgængelighed</h2> <ul> <li class="col-xs-12 col-sm-6 col-md-3"> <span class="fa fa-si fa-sign-language" aria-hidden="true"></span> Adgang med tegn <label class="switch" for="Switchbutton"> <span class="sr-only">Tænd eller sluk for Adgang med tegn</span> <input role="switch" aria-checked="false" name="tænd eller sluk for adgang med tegn" aria-label="tænd eller sluk for adgang med tegn" class="switchBtn" id="Switchbutton" type="checkbox" onclick="SignLanguageMark(null,'rgba(255,255,0,0.5)');"> <span class="slider round"></span> </label> </li> <li class="col-xs-12 col-sm-6 col-md-3"> <a href="https://www.adgangforalle.dk/" target="_blank"><span class="fa fa-volume-up" aria-hidden="true"></span>Få teksten læst op</a> </li> @{ if (!string.IsNullOrWhiteSpace(GetString("Item.Area.WASpage_ID"))) { int WASpage_ID = Convert.ToInt32(GetValue("Item.Area.WASpage_ID")); string shortcut = Dynamicweb.Services.Pages.GetPage(WASpage_ID).ShortCut; if (!string.IsNullOrWhiteSpace(shortcut)) { <li class="col-xs-12 col-sm-6 col-md-3"> <a href="/was" target="_blank"><span class="fa fa-file-signature" aria-hidden="true"></span>Tilgængelighedserklæring</a> </li> } } } <li class="col-xs-12 col-sm-6 col-md-3"> <a href="/was-feedback"><span class="fa fa-comment" aria-hidden="true"></span>Giv os feedback</a> <!-- <a href='/was-feedback?wcag=@GetGlobalValue("Global:Pageview.Url")'><i class="fa fa-comment" aria-hidden="true"></i>Giv os feedback</a> --> </li> </ul> </div> } </section> </footer> } else if (GetString("Item.Area.Custom__quicklinks") == "True") { @SnippetStart("StyleSheetHead") <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/customFooter.min.css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <footer class="row custom"> <section class="container footer-wrapper" aria-label="footer"> <div class="row" id="footerSections"> @*Footer Col 1*@ <div class="col-xs-12 col-sm-4 col-md-3 quick-links hidden-print"> <h2>@Translate("QuickLinks", "Quick links")</h2> @GetValue("DwNavigation(customquicklinks1)") </div> @*Footer Col 2*@ <div class="col-xs-12 col-sm-4 col-md-3 quick-links quick-links2 hidden-print"> @GetValue("DwNavigation(customquicklinks22)") </div> @*Footer Col 3*@ <div class="col-xs-12 col-sm-4 col-md-3 adress-box vcard"> <span class="fn hidden"> <span class="given-name">@GetString("Item.Area.NameOrganisation")</span> <span class="additional-name"></span> <span class="family-name"></span> </span> <div class="fn org"><h2>@GetString("Item.Area.NameOrganisation")</h2></div> <div class="adress"> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.StreetAddress"))) { <div class="street-address">@GetString("Item.Area.StreetAddress")</div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.PostalCode")) || !string.IsNullOrWhiteSpace(GetString("Item.Area.Lacation"))) { <div class="adr"><span class="postal-code">@GetString("Item.Area.PostalCode")</span> <span class="locality">@GetString("Item.Area.Lacation")</span></div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telefon"))) { <div>@Translate("Telefon", "Telefon"): <span class="tel">@GetString("Item.Area.Telefon")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Fax"))) { <div class="tel"> <span class="type">@Translate("Fax", "Fax"): </span><span class="value">@GetString("Item.Area.Fax")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) { <div class="tel"> <span class="type">@Translate("CVR", "CVR"): </span><span class="value">@GetString("Item.Area.CVR")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Email"))) { <a class="email" href='mailto:@GetValue("Item.Area.Email")'>@GetValue("Item.Area.Email")</a> } </div> </div> @*Footer Col 4*@ <div class="col-xs-12 col-sm-4 col-md-3 work-time oh-day" itemscope="" itemtype="http://schema.org/CivicStructure"> <h2 itemprop="name">@Translate("Borgerservice", "Borgerservice åbningstider")</h2> <ul class="oh-highlight-day"> @foreach (var item in GetLoop("Item.Area.OpeningHours")) { <li><meta itemprop="openingHours" content='@item.GetValue("Item.Area.OpeningHours.Days")-@item.GetValue("Item.Area.OpeningHours.OpenHour")'>@item.GetValue("Item.Area.OpeningHours.Days")<span>@item.GetValue("Item.Area.OpeningHours.OpenHour")</span></li> } </ul> </div> </div> @if (GetString("Item.Area.Use_WCAGModule") == "True") { @SnippetStart("StyleSheetHead") <link href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/footerWcag.min.css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <div class="col-xs-12 col-sm-12 col-md-12 hidden-print" id="WebAccessibility"> <h2>Webtilgængelighed</h2> <ul> <li class="col-xs-12 col-sm-6 col-md-3"> <span class="fa fa-si fa-sign-language" aria-hidden="true"></span> Adgang med tegn <label class="switch" for="Switchbutton"> <span class="sr-only">Tænd eller sluk for Adgang med tegn</span> <input role="switch" aria-checked="false" name="tænd eller sluk for adgang med tegn" aria-label="tænd eller sluk for adgang med tegn" class="switchBtn" id="Switchbutton" type="checkbox" onclick="SignLanguageMark(null,'rgba(255,255,0,0.5)');"> <span class="slider round"></span> </label> </li> <li class="col-xs-12 col-sm-6 col-md-3"> <a href="https://www.adgangforalle.dk/" target="_blank"><span class="fa fa-volume-up" aria-hidden="true"></span>Få teksten læst op</a> </li> @{ if (!string.IsNullOrWhiteSpace(GetString("Item.Area.WASpage_ID"))) { int WASpage_ID = Convert.ToInt32(GetValue("Item.Area.WASpage_ID")); string shortcut = Dynamicweb.Services.Pages.GetPage(WASpage_ID).ShortCut; if (!string.IsNullOrWhiteSpace(shortcut)) { <li class="col-xs-12 col-sm-6 col-md-3"> <a href="/was" target="_blank"><span class="fa fa-file-signature" aria-hidden="true"></span>Tilgængelighedserklæring</a> </li> } } } <li class="col-xs-12 col-sm-6 col-md-3"> <a href="/was-feedback"><span class="fa fa-comment" aria-hidden="true"></span>Giv os feedback</a> <!-- <a href='/was-feedback?wcag=@GetGlobalValue("Global:Pageview.Url")'><i class="fa fa-comment" aria-hidden="true"></i>Giv os feedback</a> --> </li> </ul> </div> } </section> </footer>; } else { <footer class="row"> <section class="container footer-wrapper" aria-label="footer"> <div class="row" id="footerSections"> <div class="col-xs-12 col-sm-4 col-md-3 quick-links hidden-print"> <h2>@Translate("QuickLinks", "Quick links")</h2> @GetValue("DwNavigation(quicklinks)") </div> <div class="col-xs-12 col-sm-4 col-md-3 adress-box vcard"> <span class="fn hidden"> <span class="given-name">@GetString("Item.Area.NameOrganisation")</span> <span class="additional-name"></span> <span class="family-name"></span> </span> <div class="fn org"><h2>@GetString("Item.Area.NameOrganisation")</h2></div> <div class="adress"> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.StreetAddress"))) { <div class="street-address">@GetString("Item.Area.StreetAddress")</div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.PostalCode")) || !string.IsNullOrWhiteSpace(GetString("Item.Area.Lacation"))) { <div class="adr"><span class="postal-code">@GetString("Item.Area.PostalCode")</span> <span class="locality">@GetString("Item.Area.Lacation")</span></div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telefon"))) { <div>@Translate("Telefon", "Telefon"): <span class="tel">@GetString("Item.Area.Telefon")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Fax"))) { <div class="tel"> <span class="type">@Translate("Fax", "Fax"): </span><span class="value">@GetString("Item.Area.Fax")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) { <div class="tel"> <span class="type">@Translate("CVR", "CVR"): </span><span class="value">@GetString("Item.Area.CVR")</span> </div> } @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Email"))) { <a class="email" href='mailto:@GetValue("Item.Area.Email")'>@GetValue("Item.Area.Email")</a> } </div> </div> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Footer_Content_Paragraf_ID"))) { @RenderParagraphContent(GetInteger("Item.Area.Footer_Content_Paragraf_ID")) }else{ <div class="col-xs-12 col-sm-4 col-md-3 adress-box" itemscope="" itemtype="http://schema.org/CivicStructure"></div> } <div class="col-xs-12 col-sm-4 col-md-3 work-time oh-day" itemscope="" itemtype="http://schema.org/CivicStructure"> <h2 itemprop="name">@Translate("Borgerservice", "Borgerservice åbningstider")</h2> <ul class="oh-highlight-day"> @foreach (var item in GetLoop("Item.Area.OpeningHours")) { <li><meta itemprop="openingHours" content='@item.GetValue("Item.Area.OpeningHours.Days")-@item.GetValue("Item.Area.OpeningHours.OpenHour")'>@item.GetValue("Item.Area.OpeningHours.Days")<span>@item.GetValue("Item.Area.OpeningHours.OpenHour")</span></li> } </ul> </div> </div> @if (GetString("Item.Area.Use_WCAGModule") == "True") { @SnippetStart("StyleSheetHead") <link href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/footerWcag.min.css" rel="stylesheet"> @SnippetEnd("StyleSheetHead") <div class="col-xs-12 col-sm-12 col-md-12 hidden-print" id="WebAccessibility"> <h2>Webtilgængelighed</h2> <ul> <li class="col-xs-12 col-sm-6 col-md-3"> <span class="fa fa-si fa-sign-language" aria-hidden="true"></span> Adgang med tegn <label class="switch" for="Switchbutton"> <span class="sr-only">Tænd eller sluk for Adgang med tegn</span> <input role="switch" aria-checked="false" name="tænd eller sluk for adgang med tegn" aria-label="tænd eller sluk for adgang med tegn" class="switchBtn" id="Switchbutton" type="checkbox" onclick="SignLanguageMark(null,'rgba(255,255,0,0.5)');"> <span class="slider round"></span> </label> </li> <li class="col-xs-12 col-sm-6 col-md-3"> <a href="https://www.adgangforalle.dk/" target="_blank"><span class="fa fa-volume-up" aria-hidden="true"></span>Få teksten læst op</a> </li> @{ if (!string.IsNullOrWhiteSpace(GetString("Item.Area.WASpage_ID"))) { int WASpage_ID = Convert.ToInt32(GetValue("Item.Area.WASpage_ID")); string shortcut = Dynamicweb.Services.Pages.GetPage(WASpage_ID).ShortCut; if (!string.IsNullOrWhiteSpace(shortcut)) { <li class="col-xs-12 col-sm-6 col-md-3"> <a href="/was" target="_blank"><span class="fa fa-file-signature" aria-hidden="true"></span>Tilgængelighedserklæring</a> </li> } } } <li class="col-xs-12 col-sm-6 col-md-3"> <a href="/was-feedback"><span class="fa fa-comment" aria-hidden="true"></span>Giv os feedback</a> <!-- <a href='/was-feedback?wcag=@GetGlobalValue("Global:Pageview.Url")'><i class="fa fa-comment" aria-hidden="true"></i>Giv os feedback</a> --> </li> </ul> </div> } </section> </footer> } <div class="bgr-opacity"></div> @*Custom modules settings*@ @if (GetString("Item.Area.Use_Custom_Modules") == "True") { @*Modules below are included before </body>*@ @*WCAG - adgang med tegn*@ <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/wcag.min.js"></script> @*Overlay menu*@ <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/overlayMenu.js"></script> } <script src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/bootstrap/js/bootstrap.min.js"></script> <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/main.min.js"></script> <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/jquery.dotdotdot.min.js"></script> @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics_ID"))) { <text> <script> var _gaq = [['_setAccount', '@GetValue("Item.Area.Google_Analytics_ID")'], ['_trackPageview']]; (function(d, t) { var g = d.createElement(t), s = d.getElementsByTagName(t)[0]; g.async = true; g.src = '//www.google-analytics.com/ga.js'; s.parentNode.insertBefore(g, s); })(document, 'script'); </script> </text> } @RenderSnippet("JavaScriptBottom") @*Site - Extra scripts*@ @if (!string.IsNullOrEmpty(GetString("Item.Area.BodyScripts"))) { @GetString("Item.Area.BodyScripts") } @*Page - Extra scripts*@ @if (!string.IsNullOrEmpty(GetString("Item.Page.BeforeBodyEnd"))) { @GetString("Item.Page.BeforeBodyEnd") } <script>iFrameResize({ heightCalculationMethod: 'taggedElement' });</script> @*Muni*@ @if (GetString("Item.Area.UseChatRobot") == "True" && GetString("Item.Page.UseChatRobot") == "True") { string municipalityCode = GetString("Item.Area.Kommunekode"), chatbotName = GetString("Item.Area.ChatbotName"), chatBubbleBackgroundColor = GetString("Item.Area.ChatBubbleBackgroundColor"), chatBubbleTextColor = GetString("Item.Area.ChatBubbleTextColor"), chatbotTabIndex = GetString("Item.Area.ChatbotTabIndex"); if(municipalityCode.StartsWith("0")){ municipalityCode = municipalityCode.Substring(1,3); } //DHH Chatbot if ((GetString("Item.Page.UseChatRobot") == "True")) { <script> /* ## Municipality specific variables ## */ var municipalityCode = @municipalityCode; // The municipality code that your site uses var category = "@GetString("Item.Page.Cat")"; // The category which you want the chatbot to start on. Leave empty if not in category. var chatbotName = "@chatbotName"; // The name/header text of your chatbot (max chars is 22). In order to change chatbot name in the dialog also a context variable must be updated through the administration module. var chatBubbleBackgroundColor = "@chatBubbleBackgroundColor"; // Override chat bubble background color example "#f1f0f0" <- default var chatBubbleTextColor = "@chatBubbleTextColor"; // Override chat bubble text color example "#202020" <- default var chatbotTabIndex = "@chatbotTabIndex"; // The default tab index is 0 and the chatbot is placed at bottom of <body>. This can be changed by website integrator - replace lines "document.body.appendChild" with other hierarchy location. /* ## Implementation ## */ var chatbotUrl = "https://chatbot.dendigitalehotline.dk"; var xhr = new XMLHttpRequest(); var failoverTried = false; var chatbotLoaded = false; var currentHost = Math.round(Math.random()); var backendHosts = [ "https://ddh-backend-prod.eu-gb.mybluemix.net", "https://ddh-backend-prod.eu-de.mybluemix.net" ]; xhr.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200 && window.innerWidth > 200) { /* Load config */ var config = xhr.responseText ? JSON.parse(xhr.responseText) : {}; var presentationMode = config.presentationMode !== undefined ? config.presentationMode : 3; /* Add dynamic styles */ var h = document.getElementsByTagName('head')[0]; var l = document.createElement('link'); l.type = 'text/css'; l.rel = 'stylesheet'; l.href = chatbotUrl + "/stylesheets/thumbnail.css"; var chatbotStyle = document.createElement('style'); if (municipalityCode && municipalityCode > 100 && municipalityCode < 900) { chatbotStyle.innerHTML = "#chatbot-container.round:before { background-image: url(" + chatbotUrl + "/images/avatar/customization/" + municipalityCode + "_noshadow.svg); }"; } else { chatbotStyle.innerHTML = "#chatbot-container.round:before { background-image: url(" + chatbotUrl + "/images/avatar/customization/0_noshadow.svg); }"; } if (chatBubbleBackgroundColor && chatBubbleTextColor) { chatbotStyle.innerHTML += " .text-bubble { background: " + chatBubbleBackgroundColor + " !important; color: " + chatBubbleTextColor + " !important; } .text-bubble:after { border-left-color: " + chatBubbleBackgroundColor + " !important; }" } h.appendChild(chatbotStyle); h.appendChild(l); /* Create elements */ var chatbotShadow = document.createElement('div'); chatbotShadow.id = "chatbot-container-shadow"; chatbotShadow.classList.add("round"); var chatbotContainer = document.createElement('div'); chatbotContainer.id = "chatbot-container"; chatbotContainer.classList.add("round"); if (presentationMode == 1 || presentationMode == 3) { chatbotContainer.classList.add("jump"); } chatbotContainer.setAttribute("role", "region"); chatbotContainer.setAttribute("tabindex", chatbotTabIndex); chatbotContainer.setAttribute("aria-label", "Har du spørgsmål, prøv vores chatbot"); chatbotContainer.onkeydown = function (e) { if (e.key === " " || e.key === "Enter" || e.key === "Spacebar") { toggleChatbot(e); } }; chatbotContainer.onclick = function (e) { toggleChatbot(e); }; var chatbotCloseBtn = document.createElement('div'); chatbotCloseBtn.id = "x"; chatbotCloseBtn.classList.add("hidden"); chatbotCloseBtn.setAttribute("role", "button"); chatbotCloseBtn.setAttribute("tabindex", "0"); chatbotCloseBtn.setAttribute("aria-label", "Luk chatbot vindue"); chatbotCloseBtn.onkeydown = function (e) { if (e.key === " " || e.key === "Enter" || e.key === "Spacebar") { toggleChatbot(e); } }; chatbotCloseBtn.onclick = function (e) { toggleChatbot(e); }; var chatbotContent = document.createElement('div'); chatbotContent.id = "iframe"; chatbotContent.classList.add("hidden"); var iframe = document.createElement('iframe'); iframe.seamless = 'seamless'; iframe.frameBorder = "0"; iframe.style.width = '100%'; iframe.style.height = '100%'; iframe.style.border = 'none'; iframe.id = "innerFrame"; iframe.title = "Har du spørgsmål, prøv vores chatbot"; chatbotContent.appendChild(iframe); chatbotContainer.appendChild(chatbotCloseBtn); chatbotContainer.appendChild(chatbotContent); document.body.appendChild(chatbotShadow); document.body.appendChild(chatbotContainer); if (presentationMode === 2 || presentationMode === 3) { var chatBubble = document.createElement('div'); chatBubble.id = "chatbot-bubble"; chatBubble.classList.add("text-bubble"); chatBubble.classList.add(presentationMode !== 2 ? "text-bubble-in" : "text-bubble-in-fast"); chatBubble.textContent = config.presentationMessage && config.presentationMessage !== "" ? config.presentationMessage : "Skal du have hjælp, så spørg mig!" document.body.appendChild(chatBubble); setTimeout(function () { chatBubble.classList.remove(presentationMode !== 2 ? "text-bubble-in" : "text-bubble-in-fast"); chatBubble.classList.add("text-bubble-out"); }, 13000); } function showChatbot() { if (!chatbotLoaded) { if (category !== "") { iframe.src = chatbotUrl + "/?municipalityCode=" + municipalityCode + "&category=" + category + "&name=" + chatbotName } else { iframe.src = chatbotUrl + "/?municipalityCode=" + municipalityCode + "&name=" + chatbotName; } chatbotLoaded = true; } iframe.contentWindow.postMessage("initialize", "*"); if (document.getElementById("chatbot-bubble")) { document.getElementById("chatbot-bubble").classList.add("hidden"); } document.getElementById("chatbot-container").setAttribute("role", ""); document.getElementById("chatbot-container-shadow").classList.add("hidden"); document.getElementById("chatbot-container").classList.remove("round"); document.getElementById("chatbot-container").classList.remove("jump"); document.getElementById("chatbot-container").classList.add("square"); document.getElementById("x").classList.remove("hidden"); setTimeout(function () { document.getElementById("iframe").classList.remove("hidden"); }, 400); } function hideChatbot() { document.getElementById("chatbot-container").setAttribute("role", "button"); document.getElementById("iframe").classList.add("hidden"); document.getElementById("chatbot-container").classList.remove("square"); document.getElementById("chatbot-container").classList.add("round"); document.getElementById("x").classList.add("hidden"); document.getElementById("chatbot-container-shadow").classList.remove("hidden"); } function toggleChatbot(event) { event = event || window.event; event.stopPropagation(); var container = document.getElementById("chatbot-container"); if (container.classList.contains("round")) { if (window.innerWidth < 450) { container.style.width = window.innerWidth - 30 + "px"; } showChatbot() } else { container.style.width = ""; hideChatbot() } } } else if (this.readyState == 4 && !failoverTried && this.status != 503) { failoverTried = true; currentHost = currentHost ? 0 : 1; xhr.open("GET", backendHosts[currentHost] + "/api/maintenance/" + municipalityCode, true); xhr.send(); } }; xhr.open("GET", backendHosts[currentHost] + "/api/maintenance/" + municipalityCode, true); xhr.send(); function disableiOSDefaultTextFieldZoom() { // Are we running on iOS? if (!(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream)) return; var viewportEl = document.querySelector('meta[name=viewport]'); if (viewportEl !== null) { var content = viewportEl.getAttribute('content'); var maxScaleRegex = /maximum\-scale=[0-9\.]+/g; if (maxScaleRegex.test(content)) { content = content.replace(maxScaleRegex, 'maximum-scale=1.0'); } else { content = [content, 'maximum-scale=1.0'].join(', ') } viewportEl.setAttribute('content', content); } } disableiOSDefaultTextFieldZoom(); </script> }; } <!-- Facebook Pixel Code --> <!-- End Facebook Pixel Code --> <!-- SiteImprove Script Start --> <!-- SiteImprove Script End --> </html>