Error executing 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.RazorEngine_72409cb8f76d437f9c30ef40cf16c510.Execute() in D:\Dynamicweb.Net\www.gladsaxe.dk (DW9.x)\Files\Templates\Designs\bleau-solutionset\_parsed\left-nav-subpage.parsed.cshtml:line 20
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering 3 4 <!DOCTYPE html> 5 <html lang="@Pageview.Area.CultureInfo.TwoLetterISOLanguageName"> 6 <head> 7 <script src="https://cookiecontrol.bleau.dk/scripts/cookieconsent.js"></script> 8 <script id="cookiecontrolfunctions" src="https://cookiecontrol.bleau.dk/scripts/Cookiecontrolfunctions.js" data-cname="Gladsaxe" data-defaultset="dwdefault"></script> 9 10 <meta charset="utf-8"> 11 <meta name="viewport" content="width=device-width, initial-scale = 1.0"> 12 <meta name="google-site-verification" content="V3fEHGr3Eb00bLHm3OHAZ8D3vh-ZqHn0ioU_wxxNMGs"> 13 <meta name="pageID" content='@GetGlobalValue("Global:Page.ID")'> 14 15 @if (!string.IsNullOrEmpty(GetString("Item.Editor_NewsItem"))) 16 { 17 <meta name="author" content='@(!string.IsNullOrEmpty(GetString("Item.Editor_NewsItem")) ? Dynamicweb.Security.UserManagement.User.GetUserByID(Convert.ToInt32(GetValue("Item.Editor_NewsItem"))).Name : "")'> 18 } 19 else if (!string.IsNullOrEmpty(GetString("Item.Page.Editor"))) 20 { 21 <meta name="author" content='@(!string.IsNullOrEmpty(GetString("Item.Page.Editor")) ? Dynamicweb.Security.UserManagement.User.GetUserByID(Convert.ToInt32(GetValue("Item.Page.Editor"))).Name : "")'> 22 } 23 24 <title>@GetValue("Title")</title> 25 @GetValue("MetaTags") 26 @GetValue("CopyRightNotice") 27 28 @{ 29 var csslink = "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/Subsites/Less/bleau-solutionset_" + @Pageview.Area.ID + ".min.css?ticks=" + @GetDate("DwPageUpdatedDate").Ticks; 30 } 31 @if (@Pageview.Area.ID == 1) 32 { 33 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/bleau-styles.min.css?vs=19062020" media="screen"> 34 } 35 else 36 { 37 <link rel="stylesheet" href="@csslink" media="screen"> 38 } 39 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/print.min.css" media="print"> 40 <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> 41 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/svg-inject.min.js"></script> 42 <script type="text/javascript" src="//webkort.gladsaxe.dk/clientapi/minimap2/mmloader.js" charset="iso-8859-1"></script> 43 44 @RenderSnippet("StyleSheetHead") 45 @RenderSnippet("StyleSheet") 46 @RenderSnippet("standardModulesCSS") 47 48 @if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenu)"))) 49 { 50 <link href='@GetString("Item.Area.Custom_CSS_Url")' rel="stylesheet"> 51 } 52 53 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) 54 { 55 <!-- Google Tag Manager --> 56 <script> 57 (function (w, d, s, l, i) { 58 w[l] = w[l] || []; w[l].push({ 59 'gtm.start': 60 new Date().getTime(), event: 'gtm.js' 61 }); var f = d.getElementsByTagName(s)[0], 62 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 63 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 64 })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.GTMID")');</script> 65 <!-- End Google Tag Manager --> 66 } 67 68 <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'> 69 <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'> 70 71 <!-- www.Cludo.com search start CSS --> 72 <link href="//customer.cludo.com/assets/2539/11262/cludo-search.min.css" type="text/css" rel="stylesheet"> 73 <!-- www.Cludo.com search end CSS --> 74 75 76 @GetValue("Stylesheets") 77 @GetValue("Javascripts") 78 </head> 79 @{ 80 81 var bodyclass = ""; 82 string Cpage = GetString("DwPageName"); 83 84 if (Cpage.Contains("Forside")) 85 { 86 bodyclass = "frontpage "; 87 } 88 bodyclass += "purple"; 89 90 bodyclass = bodyclass.Trim(); 91 } 92 <body class="@bodyclass"> 93 94 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) 95 { 96 <!-- Google Tag Manager (noscript) --> 97 <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> 98 <!-- End Google Tag Manager (noscript) --> 99 } 100 <div class="body-wrapper"> 101 102 @if (GetString("Item.Area.InformationsBanner.ActivateBanner") == "True") 103 { 104 105 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.InformationsBanner.InfoLink"))) 106 { 107 <a href='@GetString("Item.Area.InformationsBanner.InfoLink")'> 108 <div class="alert alert-warning fade in myAlert"> 109 <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") 110 </div> 111 </a> 112 } 113 else 114 { 115 <div class="alert alert-warning fade in"> 116 <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") 117 </div> 118 } 119 } 120 121 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 122 @using Dynamicweb.Rendering; 123 @using System.Collections; 124 @using System.Globalization; 125 126 <header> 127 <a class="skip-main" role="navigation" aria-labelledby="Hovedindhold" href="#Hovedindhold">Skip til hoved indholdet</a> 128 <section class="service-navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")' aria-label="service menu"> 129 <nav aria-label="Service menu"> 130 <ul class="container text-right hidden-print"> 131 @GetValue("DwNavigation(servicenavigation)") 132 <li class=""><a href="//www.adgangforalle.dk/" title="Audio" target="_blank" class="read-more-icon" rel="noreferrer">Læs op</a></li> 133 <li class=""><a href="javascript:void(0);" title="print" id="printicon" class="print-icon">Print</a></li> 134 </ul> 135 </nav> 136 </section> 137 <div class="navbar hidden-print" role="navigation" aria-label="Hoved menu" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> 138 <div class="container top-nav" id="nav-wrapper"> 139 <button class="navbar-toggle collapsed" aria-expanded="false" aria-label="Mobile Menu" data-target="#mobile-menu" data-toggle="collapse" type="button"> 140 </button> 141 <nav aria-label="Mobile Menu"> 142 @GetValue("DwNavigation(mobilemenu)") 143 </nav> 144 <div class="navbar-header col-xs-6 col-md-4"> 145 146 @if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsDesktop")) || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsTablet"))) 147 { 148 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))) 149 { 150 <a class="navbar-brand" href='/Default.aspx?AreaID=@GetString("DwAreaID")' aria-label='@GetString("Item.Area.NameOrganisation")'> 151 <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> 152 </a> 153 } 154 } 155 else 156 { 157 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoMobile"))) 158 { 159 <a class="navbar-brand" href='/Default.aspx?AreaID=@GetString("DwAreaID")' aria-label='@Translate("Sitename", "Bleauprint government")'> 160 <img src='@GetString("Item.Area.LogoMobile")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> 161 </a> 162 } 163 else 164 { 165 <a class="navbar-brand logo-image" href="/" title=""></a> 166 } 167 } 168 </div> 169 170 <nav class="col-sm-5 col-md-7 nav-top hidden-print" aria-label="Desktop Menu"> 171 @GetValue("DwNavigation(menu)") 172 </nav><!-- /.nav-collapse --> 173 174 @inherits RazorTemplateBase< RazorTemplateModel < Template > > 175 @using Dynamicweb.Rendering 176 177 <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> 178 <a href="" class="collapsed" title="Søg"></a> 179 </div> 180 <div id="search-boxTop" class="search-drop search-form"> 181 @SnippetStart("StyleSheetHead") 182 @if (@Pageview.Area.ID == 1) 183 { 184 <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" rel="stylesheet"> 185 } 186 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> 187 @SnippetEnd("StyleSheetHead") 188 189 @*<form action="/Default.aspx" accept-charset="utf-8" id="SearchFormTop"> 190 <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> 191 <div class="search-area"> 192 <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")'> 193 <input type="submit" value="Søg" class="search-button" title="Søg"> 194 </div> 195 </form>*@ 196 197 198 <form accept-charset="utf-8" id="SearchFormTop"> 199 <div class="search-area" id="CludoSearchFormTop" role="search"> 200 <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> 201 <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='S&oslash;g p&aring; sitet' type="text" name="q" value=""> 202 <input type="submit" value="Søg" class="search-button" title="Søg"> 203 </div> 204 </form> 205 </div> 206 207 </div><!-- /.container --> 208 </div><!-- /.navbar --> 209 </header> 210 @SnippetStart("JavaScriptBottom") 211 <script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/livesearch.js" type="text/javascript"></script> 212 @SnippetEnd("JavaScriptBottom") 213 214 <div class="navbar visible-print" role="banner"> 215 <div class="container top-nav"> 216 <div class="navbar-header col-xs-6 col-md-4"> 217 <div class="visible-print"> 218 <div class="navbar-brand"> 219 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image")) && !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsMobile"))) 220 { 221 <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' aria-hidden="true" onload="SVGInject(this)"> 222 223 } 224 </div> 225 </div> 226 </div> 227 </div> 228 </div> 229 @{ 230 string Tpage = GetGlobalValue("Global:Pageview.LayoutTemplate"); 231 if (Tpage != ("frontpage.cshtml")) 232 { 233 <div class="selvbetjening-wrapper selvbetjening-mobil hidden-print" role="navigation" aria-label="selvbetjeningsmenu"> 234 <!-- WCAG ændring --> 235 236 <button class="selv-btn collapsed" aria-controls="Selvbetjeningsmenu" aria-expanded="false" id="selvbetjening-btn">@GetString("Item.Area.Tekster.Selvbetjening_Undersider")</button> 237 238 <div class="selvbetjening-links clearfix collapse dont-collapse-sm" id="Selvbetjeningsmenu"> 239 240 <!-- <ul class="dwnavigation" title="Selvbetjening" id="selfservice-green" data-settings="parenttag:Selvbetjening;endlevel:2;expandmode:Path;template:selfserviceNavigation.xslt;"></ul> --> 241 242 <ul title="Selvbetjening" id="selfservice-green"> 243 @{ 244 245 var entriesList = GetLoop("Item.Area.Entries_Item_List"); 246 247 foreach (var e in entriesList) 248 { 249 var title = e.GetString("Item.Area.Entries_Item_List.Title.Value"); 250 var type = e.GetString("Item.Area.Entries_Item_List.Type.Value"); 251 var href = e.GetString("Item.Area.Entries_Item_List.Link_Url.Value"); 252 253 <li> 254 <a href="@href" target="_self" title="@title" tabindex="-1"> 255 <img class="svg-inject" src="@type" alt="Ikon @title" onload="SVGInject(this)"> 256 @title 257 </a> 258 </li> 259 } 260 } 261 </ul> 262 263 </div> 264 </div> 265 } 266 267 } 268 <div id="Hovedindhold" role="main"> 269 270 271 272 <!--Breadcrumb grey line--> 273 <div class="grey-box leftSidebar"> 274 275 <!--Breadcrumb--> 276 <div class="container leftSidebar-subpage hidden-print"> 277 <div class="breadcrumb text-right col-xs-12"> 278 <nav aria-label="Breadcrumb navigation"> 279 @GetValue("DwNavigation(Breadcrumb)") 280 </nav> 281 </div> 282 </div> 283 </div> 284 285 <!--Left Sidebar--> 286 <div class="leftSidebar"> 287 <div class="container leftSidebar-subpage"> 288 289 <!--Left Sidebar menu--> 290 <div class="col-xs-12 col-sm-4 submenu-list hidden-xs hidden-print" id="leftMenu" role="navigation" aria-label="Venstre undermenu"> 291 @GetValue("DwNavigation(leftnav)") 292 </div> 293 <div class="col-xs-12 col-sm-8 page-title"> 294 <h1 class="title" id="pageTitle">@GetString("DwPageName")</h1> 295 <section aria-label="hoved indhold"> 296 <div class="main-content" id="rightColumn">@GetValue("DwContent(rightColumn)")</div> 297 </section> 298 </div> 299 </div> 300 </div> 301 302 <!--Purple & White Bottom Boxes--> 303 304 305 <!--Contacts area--> 306 <div class="leftSidebar purple-box"> 307 <div class="container leftSidebar-subpage"> 308 <div class="col-xs-12 col-sm-8 col-md-offset-4 col-sm-offset-4"> 309 <!--div class="dwcontent" title="Kontakter (flere) BRUG IKKE" id="TEST" settings="template:ContactNarrow.cshtml;"></div--> 310 <div id="more_contacts">@GetValue("DwContent(morecontacts)")</div> 311 </div> 312 </div> 313 </div> 314 </div> 315 316 <!--@Full width--> 317 <div class="row full-width" id="bottom-row-fluid">@GetValue("DwContent(bottomrowfluid)")</div> 318 319 320 <!--Grey Box with custom mobile submenu--> 321 <div class="grey-box leftSidebar hidden-print"> 322 <div class="container leftSidebar-subpage"> 323 <div class="col-xs-12 hidden-sm hidden-md hidden-lg clearfix mobile-submenu" id="GreyBox"> 324 @GetValue("Include(navigation/MobileSubmenu.cshtml)") 325 </div> 326 </div> 327 </div> 328 </div> 329 330 331 <footer class="row"> 332 <section class="container footer-wrapper" aria-label="footer"> 333 <div class="row" id="footerSections" role="contentinfo"> 334 <div class="col-xs-12 col-sm-4 col-md-3 quick-links hidden-print"> 335 <h1>@GetString("Item.Area.Tekster.Kolonne_1")</h1> 336 @GetValue("DwNavigation(quicklinks)") 337 </div> 338 <div class="col-xs-12 col-sm-4 col-md-3 adress-box vcard"> 339 <span class="fn hidden"> 340 <span class="given-name">@GetString("Item.Area.NameOrganisation")</span> 341 <span class="additional-name"></span> 342 <span class="family-name"></span> 343 </span> 344 <div class="fn org"><h1>@GetString("Item.Area.Tekster.Kolonne_2")</h1></div> 345 <div class="adress"> 346 <div class="street-address">@GetString("Item.Area.StreetAddress")</div> 347 348 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.PostalCode")) || !string.IsNullOrWhiteSpace(GetString("Item.Area.Lacation"))) 349 { 350 <div class="adr"><span class="postal-code">@GetString("Item.Area.PostalCode")</span> <span class="locality">@GetString("Item.Area.Lacation")</span></div> 351 } 352 353 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telefon"))) 354 { 355 <div>@Translate("Telefon", "Telefon"): <span class="tel">@GetString("Item.Area.Telefon")</span> </div> 356 } 357 358 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Fax"))) 359 { 360 <div class="tel"> <span class="type">@Translate("Fax", "Fax"): </span><span class="value">@GetString("Item.Area.Fax")</span> </div> 361 } 362 363 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) 364 { 365 <div class="tel"> <span class="type">@Translate("CVR", "CVR"): </span><span class="value">@GetString("Item.Area.CVR")</span> </div> 366 } 367 368 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Email"))) 369 { 370 <a class="email" href='mailto:@GetValue("Item.Area.Email")'>@GetValue("Item.Area.Email")</a> 371 } 372 </div> 373 </div> 374 <div class="col-xs-12 col-sm-4 col-md-3 col-md-offset-3 work-time oh-day" itemscope="" itemtype="http://schema.org/CivicStructure"> 375 <h1 itemprop="name">@GetString("Item.Area.Tekster.Kolonne_4")</h1> 376 <ul class="oh-highlight-day"> 377 @foreach (var item in GetLoop("Item.Area.OpeningHours")) 378 { 379 <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> 380 381 } 382 </ul> 383 384 </div> 385 </div> 386 387 @if(GetString("DwAreaID") == "1") { 388 <div class="col-xs-12 col-sm-12 col-md-12 hidden-print" id="WebAccessibility" style="display:none;"> 389 390 <h1>Webtilgængelighed</h1> 391 <ul> 392 <li class="col-xs-12 col-sm-6 col-md-3"> 393 <i class="fa fa-si fa-sign-language" aria-hidden="true"></i> 394 Adgang med tegn 395 <label class="switch" for="Switchbutton"> 396 <span class="sr-only">Tænd eller sluk for Adgang med tegn</span> 397 <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)');"> 398 <span class="slider round"></span> 399 </label> 400 401 </li> 402 <li class="col-xs-12 col-sm-6 col-md-3"> 403 <a href="https://www.adgangforalle.dk/" target="_blank"><i class="fa fa-volume-up" aria-hidden="true"></i>Få teksten læst op</a> 404 </li> 405 406 @{ 407 408 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.WASpage_ID"))) { 409 410 int WASpage_ID = Convert.ToInt32(GetValue("Item.Area.WASpage_ID")); 411 string shortcut = Dynamicweb.Services.Pages.GetPage(WASpage_ID).ShortCut; 412 413 if (!string.IsNullOrWhiteSpace(shortcut)) 414 { 415 <li class="col-xs-12 col-sm-6 col-md-3"> 416 <a href="/was" target="_blank"><i class="fa fa-file-signature" aria-hidden="true"></i>Tilgængelighedserklæring</a> 417 </li> 418 } 419 420 } 421 } 422 <li class="col-xs-12 col-sm-6 col-md-3"> 423 <a href="/was-feedback"><i class="fa fa-comment" aria-hidden="true"></i>Giv os feedback</a> 424 <!-- <a href='/was-feedback?wcag=@GetGlobalValue("Global:Pageview.Url")'><i class="fa fa-comment" aria-hidden="true"></i>Giv os feedback</a> --> 425 </li> 426 </ul> 427 428 </div> 429 } 430 </section> 431 432 433 </footer> 434 435 <div class="bgr-opacity"></div> 436 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/jquery.dotdotdot.min.js"></script> 437 <!-- <script type="text/javascript" src="assets/javascripts/infinityScroll.min.js"></script> --> 438 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/bootstrap/js/bootstrap.min.js"></script> 439 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/main.min.js?vs=2"></script> 440 441 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics_ID"))) 442 { 443 <text> 444 <script> 445 var _gaq = [['_setAccount', '@GetValue("Item.Area.Google_Analytics_ID")'], ['_trackPageview']]; 446 (function(d, t) { 447 var g = d.createElement(t), 448 s = d.getElementsByTagName(t)[0]; 449 g.async = true; 450 g.src = '//www.google-analytics.com/ga.js'; 451 s.parentNode.insertBefore(g, s); 452 })(document, 'script'); 453 </script> 454 </text> 455 456 } 457 @RenderSnippet("JavaScriptBottom") 458 459 <!-- www.Cludo.com search start JS --> 460 <!--[if lte IE 9]> 461 <script src="https://api.cludo.com/scripts/xdomain.js" slave="https://api.cludo.com/proxy.html"></script> 462 <![endif]--> 463 <!-- www.Cludo.com search end JS --> 464 <!-- www.Cludo.com Search body init script start --> 465 <script type="text/javascript" src="//customer.cludo.com/scripts/bundles/search-script.min.js"></script> 466 <script> 467 var CludoSearch; 468 (function () { 469 var cludoSettings = { 470 customerId: 2539, 471 engineId: 11262, 472 searchUrl: "/kommunen/soegeresultat", 473 searchInputs: ["CludoSearchFormTop", "cludo-search-content-form", "SearchForm"], 474 initSearchBoxText: "", 475 loading: "<img src='//customer.cludo.com/img/loading.gif' alt='Loading' class='loading' role='progressbar' />", 476 endlessScroll: { stopAfterPage: 3, resultsPerPage: 10, bottomOffset: 700 } 477 }; 478 CludoSearch = new Cludo(cludoSettings); 479 CludoSearch.translateProvider.translations["da"]["backToTop"] = "<i class='fa fa-chevron-up'></i>"; 480 CludoSearch.translateProvider.translations["da"]["load_more"] = "Vis flere"; 481 CludoSearch.translateProvider.translations["da"]["your_search_on"] = "Søgningen "; 482 CludoSearch.init(); 483 })(); 484 </script> 485 <!-- www.Cludo.com Search body init script start --> 486 487 <!-- Dette script hører til Tilgængeligheds modulet. Adgang med tegn --> 488 <script type="text/plain" data-consent="AdgangMedTegn"> 489 (function () { 490 var lwfile = 'cdhsign.dk/cdh_player.js'; 491 var lw = document.createElement('script'); 492 lw.type = 'text/javascript'; 493 lw.async = true; 494 lw.src = ('https:' == document.location.protocol ? 'https://' : 495 'http://') + lwfile; 496 var s = document.getElementsByTagName('script')[0]; 497 s.parentNode.insertBefore(lw, s); 498 }) 499 (); 500 501 window.getCookie = function(name) { 502 var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); 503 if (match) return match[2]; 504 } 505 window.setCookie = function(name,value,days,path) { 506 var expires = ""; 507 if (days) { 508 var date = new Date(); 509 date.setTime(date.getTime() + (days*24*60*60*1000)); 510 expires = "; expires=" + date.toUTCString(); 511 } 512 document.cookie = name + "=" + (value || "") + expires + "; path=" + path; 513 } 514 jQuery('#Switchbutton').prop('checked', window.getCookie("SignIsActive") === 'true'); 515 function toggleAccessWithSign() { 516 SignLanguageMark(null,'rgba(255,255,0,0.5)'); 517 } 518 519 window.onbeforeunload = function() { 520 var isActive = window.getCookie("SignIsActive") === 'true'; 521 document.cookie = "SignIsActive=" + isActive + "; expires=Thu, 01 Jan 1970 00:00:00 UTC"; 522 document.cookie = "SignIsActive=" + isActive + "; path=/"; 523 console.log('unload'); 524 } 525 </script> 526 527 <script type="text/javascript"> 528 /*<![CDATA[*/ 529 (function() { 530 var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true; 531 sz.src = '//siteimproveanalytics.com/js/siteanalyze_239454.js'; 532 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s); 533 })(); 534 /*]]>*/ 535 </script> 536 537 <script type="text/javascript" data-kommune="gladsaxe" src="https://prokomresources.prokomcdn.no/client-grunt/bot/kari.js"></script> 538 </body> 539 </html>