(function() { var sh_certificate_PAGE_ROOT_URL = ('cert.svenskhandel.net' == 'shscript.local') ? 'https://shscript.local' : 'https://cert.svenskhandel.net'; var sh_certificate_company_validDomains = 'event.svenskhandel.se' != '' ? 'event.svenskhandel.se' : null; var sh_certificate_company_name = 'Apotea' != '' ? 'Apotea' : null; var sh_certificate_cache_buster = '20240101000000'; var sh_certificate_data = [{"sh_certificate_id":30411,"sh_certificate_created":"2025-03-09 16:22:19","sh_certificate_updated":"2025-03-09 16:22:19","sh_certificate_created_string":"20250309162219","sh_certificate_updated_string":"20250309162219","sh_certificate_name":"D-Award 2025 E-handel","sh_certificate_code":"daward-2025-ecom","sh_certificate_image":"20250309162219.svg","sh_certificate_image_url":"https:\/\/cert.svenskhandel.net\/data\/media\/30411\/20250309162219.svg","sh_certificate_image_dark":"dark_20250309162219.svg","sh_certificate_image_dark_url":"https:\/\/cert.svenskhandel.net\/data\/media\/30411\/dark_20250309162219.svg","sh_certificate_title":"D-Award 2025","sh_certificate_sub_title":"E-Commerce of the Year","sh_certificate_domain_title":"","sh_certificate_company_title":"","sh_certificate_description":"

D-Award is the gala where we celebrate the culmination of D-Congress and honor the trailblazers of digital commerce in Sweden.<\/p>","sh_certificate_footer_text":"Svensk Handel (Swedish Commerce) is the business and employers\u2019 association serving the entire trade and commerce sector. We represent commercial enterprises on issues concerning employment and economic policy. ","sh_certificate_footer_link":"https:\/\/www.svenskhandel.se\/","sh_certificate_footer_link_text":"Read on","sh_certificate_recipient_title":"WINNER","sh_certificate_recipient_text":"

Apotea continues to be a shining example of Swedish e-commerce year after year. With a successful listing on Nasdaq Stockholm, the company has further cemented its position as one of Sweden\u2019s largest and most profitable e-commerce players. Apotea has revolutionized the pharmacy industry through innovative solutions and fast, sustainable deliveries, making it a role model for the entire Swedish retail sector.<\/p>"}]; var sh_certificate_placeHolderClass = 'sh-certificate'; var sh_certificate_LOGACTIVE = false; function sh_certificate_logInformation(p_sh_certificate_msg){ if(!sh_certificate_LOGACTIVE) return; console.log('%c[SH Certification Info]: ' + p_sh_certificate_msg, 'background: #ffffff; color: #0000ff'); } function sh_certificate_logWarning(p_sh_certificate_msg){ console.log('%c[SH Certification Warning]: ' + p_sh_certificate_msg, 'background: #ffffff; color: #ff0000'); } function sh_certificate_isEmpty(p_sh_certificate_data){ return p_sh_certificate_data == undefined || p_sh_certificate_data == null || p_sh_certificate_data == ''; } var sh_certificate_matchedScripts = document.querySelectorAll('script[src^="'+sh_certificate_PAGE_ROOT_URL+'/js/script.js"]'); if(sh_certificate_matchedScripts.length == 0){ sh_certificate_logWarning('Could not find the script'); return; } if(sh_certificate_matchedScripts.length > 1){ sh_certificate_logWarning('You should only include the script once'); return; } var sh_certificate_thisScript = sh_certificate_matchedScripts[0]; if(sh_certificate_thisScript.hasAttribute('debugging')){ sh_certificate_LOGACTIVE = true; sh_certificate_logInformation('Debugging is enabled'); } var sh_certificate_param = new RegExp('[\?&]id=([^&#]*)').exec(sh_certificate_thisScript.getAttribute('src')); if(sh_certificate_isEmpty(sh_certificate_param)) { sh_certificate_logWarning('Script attribute "src" is missing parameter "id"'); return; } sh_certificate_param = decodeURI(sh_certificate_param[1]); if(sh_certificate_isEmpty(sh_certificate_param)){ sh_certificate_logWarning('Script attribute "src" is missing parameter value on "id"'); return; } if(sh_certificate_param.match("\\[.*\\]")){ sh_certificate_logWarning('Please remove the placeholders "[]" on the script attribute "src".'); return; } var sh_certificate_HOST_TO_CHECK = window.origin; if(sh_certificate_isEmpty(sh_certificate_HOST_TO_CHECK)) sh_certificate_HOST_TO_CHECK = location.host; if(sh_certificate_isEmpty(sh_certificate_HOST_TO_CHECK)){ sh_certificate_logWarning('Host not found'); return; } sh_certificate_HOST_TO_CHECK = sh_certificate_HOST_TO_CHECK.replace(/(^\w+:|^)\/\//, ''); // http, https sh_certificate_HOST_TO_CHECK = sh_certificate_HOST_TO_CHECK.replace(/(^www.)/, ''); // www. sh_certificate_HOST_TO_CHECK = sh_certificate_HOST_TO_CHECK.replace(/(\/.*)/, ''); // childfolders var sh_certificate_hostParts = sh_certificate_HOST_TO_CHECK.split('.'); // .paths if(sh_certificate_hostParts.length < 2){ sh_certificate_logWarning('Host invalid: ' + sh_certificate_HOST_TO_CHECK); return; } sh_certificate_HOST_TO_CHECK = sh_certificate_hostParts[sh_certificate_hostParts.length - 2] + '.' + sh_certificate_hostParts[sh_certificate_hostParts.length - 1]; sh_certificate_logInformation('Validating: ' + sh_certificate_HOST_TO_CHECK); if(sh_certificate_data.length < 1){ sh_certificate_logWarning('Could not find certificate. Please contact Svensk Handel.'); return; } if(sh_certificate_isEmpty(sh_certificate_company_name)){ sh_certificate_logWarning('Could not find recipient. Please contact Svensk Handel.'); return; } if(sh_certificate_isEmpty(sh_certificate_company_validDomains)){ sh_certificate_logWarning('Has no domains...'); return; } var sh_certificate_validDomainsUrls = sh_certificate_company_validDomains.split(','); var sh_certificate_haveValidDomains = false; for (var sh_certificate_validDomainsUrls_i = 0; sh_certificate_validDomainsUrls_i < sh_certificate_validDomainsUrls.length; sh_certificate_validDomainsUrls_i++) { if(sh_certificate_validDomainsUrls[sh_certificate_validDomainsUrls_i].toLowerCase().indexOf(sh_certificate_HOST_TO_CHECK.toLowerCase()) != -1){ sh_certificate_haveValidDomains = true; break; } } if(!sh_certificate_haveValidDomains){ sh_certificate_logWarning('Has not valid domains...'); return; } sh_certificate_logInformation('Has valid domains!'); var sh_certificate_css = ''; sh_certificate_css += '.sh-cleanslate,.sh-cleanslate a,.sh-cleanslate abbr,.sh-cleanslate acronym,.sh-cleanslate address,.sh-cleanslate applet,.sh-cleanslate area,.sh-cleanslate article,.sh-cleanslate aside,.sh-cleanslate audio,.sh-cleanslate b,.sh-cleanslate big,.sh-cleanslate blockquote,.sh-cleanslate button,.sh-cleanslate canvas,.sh-cleanslate caption,.sh-cleanslate cite,.sh-cleanslate code,.sh-cleanslate col,.sh-cleanslate colgroup,.sh-cleanslate datalist,.sh-cleanslate dd,.sh-cleanslate del,.sh-cleanslate dfn,.sh-cleanslate div,.sh-cleanslate dl,.sh-cleanslate dt,.sh-cleanslate em,.sh-cleanslate fieldset,.sh-cleanslate figcaption,.sh-cleanslate figure,.sh-cleanslate footer,.sh-cleanslate form,.sh-cleanslate h1,.sh-cleanslate h2,.sh-cleanslate h3,.sh-cleanslate h4,.sh-cleanslate h5,.sh-cleanslate h6,.sh-cleanslate header,.sh-cleanslate hr,.sh-cleanslate i,.sh-cleanslate iframe,.sh-cleanslate img,.sh-cleanslate input,.sh-cleanslate ins,.sh-cleanslate kbd,.sh-cleanslate label,.sh-cleanslate legend,.sh-cleanslate li,.sh-cleanslate main,.sh-cleanslate map,.sh-cleanslate mark,.sh-cleanslate menu,.sh-cleanslate meta,.sh-cleanslate nav,.sh-cleanslate object,.sh-cleanslate ol,.sh-cleanslate optgroup,.sh-cleanslate option,.sh-cleanslate output,.sh-cleanslate p,.sh-cleanslate pre,.sh-cleanslate progress,.sh-cleanslate q,.sh-cleanslate samp,.sh-cleanslate section,.sh-cleanslate select,.sh-cleanslate small,.sh-cleanslate span,.sh-cleanslate strike,.sh-cleanslate strong,.sh-cleanslate sub,.sh-cleanslate summary,.sh-cleanslate sup,.sh-cleanslate svg,.sh-cleanslate table,.sh-cleanslate tbody,.sh-cleanslate td,.sh-cleanslate textarea,.sh-cleanslate tfoot,.sh-cleanslate th,.sh-cleanslate thead,.sh-cleanslate time,.sh-cleanslate tr,.sh-cleanslate tt,.sh-cleanslate ul,.sh-cleanslate var,.sh-cleanslate video{background-attachment:scroll!important;background-color:transparent!important;background-image:none!important;background-position:0 0!important;background-repeat:repeat!important;border-color:#000!important;border-color:currentColor!important;border-radius:0!important;border-style:none!important;border-width:medium!important;bottom:auto!important;clear:none!important;clip:auto!important;color:inherit!important;counter-increment:none!important;counter-reset:none!important;cursor:auto!important;direction:inherit!important;display:inline!important;float:none!important;font-family:inherit!important;font-size:inherit!important;font-style:inherit!important;font-variant:normal!important;font-weight:inherit!important;height:auto!important;left:auto!important;letter-spacing:normal!important;line-height:inherit!important;list-style-type:inherit!important;list-style-position:outside!important;list-style-image:none!important;margin:0!important;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:1;outline:invert none medium!important;overflow:visible!important;padding:0!important;position:static!important;quotes:"" ""!important;right:auto!important;table-layout:auto!important;text-align:inherit!important;text-decoration:inherit!important;text-indent:0!important;text-transform:none!important;top:auto!important;unicode-bidi:normal!important;vertical-align:baseline!important;visibility:inherit!important;white-space:normal!important;width:auto!important;word-spacing:normal!important;z-index:auto!important;-webkit-background-origin:padding-box!important;background-origin:padding-box!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;-webkit-background-size:auto!important;-moz-background-size:auto!important;background-size:auto!important;-webkit-border-image:none!important;-moz-border-image:none!important;-o-border-image:none!important;border-image:none!important;-webkit-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important;-webkit-box-shadow:none!important;box-shadow:none!important;-webkit-column-count:auto!important;-moz-column-count:auto!important;column-count:auto!important;-webkit-column-gap:normal!important;-moz-column-gap:normal!important;column-gap:normal!important;-webkit-column-rule:medium none #000!important;-moz-column-rule:medium none #000!important;column-rule:medium none #000!important;-webkit-column-span:1!important;-moz-column-span:1!important;column-span:1!important;-webkit-column-width:auto!important;-moz-column-width:auto!important;column-width:auto!important;font-feature-settings:normal!important;overflow-x:visible!important;overflow-y:visible!important;-webkit-hyphens:manual!important;-moz-hyphens:manual!important;hyphens:manual!important;-webkit-perspective:none!important;-moz-perspective:none!important;-ms-perspective:none!important;-o-perspective:none!important;perspective:none!important;-webkit-perspective-origin:50% 50%!important;-moz-perspective-origin:50% 50%!important;-ms-perspective-origin:50% 50%!important;-o-perspective-origin:50% 50%!important;perspective-origin:50% 50%!important;-webkit-backface-visibility:visible!important;-moz-backface-visibility:visible!important;-ms-backface-visibility:visible!important;-o-backface-visibility:visible!important;backface-visibility:visible!important;text-shadow:none!important;-webkit-transition:all 0s ease 0s!important;transition:all 0s ease 0s!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transform-origin:50% 50%!important;-moz-transform-origin:50% 50%!important;-ms-transform-origin:50% 50%!important;-o-transform-origin:50% 50%!important;transform-origin:50% 50%!important;-webkit-transform-style:flat!important;-moz-transform-style:flat!important;-ms-transform-style:flat!important;-o-transform-style:flat!important;transform-style:flat!important;word-break:normal!important}.sh-cleanslate,.sh-cleanslate address,.sh-cleanslate article,.sh-cleanslate audio,.sh-cleanslate blockquote,.sh-cleanslate caption,.sh-cleanslate colgroup,.sh-cleanslate dd,.sh-cleanslate dialog,.sh-cleanslate div,.sh-cleanslate dl,.sh-cleanslate dt,.sh-cleanslate fieldset,.sh-cleanslate figure,.sh-cleanslate footer,.sh-cleanslate form,.sh-cleanslate h1,.sh-cleanslate h2,.sh-cleanslate h3,.sh-cleanslate h4,.sh-cleanslate h5,.sh-cleanslate h6,.sh-cleanslate header,.sh-cleanslate hgroup,.sh-cleanslate hr,.sh-cleanslate main,.sh-cleanslate menu,.sh-cleanslate nav,.sh-cleanslate ol,.sh-cleanslate option,.sh-cleanslate p,.sh-cleanslate pre,.sh-cleanslate progress,.sh-cleanslate section,.sh-cleanslate summary,.sh-cleanslate ul,.sh-cleanslate video{display:block!important}.sh-cleanslate h1,.sh-cleanslate h2,.sh-cleanslate h3,.sh-cleanslate h4,.sh-cleanslate h5,.sh-cleanslate h6{font-weight:700!important}.sh-cleanslate h1{font-size:2em!important;padding:.67em 0!important}.sh-cleanslate h2{font-size:1.5em!important;padding:.83em 0!important}.sh-cleanslate h3{font-size:1.17em!important;padding:.83em 0!important}.sh-cleanslate h4{font-size:1em!important}.sh-cleanslate h5{font-size:.83em!important}.sh-cleanslate p{margin:1em 0!important}.sh-cleanslate table{display:table!important}.sh-cleanslate thead{display:table-header-group!important}.sh-cleanslate tbody{display:table-row-group!important}.sh-cleanslate tfoot{display:table-footer-group!important}.sh-cleanslate tr{display:table-row!important}.sh-cleanslate td,.sh-cleanslate th{display:table-cell!important;padding:2px!important}.sh-cleanslate ol,.sh-cleanslate ul{margin:1em 0!important}.sh-cleanslate ol li,.sh-cleanslate ol ol li,.sh-cleanslate ol ol ol li,.sh-cleanslate ol ol ul li,.sh-cleanslate ol ul ul li,.sh-cleanslate ul li,.sh-cleanslate ul ol ol li,.sh-cleanslate ul ul li,.sh-cleanslate ul ul ol li,.sh-cleanslate ul ul ul li{list-style-position:inside!important;margin-top:.08em!important}.sh-cleanslate ol ol,.sh-cleanslate ol ol ol,.sh-cleanslate ol ol ul,.sh-cleanslate ol ul,.sh-cleanslate ol ul ul,.sh-cleanslate ul ol,.sh-cleanslate ul ol ol,.sh-cleanslate ul ul,.sh-cleanslate ul ul ol,.sh-cleanslate ul ul ul{padding-left:40px!important;margin:0!important}.sh-cleanslate nav ol,.sh-cleanslate nav ul{list-style-type:none!important}.sh-cleanslate menu,.sh-cleanslate ul{list-style-type:disc!important}.sh-cleanslate ol{list-style-type:decimal!important}.sh-cleanslate menu menu,.sh-cleanslate menu ul,.sh-cleanslate ol menu,.sh-cleanslate ol ul,.sh-cleanslate ul menu,.sh-cleanslate ul ul{list-style-type:circle!important}.sh-cleanslate menu menu menu,.sh-cleanslate menu menu ul,.sh-cleanslate menu ol menu,.sh-cleanslate menu ol ul,.sh-cleanslate menu ul menu,.sh-cleanslate menu ul ul,.sh-cleanslate ol menu menu,.sh-cleanslate ol menu ul,.sh-cleanslate ol ol menu,.sh-cleanslate ol ol ul,.sh-cleanslate ol ul menu,.sh-cleanslate ol ul ul,.sh-cleanslate ul menu menu,.sh-cleanslate ul menu ul,.sh-cleanslate ul ol menu,.sh-cleanslate ul ol ul,.sh-cleanslate ul ul menu,.sh-cleanslate ul ul ul{list-style-type:square!important}.sh-cleanslate li{display:list-item!important;min-height:auto!important;min-width:auto!important;padding-left:20px!important}.sh-cleanslate strong{font-weight:700!important}.sh-cleanslate em{font-style:italic!important}.sh-cleanslate code,.sh-cleanslate kbd,.sh-cleanslate pre,.sh-cleanslate samp{font-family:monospace!important}.sh-cleanslate a{color:#00f!important;text-decoration:underline!important}.sh-cleanslate a:visited{color:#529!important}.sh-cleanslate a,.sh-cleanslate a *,.sh-cleanslate button,.sh-cleanslate input[type=button],.sh-cleanslate input[type=checkbox],.sh-cleanslate input[type=radio],.sh-cleanslate input[type=submit],.sh-cleanslate select{cursor:pointer!important}.sh-cleanslate button,.sh-cleanslate input[type=submit]{text-align:center!important;padding:2px 6px 3px!important;border-radius:4px!important;text-decoration:none!important;font-family:arial,helvetica,sans-serif!important;font-size:small!important;background:#fff!important;color:buttontext!important;border:1px #a6a6a6 solid!important;background:#d3d3d3!important;background:#fff;background:-moz-linear-gradient(top,#fff 0,#ddd 100%,#d1d1d1 100%,#ddd 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(100%,#ddd),color-stop(100%,#d1d1d1),color-stop(100%,#ddd))!important;background:-webkit-linear-gradient(top,#fff 0,#ddd 100%,#d1d1d1 100%,#ddd 100%)!important;background:-o-linear-gradient(top,#fff 0,#ddd 100%,#d1d1d1 100%,#ddd 100%)!important;background:-ms-linear-gradient(top,#fff 0,#ddd 100%,#d1d1d1 100%,#ddd 100%)!important;background:linear-gradient(to bottom,#fff 0,#ddd 100%,#d1d1d1 100%,#ddd 100%)!important;-webkit-box-shadow:1px 1px 0 #eee!important;-moz-box-shadow:1px 1px 0 #eee!important;-o-box-shadow:1px 1px 0 #eee!important;box-shadow:1px 1px 0 #eee!important;outline:initial!important}.sh-cleanslate button:active,.sh-cleanslate input[type=button]:active,.sh-cleanslate input[type=submit]:active{background:#3b679e!important;background:-moz-linear-gradient(top,#3b679e 0,#2b88d9 50%,#207cca 51%,#7db9e8 100%)!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3b679e),color-stop(50%,#2b88d9),color-stop(51%,#207cca),color-stop(100%,#7db9e8))!important;background:-webkit-linear-gradient(top,#3b679e 0,#2b88d9 50%,#207cca 51%,#7db9e8 100%)!important;background:-o-linear-gradient(top,#3b679e 0,#2b88d9 50%,#207cca 51%,#7db9e8 100%)!important;background:-ms-linear-gradient(top,#3b679e 0,#2b88d9 50%,#207cca 51%,#7db9e8 100%)!important;background:linear-gradient(to bottom,#3b679e 0,#2b88d9 50%,#207cca 51%,#7db9e8 100%)!important;border-color:#5259b0!important}.sh-cleanslate button{padding:1px 6px 2px 6px!important;margin-right:5px!important}.sh-cleanslate input[type=hidden]{display:none!important}.sh-cleanslate textarea{-webkit-appearance:textarea!important;background:#fff!important;padding:2px!important;margin-left:4px!important;word-wrap:break-word!important;white-space:pre-wrap!important;font-size:11px!important;font-family:arial,helvetica,sans-serif!important;line-height:13px!important;resize:both!important}.sh-cleanslate input,.sh-cleanslate select,.sh-cleanslate textarea{border:1px solid #ccc!important}.sh-cleanslate select{font-size:11px!important;font-family:helvetica,arial,sans-serif!important;display:inline-block}.sh-cleanslate input:focus,.sh-cleanslate textarea:focus{outline:auto 5px -webkit-focus-ring-color!important;outline:initial!important}.sh-cleanslate input[type=text]{background:#fff!important;padding:1px!important;font-family:initial!important;font-size:small!important}.sh-cleanslate input[type=checkbox],.sh-cleanslate input[type=radio]{border:1px #2b2b2b solid!important;border-radius:4px!important}.sh-cleanslate input[type=checkbox],.sh-cleanslate input[type=radio]{outline:initial!important}.sh-cleanslate input[type=radio]{margin:2px 2px 3px 2px!important}.sh-cleanslate abbr[title],.sh-cleanslate acronym[title],.sh-cleanslate dfn[title]{cursor:help!important;border-bottom-width:1px!important;border-bottom-style:dotted!important}.sh-cleanslate ins{background-color:#ff9!important;color:#000!important}.sh-cleanslate del{text-decoration:line-through!important}.sh-cleanslate blockquote,.sh-cleanslate q{quotes:none!important}.sh-cleanslate blockquote:after,.sh-cleanslate blockquote:before,.sh-cleanslate li:after,.sh-cleanslate li:before,.sh-cleanslate q:after,.sh-cleanslate q:before{content:""!important}.sh-cleanslate input,.sh-cleanslate select{vertical-align:middle!important}.sh-cleanslate table{border-collapse:collapse!important;border-spacing:0!important}.sh-cleanslate hr{display:block!important;height:1px!important;border:0!important;border-top:1px solid #ccc!important;margin:1em 0!important}.sh-cleanslate [dir=rtl]{direction:rtl!important}.sh-cleanslate mark{background-color:#ff9!important;color:#000!important;font-style:italic!important;font-weight:700!important}.sh-cleanslate menu{padding-left:40px!important;padding-top:8px!important}.sh-cleanslate [hidden],.sh-cleanslate template{display:none!important}.sh-cleanslate abbr[title]{border-bottom:1px dotted!important}.sh-cleanslate sub,.sh-cleanslate sup{font-size:75%!important;line-height:0!important;position:relative!important;vertical-align:baseline!important}.sh-cleanslate sup{top:-.5em!important}.sh-cleanslate sub{bottom:-.25em!important}.sh-cleanslate img{border:0!important}.sh-cleanslate figure{margin:0!important}.sh-cleanslate textarea{overflow:auto!important;vertical-align:top!important}.sh-cleanslate{font-size:medium!important;line-height:1!important;direction:ltr!important;text-align:left!important;text-align:start!important;font-family:"Times New Roman",Times,serif!important;color:#000!important;font-style:normal!important;font-weight:400!important;text-decoration:none!important;list-style-type:disc!important}.sh-cleanslate pre{white-space:pre!important}'; sh_certificate_css += '@font-face {font-family: "SH-ClanPro-Book";src: url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.eot");src: url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.eot?#iefix") format("embedded-opentype"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.woff2") format("woff2"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.woff") format("woff"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.ttf") format("truetype");}'; sh_certificate_css += '@font-face {font-weight: normal;font-style: normal;font-family: "SH-ClanPro-Medium";src: url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.eot");src: url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.eot?#iefix") format("embedded-opentype"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.woff2") format("woff2"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.woff") format("woff"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.ttf") format("truetype");}'; sh_certificate_css += '@font-face {font-weight: normal;font-style: normal;font-family: "SH-ClanPro-News";src: url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.eot");src: url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.eot?#iefix") format("embedded-opentype"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.woff2") format("woff2"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.woff") format("woff"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-300.ttf") format("truetype");}'; sh_certificate_css += '@font-face {font-weight: normal;font-style: normal;font-family: "SH-ClanPro-Bold";src: url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.eot.eot");src: url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.eot.eot?#iefix") format("embedded-opentype"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.woff2") format("woff2"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.woff") format("woff"),url("'+sh_certificate_PAGE_ROOT_URL+'/js/fonts/Lausanne-600.ttf") format("truetype");}'; sh_certificate_css += '.sh-cleanslate *, .sh-cleanslate ::after, .sh-cleanslate ::before { box-sizing: border-box !important; }'; sh_certificate_css += '.sh-cert-wrapper *, .sh-cert-wrapper ::after, .sh-cert-wrapper ::before { box-sizing: border-box !important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-clearfix::after {content: "" !important; clear: both !important; display: table !important;}'; sh_certificate_css += 'body.sh-cert-noscroll { height: 100%; overflow: hidden; }'; sh_certificate_css += '.sh-cert-wrapper { position: fixed !important; top: 0px !important; left: 0px !important; right: 0px !important; bottom: 0px !important; background-color: rgba(0,0,0,0.5) !important; z-index:9999 !important; font-family: "SH-ClanPro-Book", arial !important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel { position: absolute !important; width: 100% !important; max-width: 490px !important; height: 100% !important; max-height: 640px !important; top: 50% !important; left: 50% !important; transform: translate(-50%,-50%) !important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-inner { position: absolute!important; top: 20px!important; left: 20px!important; bottom: 20px!important; right: 20px!important; background: #fff!important; overflow: hidden!important; border-radius: 10px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-close { position: absolute!important; top: 20px!important; right: 20px!important; z-index: 10!important; width: 20px!important; padding: 3px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-close:focus,'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-close:active { outline: #000 solid 2px !important; outline-offset: 4px !important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-close img { width: 100%!important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-inner-top { height: 100px!important; position: absolute!important; width: 100%!important; top: 0px!important; padding: 20px!important; overflow-hidden!important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-inner-middle { position: absolute!important; top: 100px!important; bottom: 150px!important; width: 100%!important; overflow-y: auto!important; padding-left: 20px!important; padding-right: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-inner-bottom { background: #000!important; height: 150px!important; position: absolute!important; width: 100%!important; bottom: 0px!important; padding: 20px 0!important; overflow-hidden!important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-inner-bottom-active { top: 100px!important; height: auto!important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-inner-bottom-flex { display: flex!important; margin: 0 20px !important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-inner-bottom-left { width: 85%!important; padding-right: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-cert-panel-inner-bottom-right { width: 15%!important; }'; sh_certificate_css += '.sh-cleanslate .sh-bottom-title { font-family: "SH-ClanPro-News", arial!important; color: #fff!important; font-size: 15px!important; line-height: 22px!important; padding-bottom: 20px!important; padding-right: 10px!important; word-break: break-word!important; }'; sh_certificate_css += '@media only screen and (max-width: 500px) { .sh-cleanslate .sh-bottom-title { font-size: 14px!important; line-height: 20px!important; padding-bottom: 10px!important; padding-right: 5px!important; } }'; sh_certificate_css += '.sh-cleanslate .sh-bottom-read-more, .sh-cleanslate .sh-bottom-read-more a, .sh-cleanslate .sh-bottom-read-more a:hover { font-family: "SH-ClanPro-News", arial!important; color: #fff!important; font-size: 14px!important; line-height: 18px!important; text-decoration: none!important; padding-bottom: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-bottom-read-more { padding-left: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-bottom-read-more img { display: inline-block!important; width: 18px!important; margin-right: 10px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-bottom-read-more a:focus,'; sh_certificate_css += '.sh-cleanslate .sh-bottom-read-more a:active { outline: #fff solid 2px !important; }'; sh_certificate_css += '.sh-cleanslate .sh-bottom-report { font-family: "SH-ClanPro-News", arial!important; color: #fff!important; font-size: 12px!important; line-height: 18px!important; max-width: 300px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-bottom-report a, .sh-cleanslate .sh-bottom-report a:hover { text-decoration: underline!important; color: #fff!important; }'; sh_certificate_css += '.sh-cleanslate .sh-bottom-report a:focus,'; sh_certificate_css += '.sh-cleanslate .sh-bottom-report a:active { outline: #fff solid 2px !important; }'; sh_certificate_css += '.sh-cleanslate .sh-top-logo { width: 100%!important; }'; sh_certificate_css += '.sh-cleanslate .sh-top-logo img { display: block!important; height: 60px!important; width: auto!important; margin: 0 auto!important; }'; sh_certificate_css += '.sh-cleanslate .sh-top-text { text-align:center !important; padding:0 0 10px 0!important; }'; sh_certificate_css += '.sh-cleanslate .sh-top-text-title { font-family: "SH-ClanPro-News", arial!important; color: #222222!important; font-size: 20px!important; line-height: 24px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-top-text-payoff { font-family: "SH-ClanPro-News", arial!important; color: #222222!important; font-size: 12px!important; line-height: 16px!important; text-transform: uppercase!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-host { font-family: "SH-ClanPro-Book", arial!important; color: #222222!important; font-size: 14px!important; line-height: 18px!important; margin-bottom: 2px!important; text-transform: uppercase!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-company { font-family: "SH-ClanPro-Book", arial!important; color: #084f4f!important; font-size: 18px!important; line-height: 20px!important; margin-bottom: 15px!important; text-transform: uppercase!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-status { float: left!important; width: 60%!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-status-title { font-family: "SH-ClanPro-Bold", arial!important; color: #000000!important; font-size: 14px!important; line-height: 18px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-status-date { font-family: "SH-ClanPro-News", arial!important; color: #000000!important; font-size: 14px!important; line-height: 18px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-cert { margin-bottom: 40px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-options { padding-bottom: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-top { text-align: center!important; border-top: 1px solid #ececec!important; border-bottom: 1px solid #ececec!important;padding-top: 14px!important; padding-bottom: 10px!important; margin-bottom: 10px!important; cursor: pointer!important; display: block!important; text-decoration: none!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-top-title { font-family: "SH-ClanPro-News", arial!important; color: #222222!important; font-size: 18px!important; line-height: 22px!important; text-transform: uppercase!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-top-company { font-family: "SH-ClanPro-Bold", arial!important; color: #084f4f!important; font-size: 20px!important; line-height: 24px!important; text-transform: uppercase!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-top-text { color: #000000!important; font-family: "SH-ClanPro-News", arial!important; font-size: 14px!important; line-height: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-top-text p { margin: 10px 0 0 0!important; padding: 0!important; color: #000000!important; font-family: "SH-ClanPro-News", arial!important; font-size: 14px!important; line-height: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option { padding-bottom: 10px!important; margin-bottom: 10px!important; cursor: pointer!important; display: block!important; text-decoration: none!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option:focus,'; sh_certificate_css += '.sh-cleanslate .sh-middle-option:active { outline: #000 solid 2px !important; outline-offset: 4px !important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option:last-child { border-bottom: 0!important; padding-bottom: 0!important; margin-bottom: 0!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-header { position: relative!important; padding-right: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-icon { display: inline-block!important; width: 25px!important; margin-right: 15px!important; position: relative!important; top: 5px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-icon img { display: block!important; width: 100%!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-title { display: inline-block!important; color: #000000!important; font-family: "SH-ClanPro-Medium", arial!important; font-size: 16px!important; line-height: 18px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-chevron { display: block!important; position: absolute!important; right: 0px!important; top: 10px!important; width: 12px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-chevron img { display: block!important; width: 100%!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-active .sh-middle-option-chevron img { transform: rotateX(180deg)!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-text { padding-bottom: 10px!important; display: block!important; text-align: center!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-active .sh-middle-option-text { display: block!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-text p { margin: 0 0 10px 0!important; padding: 0!important; color: #000000!important; font-family: "SH-ClanPro-News", arial!important; font-size: 14px!important; line-height: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-text ul { list-style-type: disc!important; margin: 0 0 0 40px!important; padding: 0!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-text ul li { text-indent: -18px !important; margin: 0 0 10px 0!important; padding: 0!important; color: #000000!important; font-family: "SH-ClanPro-News", arial!important; font-size: 14px!important; line-height: 20px!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-text ul li:last-child { margin: 0!important; }'; sh_certificate_css += '.sh-cleanslate .sh-middle-option-text ul li b { font-family: "SH-ClanPro-Medium", arial!important; }'; var sh_certificate_head = document.head || document.getElementsByTagName('head')[0]; var sh_certificate_style = document.createElement('style'); sh_certificate_head.appendChild(sh_certificate_style); if (sh_certificate_style.styleSheet) sh_certificate_style.styleSheet.cssText = sh_certificate_css; else sh_certificate_style.appendChild(document.createTextNode(sh_certificate_css)); //var sh_certificate_logoImageUrl = sh_certificate_PAGE_ROOT_URL + sh_certificate_image_url; //var sh_certificate_logoImageUrlDark = sh_certificate_PAGE_ROOT_URL + sh_certificate_image_dark_url; //var sh_certificate_logoImageUrlDemo = sh_certificate_PAGE_ROOT_URL + '/js/logo_demo.svg'; function sh_certificate_addPlaceholder(p_sh_certificate_placeholder){ // Datatag - Code var sh_certificate_code = null; var sh_certificate_DT_code = p_sh_certificate_placeholder.getAttribute('data-cert'); if(sh_certificate_DT_code) { sh_certificate_code = sh_certificate_DT_code; } else { sh_certificate_logWarning('Missing code...'); return; } var sh_certificate_code_index = -1; for(let i = 0; i < sh_certificate_data.length; i++) { let obj = sh_certificate_data[i]; if(obj.sh_certificate_code == sh_certificate_code) { sh_certificate_code_index = i; break; } } if(sh_certificate_code_index < 0){ sh_certificate_logWarning('Certificate not found...'); return; } //console.log(sh_certificate_code_index); //console.log(sh_certificate_data[sh_certificate_code_index]); //return; var sh_certificate_id = sh_certificate_data[sh_certificate_code_index].sh_certificate_id; var sh_certificate_updated = sh_certificate_data[sh_certificate_code_index].sh_certificate_updated; var sh_certificate_updated_string = sh_certificate_data[sh_certificate_code_index].sh_certificate_updated_string; var sh_certificate_name = sh_certificate_data[sh_certificate_code_index].sh_certificate_name; var sh_certificate_code = sh_certificate_data[sh_certificate_code_index].sh_certificate_code; var sh_certificate_image = sh_certificate_data[sh_certificate_code_index].sh_certificate_image; var sh_certificate_image_url = sh_certificate_data[sh_certificate_code_index].sh_certificate_image_url; var sh_certificate_image_dark = sh_certificate_data[sh_certificate_code_index].sh_certificate_image_dark; var sh_certificate_image_dark_url = sh_certificate_data[sh_certificate_code_index].sh_certificate_image_dark_url; var sh_certificate_title = sh_certificate_data[sh_certificate_code_index].sh_certificate_title; var sh_certificate_sub_title = sh_certificate_data[sh_certificate_code_index].sh_certificate_sub_title; var sh_certificate_domain_title = sh_certificate_data[sh_certificate_code_index].sh_certificate_domain_title; var sh_certificate_company_title = sh_certificate_data[sh_certificate_code_index].sh_certificate_company_title; var sh_certificate_description = sh_certificate_data[sh_certificate_code_index].sh_certificate_description; var sh_certificate_footer_text = sh_certificate_data[sh_certificate_code_index].sh_certificate_footer_text; var sh_certificate_footer_link = sh_certificate_data[sh_certificate_code_index].sh_certificate_footer_link; var sh_certificate_footer_link_text = sh_certificate_data[sh_certificate_code_index].sh_certificate_footer_link_text; var sh_certificate_recipient_title = sh_certificate_data[sh_certificate_code_index].sh_certificate_recipient_title; var sh_certificate_recipient_text = sh_certificate_data[sh_certificate_code_index].sh_certificate_recipient_text; //console.log(sh_certificate_recipient_title); //console.log(sh_certificate_recipient_text); var sh_certificate_logo_custom_url = sh_certificate_image_url; // Datatag - Color var sh_certificate_DT_color = p_sh_certificate_placeholder.getAttribute('data-color'); if(sh_certificate_DT_color) { if(sh_certificate_DT_color == 'dark') { sh_certificate_logo_custom_url = sh_certificate_image_dark_url; } } var sh_certificate_container = document.createElement('a'); sh_certificate_container.setAttribute('href', 'https://events.svenskhandel.se'); sh_certificate_container.setAttribute('target', '_blank'); sh_certificate_container.setAttribute('role', 'button'); sh_certificate_container.style.cursor = 'pointer'; sh_certificate_container.style.display = 'inline-block'; sh_certificate_container.tabIndex = 0; sh_certificate_container.setAttribute('aria-label','Öppna utmärkelsen från Svensk Handel'); var sh_certificate_img = document.createElement('img'); sh_certificate_img.src = sh_certificate_logo_custom_url+'?v='+sh_certificate_cache_buster; sh_certificate_img.alt = sh_certificate_name; sh_certificate_img.style.display = 'inline-block'; sh_certificate_container.appendChild(sh_certificate_img); //p_sh_certificate_placeholder.appendChild(sh_certificate_container); // Datatag - Size var sh_certificate_DT_size = p_sh_certificate_placeholder.getAttribute('data-size'); var sh_certificate_logoSize = (!isNaN(sh_certificate_DT_size) && (function(x) { return (x | 0) === x; })(parseFloat(sh_certificate_DT_size))) ? sh_certificate_DT_size : 100; sh_certificate_img.style.width = sh_certificate_logoSize + 'px'; //sh_certificate_img.style.height = sh_certificate_logoSize + 'px'; sh_certificate_container.addEventListener('click', function(e) { e.preventDefault(); var sh_certificate_html = ''; sh_certificate_html += '

'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += ''; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'+sh_certificate_title+'
'; if(sh_certificate_sub_title) { sh_certificate_html += '
'+sh_certificate_sub_title+'
'; } sh_certificate_html += '
'; if(sh_certificate_domain_title) { //sh_certificate_html += '
'+sh_certificate_domain_title+': '+sh_certificate_HOST_TO_CHECK+'
'; } if(sh_certificate_company_title) { //sh_certificate_html += '
'+sh_certificate_company_title+': '+sh_certificate_company_name+'
'; } sh_certificate_html += '
'; sh_certificate_html += '
'; //if(sh_certificate_recipient_title || sh_certificate_recipient_text) { sh_certificate_html += '
'; if(sh_certificate_recipient_title) { sh_certificate_html += '
'+sh_certificate_recipient_title+'
'; } sh_certificate_html += '
'+sh_certificate_company_name+'
'; if(sh_certificate_recipient_text) { sh_certificate_html += '
'+sh_certificate_recipient_text+'
'; } sh_certificate_html += '
'; //} sh_certificate_html += '
'+sh_certificate_description+'
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += '
'+sh_certificate_footer_text+'
'; sh_certificate_html += '
'; sh_certificate_html += '
'; sh_certificate_html += ''; sh_certificate_html += '
'; sh_certificate_html += '
'; if(sh_certificate_footer_text && sh_certificate_footer_link && sh_certificate_footer_link_text) { sh_certificate_html += ''; } sh_certificate_html += '
'; sh_certificate_html += ''; sh_certificate_html += '
'; sh_certificate_html += '
'; var sh_certificate_wrapper = document.createElement('div'); sh_certificate_wrapper.className = 'sh-cleanslate sh-cert-wrapper'; sh_certificate_wrapper.innerHTML = sh_certificate_html; sh_certificate_wrapper.tabIndex = -1; sh_certificate_wrapper.setAttribute('role', 'dialog'); sh_certificate_wrapper.setAttribute('aria-labelledby', 'sh-modal-heading'); document.body.appendChild(sh_certificate_wrapper); document.body.className += ' sh-cert-noscroll'; sh_certificate_wrapper.focus(); // Click outbounds / closeBtn sh_certificate_wrapper.addEventListener('click', function(e) { if(e.target.className != this.className && e.target.getAttribute('class') != 'sh-cert-panel-close' && e.target.getAttribute('src') != sh_certificate_PAGE_ROOT_URL+'/js/close.svg?v='+sh_certificate_cache_buster) return; document.body.removeChild(this); document.body.className = document.body.className.replace('sh-cert-noscroll', ''); }); }); p_sh_certificate_placeholder.appendChild(sh_certificate_container); } function sh_certificate_addPlaceholders(p_sh_certificate_firstrun){ var teh_cur_certificate_placeholders = document.getElementsByClassName(sh_certificate_placeHolderClass); if(sh_certificate_isEmpty(teh_cur_certificate_placeholders) || teh_cur_certificate_placeholders.length == 0) return; for (var sh_certificate_placeholders_i = 0; sh_certificate_placeholders_i < teh_cur_certificate_placeholders.length; sh_certificate_placeholders_i++) { var teh_cur_certificate_placeholder = teh_cur_certificate_placeholders[sh_certificate_placeholders_i]; if(p_sh_certificate_firstrun) teh_cur_certificate_placeholder.innerHTML = ''; if(teh_cur_certificate_placeholder.hasChildNodes()) continue; sh_certificate_addPlaceholder(teh_cur_certificate_placeholder); } } sh_certificate_addPlaceholders(true); var sh_certificate_mo_node = document.body; var sh_certificate_mo_options = { childList: true, subtree: true }; if(sh_certificate_isEmpty(sh_certificate_mo_node)) return; new MutationObserver(function(p_sh_certificate_mutations){ this.disconnect(); // Class sh_certificate_addPlaceholders(false); this.observe(sh_certificate_mo_node, sh_certificate_mo_options); }).observe(sh_certificate_mo_node, sh_certificate_mo_options); })();