{"version":3,"sources":["novicell.js","novicell.embed.js","novicell.cookieinfo.js","hornstrup.stickynav.js","hornstrup.countTo.js","hornstrup.googleMaps.js","novicell.debounce.js","novicell.visible.js","novicell.lazyloadResponsive.js","hornstrup.mobilenav.js","hornstrup.backgroundVideo.js","hornstrup.imageOverlayBlendModeNotSupported.js","hornstrup.share.js","hornstrup.breadcrumb.js","hornstrup.contourCustom.js","hornstrup.search-overlay.js","hornstrup.list4-list3.js","novicell.map.js","master.js"],"names":["cl","d","console","log","toggleVideo","videoItem","sectionTag","$","iframe","getElementsByTagName","contentWindow","func","postMessage","getCookie","cname","name","ca","document","cookie","split","i","length","c","charAt","substring","indexOf","setCookie","cvalue","exdays","Date","setTime","getTime","expires","toUTCString","path","hasScrolled","st","this","scrollTop","Math","abs","lastScrollTop","delta","navbarHeight","hasClass","removeClass","addClass","window","height","offset","top","isScrolledIntoView","elem","$elem","$window","docViewTop","docViewBottom","elemTop","elemBottom","mapsInitialize","hornstrup","googleMaps","initAfterScriptLoad","error","info","debug","warn","trace","dir","dirxml","group","groupEnd","time","timeEnd","assert","profile","novicell","projectName","prepend","deBouncer","cf","of","interval","debounce","threshold","execAsap","timeout","delayed","apply","obj","args","arguments","clearTimeout","setTimeout","jQuery","fn","bind","trigger","visible","partial","$t","$w","viewTop","viewBottom","_top","_bottom","compareTop","compareBottom","responsiveLazyloadImage","self","lastRefreshWidth","refreshWidth","image","callback","each","parent","data","first","figure","remove","contructImage","innerWidth","bgParent","onResize","imageType","width","heightRatio","focalPoint","mode","filter","quality","$image","Image","exactParent","format","overlay","newImageSrc","nextQuerySign","attr","src","find","url","embed","loadEmbeds","has","click","lazyEmbed","closest","addAutoplay","ratio","$embed","updateQueryStringParameter","backofficeEmbeds","uri","key","value","re","RegExp","separator","match","replace","cookieInfo","$body","init","$cookieInfo","$cookieClose","$cookieOpen","showCookie","hideCookie","didScroll","scroll","event","setInterval","mobilenav","on","e","showHideMenu","preventDefault","gatherNavigation","nav","navInner","htmlSearch","clone","id","class","ul","htmlNavMain","htmlFooterAddress","htmlFooterSocial","footer","append","children","htmlSitelinks","wrap","before","toggleClass","text","countTo","defaultOptions","from","to","speed","refreshInterval","decimals","onUpdate","onComplete","data-maxNumber","checkIfCounterShouldRun","start","numberMax","options","element","extend","loops","ceil","increment","updateTimer","loopCount","_this","html","toFixed","call","clearInterval","backgroundVideo","checkVideo","buildVideo","video","videoType","imageOverlayBlendModeNotSupported","undefined","getComputedStyle","body","mixBlendMode","resize","adjustMapHeight","loadScript","script","createElement","type","appendChild","google","buildMap","addressHolderHeight","outerHeight","gMap","gMapHeight","map_canvas","getElementById","latLng","maps","LatLng","map_options","center","zoom","mapTypeId","MapTypeId","ROADMAP","scrollwheel","navigationControl","mapTypeControl","scaleControl","draggable","map","Map","addDomListener","setCenter","Marker","position","setMap","share","arrayUrlPrefixes","facebook","linkedin","twitter","email","socialMediaType","getSocialMediaType","link","buildLink","location","href","openShareWindow","socialType","encodedUrl","encodeURIComponent","linkPrefix","open","breadcrumb","objSectionClasses","breadcrumbNormal","breadcrumbPositionAbsoluteTop","breadcrumbPositionAbsoluteTop50Percent","breadcrumbNone","breadcrumbBelowFirstElement","placeIt","contentContainer","firstSectionFirstClass","getClassNameOfFirstSection","typeOfFirstSection","getTypeOfFirstSection","after","result","firstSectionInContent","contourCustom","specificClass","elementType","get","tagName","toLowerCase","inputType","val","inputName","thisContour","firstErrorContourField","navigationHeight","animate","className","addOrRemove","searchOverlay","prop","list4List3","last","prev","initialize","mapElement","lat","parseFloat","getAttribute","lng","zoomLevel","parseInt","coordinates","mapStyles","featureType","stylers","color","visibility","weight","lightness","saturation","gamma","hue","mapOptions","disableDefaultUI","styles","icon","scaledSize","Size","marker","title","contentString","infowindow","InfoWindow","content","addListener","getCenter","initMaster","responsiveBackgroundImage","forEach","querySelectorAll","el","hasAttribute","bgimg","w","offsetWidth","wRnd","round","setAttribute","svg4everybody","smartresize","smartscroll"],"mappings":"AAeA,QAAAA,IAAAC,GACA,MAAAC,S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UAAAwK,kCAAAjE,OACAvG,UAAAC,WAAAsG,OACAvG,UAAAiN,MAAA1G,OACAvG,UAAAmO,WAAAO,UACA1O,UAAAmP,cAAA5I,OACAvG,UAAAkQ,cAAA3J,OACAvG,UAAAoQ,WAAA7J,OASA6M,kBAeAzW,EAAAwC,QAAAkU,YAAA,SAAAlM,GACAnG,SAAAgC,wBAAAe,WACA/C,SAAAkE,MAAAnB,WACA/D,UAAAyI,QAAAU,0BACAnJ,UAAAmK,gBAAAC,eAIAzN,EAAAwC,QAAAmU,YAAA,SAAAnM,GAEAnG,SAAAgC,wBAAAI,QACAqP,IACA9V,EAAA,sBAAAc,QACAuD,SAAAkE,MAAAC,aAEAnF,UAAAyI,QAAAU","file":"master.min.js","sourcesContent":["/*!\r\n *\r\n * Novicell JavaScript Library v0.5\r\n * http://www.novicell.dk\r\n *\r\n * Copyright Novicell\r\n *\r\n*/\r\n\r\n// Prevent console errors in IE\r\nif (typeof (console) === 'undefined') {\r\n var console = {}\r\n console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = function () { };\r\n}\r\n// Shorthand for console.log\r\nfunction cl(d) {\r\n return console.log(d);\r\n}\r\n\r\n// Init the novicell js lib\r\n\r\nvar novicell = novicell || {};\r\n\r\n$(function () {\r\n if (typeof projectName !== 'undefined') {\r\n $('body').prepend('
Hi there. Remember to rename the \"projectName\" object in master.js file :)
');\r\n }\r\n});","'use strict';\r\n\r\n/**\r\n* @desc new load embedded media script, it lazyloads embedded media\r\n* html example\r\n* js init example: novicell.embed.loadEmbeds();\r\n* js scroll example:\r\n* if ($('.embed-media-item').length > 0) {\r\n* novicell.embed.loadEmbeds();\r\n* }\r\n* @author Tommy Pedersen - TPE\r\n* @return generates preplay image\r\n* @requires jquery@1.11.3\r\n* @note: Just beautiful!\r\n*/\r\n\r\nvar novicell = novicell || {};\r\n\r\nnovicell.embed = novicell.embed || function () {\r\n\tvar lastRefreshWidth = 0;\r\n\tvar refreshWidth = 50;\r\n\r\n\tfunction loadEmbeds(callback) {\r\n\t\t$(\"section.embed-media.embed-media--not-loaded\").each(function () {\r\n\t\t\tif ($(this).visible(true) || $(this).data(\"load\") === \"always\") {\r\n\t\t\t\t$(this).removeClass('embed-media--not-loaded').addClass('embed-media--loaded');\r\n\t\t\t\tif ($(this).has(\".embed-media__still\").length) {\r\n\t\t\t\t\t$(this).find(\".embed-media__still\").click(function () {\r\n\t\t\t\t\t\tlazyEmbed($(this).parent().find(\".embed-media__item\"),true);\r\n\t\t\t\t\t\t$('body').addClass('body-video-overlay-open')\r\n\t\t\t\t\t\tif (typeof callback == 'function') {\r\n\t\t\t\t\t\t\tcallback();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\t$(this).find(\".embed-media__close\").click(function () {\r\n\t\t\t\t\t\t$(this).closest('.embed-media__item').attr(\"style\", \"display: none!important\");\r\n\t\t\t\t\t\t$('body').removeClass('body-video-overlay-open')\r\n\t\t\t\t\t\tvar videoItem = $(this).closest('.embed-media__item');\r\n\t\t\t\t\t\t//toggleVideo(videoItem)\r\n\t\t\t\t\t\t$(this).closest('.embed-media__item').find('iframe').attr('src','');\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlazyEmbed($(this).find(\".embed-media__item\"),false);\r\n\t\t\t\t\tif (typeof callback == 'function') {\r\n\t\t\t\t\t\tcallback();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tfunction onResize(callback) {\r\n\t\tif (window.innerWidth > lastRefreshWidth + refreshWidth || window.innerWidth < lastRefreshWidth - refreshWidth) {\r\n\t\t\t$('section.embed-media').each(function () {\r\n\t\t\t\t//lazyEmbed($(this).find(\".embed-media__item\"),false);\r\n\t\t\t\tif (typeof callback == 'function') {\r\n\t\t\t\t\tcallback();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tlastRefreshWidth = window.innerWidth;\r\n\t\t}\r\n\t}\r\n\r\n\tfunction lazyEmbed(figure,addAutoplay) {\r\n\t\tfigure.attr(\"style\", \"display: block!important\");\r\n\t\tfigure.addClass('embed-media__item--loaded');\r\n\t\tvar $embed = figure.find(\".embed\");\r\n\t\tvar ratio, src, width;\r\n\t\twidth = figure.width() !== 0 ? figure.width() : $(figure).parent().width();\r\n\t\tratio = $embed.data(\"ratio\");\r\n\t\tsrc = $embed.data(\"src\");\r\n\t\t$embed.attr(\"src\", src);\r\n\t\t$embed.attr(\"width\", width);\r\n\t\t$embed.attr(\"height\", width * ratio);\r\n\r\n\t\tif(addAutoplay===true){$embed.attr(\"src\", updateQueryStringParameter($embed.data(\"src\"), \"autoplay\", \"true\"));}\r\n\t}\r\n\r\n\tfunction backofficeEmbeds(callback) {\r\n\t\t$(\"section.embed-media\").each(function () {\r\n\t\t\t$(this).find(\".embed-media__still\").remove();\r\n\t\t\tlazyEmbed($(this).find(\".embed-media__item\"),false);\r\n\t\t\t$(this).find(\".embed\").attr(\"src\", updateQueryStringParameter($(this).find(\".embed\").data(\"src\"), \"autoplay\", \"false\"));\r\n\t\t\tif (typeof callback == 'function') {\r\n\t\t\t\tcallback();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tfunction updateQueryStringParameter(uri, key, value) {\r\n\t\tvar re = new RegExp(\"([?&])\" + key + \"=.*?(&|$)\", \"i\");\r\n\t\tvar separator = uri.indexOf('?') !== -1 ? \"&\" : \"?\";\r\n\t\tif (uri.match(re)) {\r\n\t\t\treturn uri.replace(re, '$1' + key + \"=\" + value + '$2');\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn uri + separator + key + \"=\" + value;\r\n\t\t}\r\n\t}\r\n\r\n\t// public functions:\r\n\treturn {\r\n\t\tloadEmbeds: loadEmbeds,\r\n\t\tbackofficeEmbeds: backofficeEmbeds,\r\n\t\tonResize: onResize\r\n\t};\r\n}();\r\n\r\n\r\n\r\n\r\n\r\nfunction toggleVideo(videoItem) {\r\n var sectionTag = $(videoItem);\r\n var iframe = sectionTag.getElementsByTagName(\"iframe\")[0].contentWindow;\r\n //sectionTag.style.display = state == 'hide' ? 'none' : '';\r\n func = 'pauseVideo';\r\n iframe.postMessage('{\"event\":\"command\",\"func\":\"' + func + '\",\"args\":\"\"}', '*');\r\n}","/**\r\n * @desc Cookie info dialog plugin\r\n * examples novicell.cookieInfo.init();\r\n * @author Danni Larsen - DLA\r\n * @requires jquery\r\n*/\r\n\r\nvar novicell = novicell || {};\r\n\r\nnovicell.cookieInfo = new function(){\r\n var self = this;\r\n var $body = $('body');\r\n\r\n this.init = function() {\r\n var $cookieInfo = $('#cookie-info');\r\n var $cookieClose = $('#cookie-info-close');\r\n var $cookieOpen = $('#cookie-info-open');\r\n\r\n if ($cookieInfo.length) {\r\n // If we have displayed it once, set cookie for one year\r\n if (getCookie(\"cookieAccept\") == \"displayed\") {\r\n setCookie(\"cookieAccept\", \"accepted\", 365);\r\n }\r\n\r\n // Check if the cookie info has been displayed, if not set session cookie\r\n if (getCookie(\"cookieAccept\") == \"\") {\r\n setCookie(\"cookieAccept\", \"displayed\");\r\n\r\n setTimeout(function() {\r\n $body.addClass('cookie-info-show');\r\n }, 1000);\r\n }\r\n\r\n // Button eventlisteners\r\n $cookieOpen.click(function() {\r\n self.showCookie();\r\n });\r\n\r\n $cookieClose.click(function() {\r\n self.hideCookie();\r\n setCookie(\"cookieAccept\", \"accepted\", 365);\r\n });\r\n }\r\n\r\n };\r\n\r\n // Functions for opening an closing the cookie-info\r\n this.showCookie = function(){\r\n $body.addClass('cookie-info-show');\r\n };\r\n this.hideCookie = function(){\r\n $body.removeClass('cookie-info-show');\r\n };\r\n\r\n};\r\n\r\n/* Cookie helper functions\r\n*******************************/\r\n\r\n// Get cookie\r\nfunction getCookie(cname) {\r\n var name = cname + \"=\";\r\n var ca = document.cookie.split(';');\r\n for(var i=0; i lastScrollTop && st > navbarHeight){\r\n // Scroll Down\r\n if($('#header').hasClass('nav-moving-up')){ $('#header').removeClass('nav-moving-up');}\r\n if(!$('#header').hasClass('nav-moving')){ $('#header').addClass('nav-moving');}\r\n if(!$('#header').hasClass('nav-moving-down')){ $('#header').addClass('nav-moving-down');}\r\n if(!$('body').hasClass('body-scroll')){ $('body').addClass('body-scroll');}\r\n } else {\r\n // Scroll Up\r\n if(st + $(window).height() < $(document).height()) {\r\n if($('#header').hasClass('nav-moving-down')){ $('#header').removeClass('nav-moving-down');}\r\n if(!$('#header').hasClass('nav-moving')){ $('#header').addClass('nav-moving');}\r\n if(!$('#header').hasClass('nav-moving-up')){ $('#header').addClass('nav-moving-up');}\r\n }\r\n if(!$('body').hasClass('body-scroll')){ $('body').addClass('body-scroll');}\r\n }\r\n if($('#header').offset().top == 0){\r\n if($('body').hasClass('body-scroll')){ $('body').removeClass('body-scroll');}\r\n if($('#header').hasClass('nav-moving')){ $('#header').removeClass('nav-moving');}\r\n if($('#header').hasClass('nav-moving-up')){ $('#header').removeClass('nav-moving-up');}\r\n if($('#header').hasClass('nav-moving-down')){ $('#header').removeClass('nav-moving-down');}\r\n \t}\r\n\r\n lastScrollTop = st;\r\n}\r\n\r\n\r\n\r\n\r\n","var hornstrup = hornstrup || {};\r\n\r\nhornstrup.countTo = hornstrup.countTo || function () {\r\n var self = this;\r\n var defaultOptions = {\r\n from: 0, // the number the element should start at\r\n to: 100, // the number the element should end at\r\n speed: 1000, // how long it should take to count between the target numbers\r\n refreshInterval: 100, // how often the element should be updated\r\n decimals: 0, // the number of decimal places to show\r\n onUpdate: null, // callback method for every time the element is updated,\r\n onComplete: null // callback method for when the element finishes updating\r\n }\r\n this.init = function (callback) {\r\n $('#payoff .payoff__item .payoff__number').each(function(){\r\n $(this).attr({'data-maxNumber': $(this).text()*1}).text('0');\r\n });\r\n }\r\n this.checkIfCounterShouldRun = function (callback) {\r\n if(! $('#payoff.has-counted').length){\r\n if(isScrolledIntoView($('#payoff'))){self.start();}\r\n }\r\n }\r\n this.start = function (callback) {\r\n $('#payoff .payoff__item .payoff__number').each(function(){\r\n var numberMax=$(this).attr('data-maxNumber')*1;\r\n self.countTo({\r\n from: 0,\r\n to: numberMax,\r\n speed:1000,\r\n refreshInterval: 50,\r\n onComplete: function(value) {\r\n //console.debug(this);\r\n }\r\n },$(this));\r\n });\r\n $('#payoff').addClass('has-counted');\r\n }\r\n this.countTo = function (options, element) {\r\n options = $.extend({},defaultOptions, options || {});\r\n\r\n // how many times to update the value, and how much to increment the value on each update\r\n var loops = Math.ceil(options.speed / options.refreshInterval),\r\n increment = (options.to - options.from) / loops;\r\n\r\n return $(element).each(function() {\r\n var _this = element,\r\n loopCount = 0,\r\n value = options.from,\r\n interval = setInterval(updateTimer, options.refreshInterval);\r\n\r\n function updateTimer() {\r\n value += increment;\r\n loopCount++;\r\n $(_this).html(value.toFixed(options.decimals));\r\n\r\n if (typeof(options.onUpdate) == 'function') {\r\n options.onUpdate.call(_this, value);\r\n }\r\n\r\n if (loopCount >= loops) {\r\n clearInterval(interval);\r\n value = options.to;\r\n\r\n if (typeof(options.onComplete) == 'function') {\r\n options.onComplete.call(_this, value);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n // public functions:\r\n return {\r\n checkIfCounterShouldRun: checkIfCounterShouldRun,\r\n init: init\r\n };\r\n}();\r\n\r\n\r\n\r\nfunction isScrolledIntoView(elem)\r\n{\r\n var $elem = $(elem);\r\n var $window = $(window);\r\n\r\n var docViewTop = $window.scrollTop();\r\n var docViewBottom = docViewTop + $window.height();\r\n\r\n var elemTop = $elem.offset().top;\r\n var elemBottom = elemTop + $elem.height();\r\n\r\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\r\n}","$(window).resize(function () {\r\n hornstrup.googleMaps.adjustMapHeight();\r\n})\r\n.bind('orientationchange', function () {\r\n $(window).resize();\r\n});\r\n\r\nfunction mapsInitialize(){\r\n\thornstrup.googleMaps.initAfterScriptLoad();\r\n}\r\n\r\n\r\n\r\n\r\n\r\nvar hornstrup = hornstrup || {};\r\nhornstrup.googleMaps = hornstrup.googleMaps || function () {\r\n\tvar self = this;\r\n\tthis.init = function () {\r\n\t\tif($('.focusarea__map').length){\r\n\t\t\tself.loadScript();\r\n\t\t}\r\n\t}\r\n\r\n\tthis.loadScript = function () {\r\n\t var script = document.createElement('script');\r\n\t script.type = 'text/javascript';\r\n\t script.src = 'https://maps.googleapis.com/maps/api/js?v=3&key=AIzaSyDTxNol6MDFhi_jRc87sIIGzrdhKuRiDKo&callback=mapsInitialize'// + '&signed_in=true';\r\n\t document.body.appendChild(script);\r\n\t}\r\n\r\n\tthis.initAfterScriptLoad = function () {\r\n\t\tif (typeof (google) != \"undefined\" && typeof (google.maps) != \"undefined\") {\r\n\t\t\tself.buildMap();\r\n\t\t}\r\n\t}\r\n\r\n\tthis.adjustMapHeight = function () {\r\n\t\tvar addressHolderHeight = $('#container-map .address-holder').outerHeight(true);\r\n\t\tvar gMap = $('#google-map');\r\n\t\tvar gMapHeight = $(gMap).outerHeight(true);\r\n\t\tif(addressHolderHeight != gMapHeight){\r\n\t\t\tgMap.height(addressHolderHeight);\r\n\t\t}\r\n\t}\r\n\r\n\tthis.buildMap = function () {\r\n\t\t// Check if the google maps is loaded\r\n\t\tif (typeof (google) != \"undefined\" && typeof (google.maps) != \"undefined\") {\r\n\t\t\t// Init variables\r\n\t\t\tvar map_canvas = document.getElementById('google-map');\r\n\t\t\tvar latLng = new google.maps.LatLng(55.7433752,9.5580489);\r\n\r\n\t\t\t// Map options\r\n\t\t\tvar map_options = {\r\n\t\t\t\tcenter: latLng,\r\n\t\t\t\tzoom: 13,\r\n\t\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP,\r\n\t\t\t\tscrollwheel: false,\r\n\t\t\t\tnavigationControl: false,\r\n\t\t\t\tmapTypeControl: false,\r\n\t\t\t\tscaleControl: true,\r\n\t\t\t\tdraggable: false\r\n\t\t\t};\r\n\r\n\t\t\t// Init map object\r\n\t\t\tvar map = new google.maps.Map(map_canvas, map_options);\r\n\r\n\t\t\t// Resize event\r\n\t\t\tgoogle.maps.event.addDomListener(window, 'resize', function () {\r\n\t\t\t\tmap.setCenter(latLng);\r\n\t\t\t});\r\n\r\n\t\t\t//make markers\r\n\t\t\twindow['marker1'] = new google.maps.Marker({\r\n\t\t\t\tposition: latLng\r\n\t\t\t\t//icon:'/dist/images/realMarker.png'\r\n\t\t\t});\r\n\t\t\twindow['marker1'].setMap(map);\r\n\r\n\t\t}\r\n\t}\r\n\r\n\t// Make functions public\r\n\treturn {\r\n\t\tinit: init, initAfterScriptLoad:initAfterScriptLoad, adjustMapHeight:adjustMapHeight\r\n\t};\r\n}();\r\n\r\n\r\n\r\n","/**\r\n * @desc Debouncing wrapper script\r\n * Credit: http://www.hnldesign.nl/work/code/debouncing-events-with-jquery/\r\n * examples:\r\n * $(window).smartresize(function(e){\r\n * // do stuff as soon as the user stops resizing his browser for longer than 100ms\r\n * })\r\n *\r\n * $(window).smartscroll(function(e){\r\n * // do stuff as soon as the user stops scrolling for longer than 100ms\r\n * })\r\n *\r\n * $(window).smartmousemove(function(e){\r\n * // do stuff as soon as the user stops moving his mouse for longer than 100ms\r\n * })\r\n * @author Danni Larsen - DLA\r\n * @param e - the event\r\n * @requires jquery\r\n */\r\n\r\n var deBouncer = function ($, cf, of, interval) {\r\n // deBouncer by hnldesign.nl\r\n // based on code by Paul Irish and the original debouncing function from John Hann\r\n // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/\r\n var debounce = function (func, threshold, execAsap) {\r\n \tvar timeout;\r\n \treturn function debounced() {\r\n \t\tvar obj = this, args = arguments;\r\n \t\tfunction delayed() {\r\n \t\t\tif (!execAsap)\r\n \t\t\t\tfunc.apply(obj, args);\r\n \t\t\ttimeout = null;\r\n \t\t}\r\n \t\tif (timeout)\r\n \t\t\tclearTimeout(timeout);\r\n \t\telse if (execAsap)\r\n \t\t\tfunc.apply(obj, args);\r\n \t\ttimeout = setTimeout(delayed, threshold || interval);\r\n \t};\r\n };\r\n jQuery.fn[cf] = function (fn) { return fn ? this.bind(of, debounce(fn)) : this.trigger(cf); };\r\n };\r\n\r\n //register debouncing functions\r\n //deBouncer(jQuery,'new eventname', 'original eventname', timeout);\r\n //Note: keep the jQuery namespace in mind, don't overwrite existing functions!\r\n deBouncer(jQuery, 'smartresize', 'resize', 150);\r\n deBouncer(jQuery, 'smartscroll', 'scroll', 250);\r\n deBouncer(jQuery,'smartmousemove', 'mousemove', 250);","(function ($) {\r\n /**\r\n * Copyright 2012, Digital Fusion\r\n * Licensed under the MIT license.\r\n * http://teamdf.com/jquery-plugins/license/\r\n *\r\n * @author Sam Sehnert\r\n * @desc A small plugin that checks whether elements are within\r\n * the user visible viewport of a web browser.\r\n * only accounts for vertical position, not horizontal.\r\n */\r\n\r\n $.fn.visible = function (partial) {\r\n var $t = $(this),\r\n $w = $(window),\r\n viewTop = $w.scrollTop(),\r\n viewBottom = viewTop + $w.height(),\r\n _top = $t.offset().top,\r\n _bottom = _top + $t.height(),\r\n compareTop = partial === true ? _bottom : _top,\r\n compareBottom = partial === true ? _top : _bottom;\r\n\r\n return ((compareBottom <= viewBottom) && (compareTop >= viewTop));\r\n };\r\n\r\n})(jQuery);","/**\r\n * @desc new responsive lazyload image script, servering the image depending on parent-wrapper width and aspect-ratio parameter\r\n * html example \"Random\r\n * js init example: novicell.responsiveLazyloadImage.image();\r\n * js resize example: novicell.responsiveLazyloadImage.onResize();\r\n * js scroll example:\r\n * if($('.responsiveLazyload').length)\r\n * novicell.responsiveLazyloadImage.image();\r\n * @author Tommy Pedersen - TPE & Danni Larsen - DLA\r\n * @return generates img and removes noscript image\r\n * @requires jquery@1.11.3\r\n * @note: Just beautiful!\r\n*/\r\n\r\nvar novicell = novicell || {};\r\n\r\nnovicell.responsiveLazyloadImage = novicell.responsiveLazyloadImage || function () {\r\n var self = this;\r\n var lastRefreshWidth = 0;\r\n var refreshWidth = 50;\r\n\r\n this.image = function (callback) {\r\n $('.responsiveLazyload').each(function () {\r\n if ($(this).parent().visible(true) || $(this).data(\"load\") === \"always\") {\r\n if ($(this).first()) {\r\n var figure = $(this).parent();\r\n $(this).remove();\r\n self.contructImage(figure);\r\n lastRefreshWidth = window.innerWidth;\r\n figure.addClass('lazyResizeReload');\r\n if (typeof callback == 'function') {\r\n callback();\r\n }\r\n }\r\n }\r\n });\r\n $('.responsiveBgLazyload').each(function () {\r\n if ($(this).parent().visible(true) || $(this).data(\"load\") === \"always\") {\r\n if ($(this).first()) {\r\n var bgParent = $(this).parent();\r\n $(this).remove();\r\n self.contructImage(bgParent,'background');\r\n lastRefreshWidth = window.innerWidth;\r\n bgParent.addClass('lazyBgResizeReload');\r\n if (typeof callback == 'function') {\r\n callback();\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n this.onResize = function (callback) {\r\n if (window.innerWidth > lastRefreshWidth + refreshWidth || window.innerWidth < lastRefreshWidth - refreshWidth) {\r\n $('.lazyResizeReload').each(function () {\r\n self.contructImage($(this),'standardimage');\r\n if (typeof callback == 'function') {\r\n callback();\r\n }\r\n });\r\n $('.lazyBgResizeReload').each(function () {\r\n self.contructImage($(this),'background');\r\n if (typeof callback == 'function') {\r\n callback();\r\n }\r\n });\r\n lastRefreshWidth = window.innerWidth;\r\n }\r\n }\r\n\r\n this.contructImage = function (figure,imageType) {\r\n var $image = new Image();\r\n\r\n //data variables and images settings\r\n var width, heightRatio, focalPoint, mode, filter, quality;\r\n width = figure.width() != 0 ? figure.width() : $(figure).parent().width();\r\n height = figure.height() != 0 ? figure.height() : $(figure).parent().height();\r\n heightRatio = figure.data('height-ratio');\r\n focalPoint = figure.data('focalpoint');\r\n mode = figure.data('mode');\r\n filter = figure.data('filter');\r\n quality = figure.data('quality') || 80;\r\n exactParent = figure.data('exactparent') ||false;\r\n format = figure.data('format') ||false;\r\n if(imageType == \"background\"){overlay = figure.data('overlay');}\r\n\r\n var newImageSrc = figure.data('src');\r\n newImageSrc += mode ? self.nextQuerySign(newImageSrc) + \"width=\" + width : \"\";\r\n\r\n if(exactParent){\r\n newImageSrc += mode ? self.nextQuerySign(newImageSrc) + \"height=\" + height : \"\";\r\n }\r\n\r\n newImageSrc += heightRatio ? self.nextQuerySign(newImageSrc) + \"height=\" + heightRatio * width : \"\";\r\n newImageSrc += focalPoint ? self.nextQuerySign(newImageSrc) + \"center=\" + focalPoint : \"\";\r\n newImageSrc += mode ? self.nextQuerySign(newImageSrc) + \"mode=\" + mode : \"\";\r\n newImageSrc += filter ? self.nextQuerySign(newImageSrc) + \"filter=\" + filter : \"\";\r\n newImageSrc += format ? self.nextQuerySign(newImageSrc) + \"format=\" + format : \"\";\r\n newImageSrc += self.nextQuerySign(newImageSrc) + \"quality=\" + quality;\r\n\r\n if(imageType == \"background\")\r\n {\r\n $(figure).attr('style',\"background-image: url('\"+newImageSrc+\"')\")\r\n }\r\n else\r\n {\r\n $image.src = newImageSrc;\r\n figure.find('img').remove();\r\n figure.prepend($image);\r\n $image = figure.find('img');\r\n\r\n $image.attr('class', figure.data('class'));\r\n $image.attr('alt', figure.data('alt'));\r\n $image.attr('title', figure.data('title'));\r\n $image.attr('property', 'contentUrl');\r\n }\r\n }\r\n\r\n this.nextQuerySign = function (url) {\r\n return url.indexOf(\"?\") > -1 ? \"&\" : \"?\";\r\n };\r\n\r\n // public functions:\r\n return {\r\n image: image,\r\n onResize: onResize\r\n };\r\n}();\r\n","//nav-mobile-trigger\r\n\r\nvar hornstrup = hornstrup || {};\r\n\r\nhornstrup.mobilenav = hornstrup.mobilenav || function () {\r\n var self = this;\r\n var lastRefreshWidth = 0;\r\n var refreshWidth = 50;\r\n\r\n this.init = function (callback) {\r\n $('#nav-mobile-trigger').on('click',function (e) {\r\n if(!$(this).hasClass('has-been-triggered'))\r\n {\r\n \te.preventDefault();\r\n \tself.gatherNavigation();\r\n }\r\n else{\r\n \tself.showHideMenu();\r\n }\r\n });\r\n $('body').on('click','#nav-mobile-bg',function(){\r\n $('#nav-mobile-trigger').trigger('click');\r\n })\r\n }\r\n\r\n this.gatherNavigation = function(){\r\n \tvar nav=$('
');\r\n \tvar navInner=$('
');\r\n \tvar htmlSearch = $('#search-form').clone().attr({'id':'mobile-search','class':'form-search-mobile'});\r\n $(htmlSearch).find('*').each(function(){\r\n\r\n if($(this).hasClass('form-search__header')){$(this).removeClass('form-search__header').addClass('form-search-mobile__header');}\r\n else if($(this).hasClass('form-search__input')){$(this).removeClass('form-search__input').addClass('form-search-mobile__input');}\r\n else if($(this).hasClass('form-search__button')){$(this).removeClass('form-search__button').addClass('form-search-mobile__button');}\r\n else if($(this).hasClass('form-search__icon')){$(this).removeClass('form-search__icon').addClass('form-search-mobile__icon');}\r\n else if($(this).hasClass('form-search__input-holder')){$(this).removeClass('form-search__input-holder').addClass('form-search-mobile__input-holder');}\r\n\r\n });\r\n \tvar ul=$('');\r\n\r\n \tvar htmlNavMain = $('#nav-main').clone();\r\n var htmlFooterAddress = $('#footer .footer-address').clone();\r\n var htmlFooterSocial = $('#footer .footer-social').clone();\r\n var footer=$('
');\r\n\r\n $(footer).append($(htmlFooterAddress),$(htmlFooterSocial));\r\n\r\n \t$(htmlNavMain).children().each(function(){\r\n \t\t$(this).removeClass('nav-main__item').addClass('nav-mobile__item');\r\n \t\tif($(this).hasClass('nav-main__item--has-child')){\r\n \t\t\t$(this).removeClass('nav-main__item--has-child')//.addClass('nav-mobile__child-trigger');\r\n \t\t}\r\n \t\t$(this).find('*').each(function(){\r\n \t\t\tif($(this).hasClass('nav-main__item-content')){$(this).removeClass('nav-main__item-content').addClass('nav-mobile__item-content');}\r\n\r\n else if($(this).hasClass('nav-main__link')){$(this).removeClass('nav-main__link').addClass('nav-mobile__link');}\r\n \t\t\telse if($(this).hasClass('nav-main__title')){$(this).removeClass('nav-main__title').addClass('nav-mobile__title');}\r\n \t\t\telse if($(this).hasClass('nav-main__child-trigger')){$(this).removeClass('nav-main__child-trigger').addClass('nav-mobile__child-trigger');}\r\n \t\t\telse if($(this).hasClass('nav-main__svg')){$(this).removeClass('nav-main__svg').addClass('nav-mobile__svg');}\r\n \t\t\telse if($(this).hasClass('nav-main__svg--down')){$(this).removeClass('nav-main__svg--down').addClass('nav-mobile__svg--down');}\r\n \t\t\telse if($(this).hasClass('nav-main__svg--up')){$(this).removeClass('nav-main__svg--up').addClass('nav-mobile__svg--up');}\r\n \t\t\telse if($(this).hasClass('nav-main-level2')){$(this).removeClass('nav-main-level2').addClass('nav-mobile-level2');}\r\n else if($(this).hasClass('nav-main-level2__item')){$(this).removeClass('nav-main-level2__item').addClass('nav-mobile-level2__item');}\r\n else if($(this).hasClass('nav-main-level2__link')){$(this).removeClass('nav-main-level2__link').addClass('nav-mobile-level2__link');}\r\n else if($(this).hasClass('nav-main-level2__title')){$(this).removeClass('nav-main-level2__title').addClass('nav-mobile-level2__title');}\r\n\r\n if($(this).hasClass('nav-main__link--active')){$(this).removeClass('nav-main__link--active').addClass('nav-mobile__link--active');}\r\n if($(this).hasClass('nav-main__link--selected')){$(this).removeClass('nav-main__link--selected').addClass('nav-mobile__link--selected');}\r\n if($(this).hasClass('nav-main-level2__link--selected')){$(this).removeClass('nav-main-level2__link--selected').addClass('nav-mobile-level2__link--selected');}\r\n\r\n \t\t\t//else if($(this).hasClass('xxx')){$(this).removeClass('xxx').addClass('xxxx');}\r\n\r\n \t\t});\r\n \t});\r\n \tvar htmlSitelinks = $('#sitelinks').children().clone().each(function(){\r\n $(this).removeClass('sitelinks__item').addClass('nav-mobile__item');\r\n $(this).find('a').removeClass('sitelinks__link').addClass('nav-mobile__link').wrap('')\r\n });\r\n\r\n\r\n\r\n \t$(ul).append($(htmlNavMain).children(),$(htmlSitelinks));\r\n \t$(navInner).append($(htmlSearch),$(ul),$(footer));\r\n \t$(nav).append($(navInner));\r\n \t$('#header').before(nav);\r\n $('#header').before('
');\r\n \t$('#nav-mobile-trigger').addClass('has-been-triggered');\r\n \tself.showHideMenu();\r\n }\r\n this.showHideMenu = function(){\r\n $('body').toggleClass('offcanvas-active');\r\n if( $('body').hasClass('offcanvas-active')){\r\n if($('.nav-mobile-level2__link--selected').length){\r\n $('.nav-mobile-level2__link--selected').first().closest('.nav-mobile__item').children('.nav-mobile__item-content').first().children('.nav-mobile__child-trigger').first().trigger('click');\r\n }\r\n $('#nav-mobile-trigger').text('Luk menu');\r\n }else{\r\n $('#nav-mobile-trigger').text('Menu');\r\n }\r\n }\r\n\r\n\r\n // public functions:\r\n return {\r\n init: init\r\n };\r\n}();","//nav-mobile-trigger\r\n\r\nvar hornstrup = hornstrup || {};\r\n\r\nhornstrup.backgroundVideo = hornstrup.backgroundVideo || function () {\r\n var self = this;\r\n\r\n this.checkVideo = function (callback) {\r\n //hvis der er en video...\r\n if($('#hero .hero__bg-video:visible .data-video').length)\r\n {\r\n\r\n if(! $('#jumbotron-video').length){\r\n self.buildVideo();\r\n }\r\n\r\n\r\n }\r\n }\r\n\r\n\r\n this.buildVideo = function (callback) {\r\n var video = $('');\r\n $('#hero .hero__bg-video .data-video').each(function(){\r\n var videoType=$('');\r\n $(video).append(videoType);\r\n });\r\n $('#hero .hero__bg-video').append($(video));\r\n }\r\n\r\n\r\n\r\n\r\n // public functions:\r\n return {\r\n checkVideo: checkVideo\r\n };\r\n}();","//nav-mobile-trigger\r\n\r\nvar hornstrup = hornstrup || {};\r\nhornstrup.imageOverlayBlendModeNotSupported = hornstrup.imageOverlayBlendModeNotSupported || function () {\r\n var self = this;\r\n\r\n this.init = function (callback) {\r\n if(window.getComputedStyle(document.body).mixBlendMode == undefined){\r\n $('#hero .hero__bg-image, .mosaic-image__image, .list4--auto .list4__figure').prepend('
');\r\n }\r\n }\r\n\r\n // public functions:\r\n return {\r\n init: init\r\n };\r\n}();","var hornstrup = hornstrup || {};\r\nhornstrup.share = hornstrup.share || function () {\r\n //share links must have these id's: share-facebook share-twitter share-linkedin\r\n var self = this;\r\n var arrayUrlPrefixes = {\r\n facebook:'http://www.facebook.com/sharer/sharer.php?u=',\r\n linkedin:'https://www.linkedin.com/cws/share?url=',\r\n twitter:'https://twitter.com/home?status=',\r\n email: 'mailto:?subject=Se dette på Hornstrup Kursuscenters website&body=Se her: ',\r\n }\r\n\r\n this.init = function (callback) {\r\n\r\n $('#social-media-share a:not(\"#share-download\")').on('click',function(e){\r\n e.preventDefault();\r\n var socialMediaType = self.getSocialMediaType(this);\r\n var link = self.buildLink(socialMediaType);\r\n if(socialMediaType==\"email\"){\r\n location.href=link;\r\n }else{\r\n self.openShareWindow(socialMediaType,link);\r\n }\r\n });\r\n }\r\n this.getSocialMediaType = function (elem) {\r\n var socialType = $(elem).attr('id').replace('share-','');\r\n return socialType;\r\n }\r\n this.buildLink = function (socialMediaType) {\r\n var url = document.location.href;\r\n var encodedUrl = encodeURIComponent(url);\r\n var linkPrefix=arrayUrlPrefixes[socialMediaType]\r\n return linkPrefix + encodedUrl;\r\n }\r\n this.openShareWindow = function (socialMediaType, link) {\r\n window.open(link, 'share_'+socialMediaType, 'width=600,height=465');\r\n }\r\n\r\n // public functions:\r\n return {\r\n init: init\r\n };\r\n}();\r\n\r\n","//nav-mobile-trigger\r\n\r\nvar hornstrup = hornstrup || {};\r\n\r\nhornstrup.breadcrumb = hornstrup.breadcrumb || function () {\r\n var self = this;\r\n var objSectionClasses = {\r\n 'breadcrumbNormal' : ['facts','list2','list3','list4','header1','header2','cta','lead-text','author-and-share','text-content','embed-media','image-text-page'],\r\n 'breadcrumbPositionAbsoluteTop' : ['mosaic','statement','usp'],\r\n 'breadcrumbPositionAbsoluteTop50Percent' : ['focusarea'],\r\n 'breadcrumbNone' : ['hero','search-page'],\r\n 'breadcrumbBelowFirstElement' : ['image-full']\r\n };\r\n\r\n this.placeIt = function (callback) {\r\n if($('#breadcrumb').length){\r\n var breadcrumb = $('#breadcrumb');\r\n var contentContainer = $('#content');\r\n\r\n var firstSectionFirstClass=self.getClassNameOfFirstSection();\r\n var typeOfFirstSection = self.getTypeOfFirstSection(firstSectionFirstClass);\r\n\r\n\r\n\r\n switch (typeOfFirstSection){\r\n case 'breadcrumbPositionAbsoluteTop':\r\n $(contentContainer).prepend($(breadcrumb));\r\n $(breadcrumb).addClass('breadcrumb--pos-abs')\r\n break;\r\n case 'breadcrumbPositionAbsoluteTop50Percent':\r\n $(contentContainer).prepend($(breadcrumb));\r\n $(breadcrumb).addClass('breadcrumb--pos-abs');\r\n $(breadcrumb).addClass('breadcrumb--50percent');\r\n break;\r\n case 'breadcrumbNone':\r\n $(breadcrumb).remove();\r\n break;\r\n case 'breadcrumbBelowFirstElement':\r\n $('.'+firstSectionFirstClass).first().after($(breadcrumb));\r\n $(breadcrumb).addClass('breadcrumb--2nd');\r\n break;\r\n case 'breadcrumbNormal':\r\n $(contentContainer).prepend($(breadcrumb));\r\n break;\r\n }\r\n\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n this.getTypeOfFirstSection = function (firstSectionFirstClass) {\r\n\r\n var result = '';\r\n\r\n for (var key in objSectionClasses) {\r\n if(objSectionClasses[key].indexOf(firstSectionFirstClass) != -1){\r\n result = key;\r\n }\r\n }\r\n\r\n if(result == ''){\r\n cl('error: missing first section type in objSectionClasses');\r\n result = 'breadcrumbNormal';\r\n }\r\n return result;\r\n }\r\n this.getClassNameOfFirstSection = function (callback) {\r\n var firstSectionInContent = $('#content > section:not(.breadcrumb)').first();\r\n return $(firstSectionInContent).attr('class').split(' ')[0];\r\n }\r\n\r\n // public functions:\r\n return {\r\n placeIt: placeIt\r\n };\r\n}();","//nav-mobile-trigger\r\n\r\nvar hornstrup = hornstrup || {};\r\n\r\nhornstrup.contourCustom = hornstrup.contourCustom || function () {\r\n var self = this;\r\n\r\n this.init = function (callback) {\r\n $('.contour').on('focus','input[type=text], textarea, select, input[type=checkbox], input[type=radio]',function(){\r\n self.specificClass(this,'input--focus','add');\r\n })\r\n\r\n $('.contour').on('blur','input[type=text], textarea, select, input[type=checkbox], input[type=radio]',function(){\r\n self.specificClass(this,'input--focus','remove');\r\n var elementType = $(this).get(0).tagName.toLowerCase();\r\n var inputType=\"\";\r\n if(elementType == \"input\"){\r\n inputType = $(this).attr('type');\r\n }\r\n\r\n if(elementType == \"select\" || elementType == \"textarea\" || (elementType == \"input\" && inputType==\"text\")){\r\n if($(this).val()!=\"\"){\r\n self.specificClass(this,'input--filled','add');\r\n }\r\n else{\r\n self.specificClass(this,'input--filled','remove');\r\n }\r\n }\r\n\r\n if(elementType == \"input\" && (inputType==\"checkbox\" || inputType==\"radio\")){\r\n var inputName = $(this).attr('name');\r\n\r\n if(inputType==\"radio\"){\r\n\r\n self.specificClass(this,'input--filled','add');\r\n }\r\n if(inputType==\"checkbox\"){\r\n if($('input[name=\"'+inputName+'\"]:checked').length){\r\n self.specificClass(this,'input--filled','add');\r\n }else{\r\n self.specificClass(this,'input--filled','remove');\r\n }\r\n }\r\n }\r\n\r\n\r\n\r\n })\r\n\r\n $('.contour').on('click','input[type=submit]',function(){\r\n var thisContour = $(this).closest('.contour');\r\n if($('.field-validation-error',thisContour).length){\r\n var firstErrorContourField = $('.field-validation-error',thisContour).first().closest('.contourField');\r\n var navigationHeight = $('#header').outerHeight();\r\n\r\n $('html, body').animate({\r\n scrollTop: $(firstErrorContourField).offset().top-navigationHeight\r\n }, 500, function(){\r\n\r\n setTimeout(function(){ $('#header').attr('class','nav-moving-down nav-moving'); }, 251);\r\n });\r\n }\r\n\r\n });\r\n\r\n }\r\n\r\n this.specificClass = function (element,className,addOrRemove) {\r\n if(addOrRemove == \"remove\"){\r\n $(element).removeClass(className).closest('.contourField').removeClass(className).children('label').removeClass(className);\r\n }else{\r\n $(element).addClass(className).closest('.contourField').addClass(className).children('label').addClass(className);\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n\r\n\r\n // public functions:\r\n return {\r\n init: init\r\n };\r\n}();","var hornstrup = hornstrup || {};\r\nhornstrup.searchOverlay = hornstrup.searchOverlay || function () {\r\n //share links must have these id's: share-facebook share-twitter share-linkedin\r\n var self = this;\r\n\r\n\r\n this.init = function (callback) {\r\n\r\n $('#search-overlay-trigger-input').on('click',function(){\r\n if($(this).prop('checked')===true){\r\n $('#search__input').trigger('focus').val('');\r\n }\r\n });\r\n\r\n }\r\n\r\n // public functions:\r\n return {\r\n init: init\r\n };\r\n}();\r\n\r\n","var hornstrup = hornstrup || {};\r\nhornstrup.list4List3 = hornstrup.list4List3 || function () {\r\n //share links must have these id's: share-facebook share-twitter share-linkedin\r\n var self = this;\r\n\r\n\r\n this.init = function (callback) {\r\n\r\n $('.list4--version3+.list4--version3').last().addClass('list4--last');\r\n $('.list4--version3+.list4--version3').each(function(){\r\n $(this).addClass('list4--version3-after-each-other');\r\n $(this).prev().addClass('list4--version3-after-each-other');\r\n })\r\n\r\n\r\n\r\n }\r\n\r\n // public functions:\r\n return {\r\n init: init\r\n };\r\n}();\r\n\r\n","/**\r\n * @desc Load google maps\r\n * html example:
\r\n * js example: novicell.map.init();\r\n * @author Danni Larsen - DLA, Martin Haun - MHA\r\n * @requires: It also requires something to get the LAT, LNG and ZOOMLEVEL, and append it to the map-canvas element, as data-attibutes\r\n (umbraco 7: https://our.umbraco.org/projects/backoffice-extensions/angulargooglemaps) - remember to set a height for the map-canvas element!\r\n */\r\n\r\n\r\nvar novicell = novicell || {};\r\n\r\nnovicell.map = new function(){\r\n this.init = function() {\r\n if(document.getElementById('map-canvas')){\r\n // Async load the GMaps API and run \"initialize\"\r\n var script = document.createElement('script');\r\n script.type = 'text/javascript';\r\n // script.src = 'https://maps.googleapis.com/maps/api/js?v=3.exp&callback=initialize';\r\n script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyDTxNol6MDFhi_jRc87sIIGzrdhKuRiDKo&callback=initMap';\r\n document.body.appendChild(script);\r\n }\r\n }\r\n}\r\n\r\n\r\nvar initialize = function() {\r\n // Get map element from HTML\r\n var mapElement = document.getElementById('map-canvas');\r\n // Get lat / lng form the map element's attributes\r\n var lat = parseFloat(mapElement.getAttribute('data-lat').replace(',', '.')),\r\n lng = parseFloat(mapElement.getAttribute('data-lng').replace(',', '.'));\r\n\r\n //Get zoom level\r\n var zoomLevel = parseInt(mapElement.getAttribute('data-zoom'));\r\n\r\n // Set cordinates of the map\r\n var coordinates = new google.maps.LatLng(lat, lng);\r\n\r\n // Snazzymaps styles\r\n // https://snazzymaps.com/style/28228/simply-transport\r\n var mapStyles = [{\"featureType\":\"administrative\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#444444\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#f2f2f2\"}]},{\"featureType\":\"landscape.man_made\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"landscape.natural.landcover\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"landscape.natural.terrain\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi.attraction\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"on\"},{\"weight\":\"0.64\"}]},{\"featureType\":\"poi.park\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"},{\"lightness\":\"19\"},{\"saturation\":\"0\"}]},{\"featureType\":\"poi.place_of_worship\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":-100},{\"lightness\":45},{\"visibility\":\"on\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road.local\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit.line\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"},{\"saturation\":\"0\"},{\"lightness\":\"41\"},{\"gamma\":\"1.27\"}]},{\"featureType\":\"transit.station.airport\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"transit.station.bus\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"on\"},{\"hue\":\"#ff0000\"}]},{\"featureType\":\"transit.station.rail\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"on\"},{\"saturation\":\"23\"},{\"lightness\":\"0\"}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#d3f3f4\"},{\"visibility\":\"on\"}]},{\"featureType\":\"water\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"water\",\"elementType\":\"labels.text\",\"stylers\":[{\"color\":\"#ffffff\"},{\"weight\":\"0.01\"},{\"visibility\":\"off\"}]}];\r\n\r\n // Set map options\r\n var mapOptions = {\r\n zoom: zoomLevel,\r\n disableDefaultUI: false,\r\n draggable: false,\r\n scrollwheel: false,\r\n center: coordinates,\r\n styles: mapStyles // outcomment for default styles\r\n };\r\n\r\n // Set icon\r\n var icon = {\r\n url: \"dist/images/map-pin.png\", // customize the icon here\r\n scaledSize: new google.maps.Size(30, 40) // and set size here\r\n};\r\n\r\n // Set the google maps element\r\n var map = new google.maps.Map(mapElement, mapOptions);\r\n\r\n // Set marker\r\n var marker = new google.maps.Marker({\r\n position: coordinates,\r\n map: map,\r\n icon: icon,\r\n title: 'Novicell'\r\n });\r\n\r\n /******* Infowindow ************************************/\r\n // Set HTML content for info window\r\n var contentString = '
'+\r\n '
'+\r\n '
'+\r\n '

Novicell DP

'+\r\n '
'+\r\n '

Office hours:
8.00am – 4.00pm

' +\r\n '

Phone
+45 8619 0550

' +\r\n '

Email
ncdp@novicell.dk

' +\r\n '

Novicell Aarhus
Søren Nymarks Vej 6
8270 Højbjerg

' +\r\n '
'+\r\n '
';\r\n\r\n // Set info window content\r\n var infowindow = new google.maps.InfoWindow({\r\n content: contentString\r\n });\r\n\r\n //Add eventlistner for click on marker\r\n google.maps.event.addListener(marker, 'click', function() {\r\n infowindow.open(map,marker);\r\n });\r\n\r\n /******* / Infowindow ************************************/\r\n\r\n\r\n // Recalculate center on resize\r\n google.maps.event.addDomListener(window, \"resize\", function() {\r\n var center = map.getCenter();\r\n google.maps.event.trigger(map, \"resize\");\r\n map.setCenter(center);\r\n});\r\n}","/*\r\n * Novicell master\r\n * Author: APN modified by DLA\r\n * Use this file to call functions in other files, on document ready, window.resize etc.\r\n * ------\r\n * Dependencies: jquery, novicell.js, other files with awesome functions.\r\n * Usage: $(function () {\r\n * HornstrupKursuscenter.slider.heroSlider($('.owl-carousel'));\r\n * }); // Document ready end\r\n */\r\n\r\nvar novicell = novicell || {};\r\nvar hornstrup = hornstrup || {};\r\nnovicell.initMaster = function() {\r\n// Document ready\r\n$(function () {\r\n // Only include Novicell functions that you use!\r\n novicell.map.init();\r\n novicell.cookieInfo.init();\r\n novicell.embed.loadEmbeds();\r\n novicell.responsiveLazyloadImage.image();\r\n hornstrup.mobilenav.init();\r\n hornstrup.countTo.init();\r\n hornstrup.countTo.checkIfCounterShouldRun();\r\n responsiveBackgroundImage();\r\n hornstrup.backgroundVideo.checkVideo();\r\n hornstrup.imageOverlayBlendModeNotSupported.init();\r\n hornstrup.googleMaps.init();\r\n hornstrup.share.init();\r\n hornstrup.breadcrumb.placeIt();\r\n hornstrup.contourCustom.init();\r\n hornstrup.searchOverlay.init();\r\n hornstrup.list4List3.init();\r\n\r\n\r\n\r\n\r\n //$('#nav-mobile-trigger').trigger('click')\r\n\r\n // Call new functions here like this:\r\n //HornstrupKursuscenter.slider.heroSlider($('.owl-carousel'));\r\n svg4everybody(); // Fix SVG spritemap in IE/Edge\r\n\r\n}); // Document ready end\r\n\r\n\r\n/*\r\n * Use the following if needed\r\n */\r\n\r\n// Window load\r\n// $(window).load(function(e){\r\n// // call functions here\r\n// }); // Window load\r\n\r\n// Window resize (debounced)\r\n$(window).smartresize(function(e){\r\n novicell.responsiveLazyloadImage.onResize();\r\n novicell.embed.onResize();\r\n hornstrup.countTo.checkIfCounterShouldRun();\r\n hornstrup.backgroundVideo.checkVideo();\r\n}); // Window resize\r\n\r\n// Window scroll (debounced)\r\n$(window).smartscroll(function (e) {\r\n // call functions here\r\n novicell.responsiveLazyloadImage.image();\r\n responsiveBackgroundImage();\r\n if ($('.embed-media__item').length) {\r\n novicell.embed.loadEmbeds();\r\n }\r\n hornstrup.countTo.checkIfCounterShouldRun();\r\n}); // Window scroll\r\n\r\n// // Window mousemove (debounced)\r\n// $(window).smartmousemove(function(e){\r\n// // do stuff as soon as the user stops moving his mouse for longer than 100ms\r\n// }); // Window mousemove\r\n\r\n\r\n// Makes the jumbotron image bandwidth friendly\r\nfunction responsiveBackgroundImage() {\r\n [].forEach.call(document.querySelectorAll(\".responsiveBackgroundImage\"), function (el) {\r\n if (el.hasAttribute(\"data-bgimg\")) {\r\n var bgimg = el.getAttribute(\"data-bgimg\");\r\n var w = el.offsetWidth;\r\n var wRnd = Math.round(w / 50) * 50 + 50;\r\n el.setAttribute(\"style\", \"background-image:url('\" + bgimg + \"?width=\" + wRnd + \"&quality=70');\");\r\n }\r\n });\r\n}\r\n}"]}