Warning: Creating default object from empty value in /var/www/html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php on line 28 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php:28) in /var/www/html/wp-content/plugins/sortere-mini-configurable-privat/sokeminiprivat.php on line 7 (function() { // NOTE: Connect search plugin script const searchScriptSetup = function() { const searchScript = document.createElement('script'); searchScript.setAttribute('src', 'https://sortere.no/wp-content/plugins/sortere-mini-configurable-privat/script.js'); searchScript.setAttribute('type','text/javascript'); document.getElementsByTagName('head')[0].appendChild(searchScript); } if (!window.jQuery) { // NOTE: No jQuery script connected const jQueryScript = document.createElement('script'); jQueryScript.setAttribute('src', 'https://sortere.no/wp-includes/js/jquery/jquery.min.js'); jQueryScript.setAttribute('type','text/javascript'); jQueryScript.onload = searchScriptSetup document.getElementsByTagName('head')[0].appendChild(jQueryScript); } else { // NOTE: jQuery already available searchScriptSetup() } const css = '@font-face { font-family: "GTPlanar"; src: url("https://sortere.no/fonts/GTPlanar/GTPlanar-Regular.woff2") format("woff2"), url("https://sortere.no/fonts/GTPlanar/GTPlanar-Regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; font-feature-settings: "salt" on, "ss01" on, "ss02" on, "ss03" on, "ss04" on; } @font-face { font-family: "GTPlanar"; src: url("https://sortere.no/fonts/GTPlanar/GTPlanar-Bold.woff2") format("woff2"), url("https://sortere.no/fonts/GTPlanar/GTPlanar-Bold.woff") format("woff"); font-style: normal; font-weight: 700; font-display: swap; font-feature-settings: "salt" on, "ss01" on, "ss02" on, "ss03" on, "ss04" on; } @font-face { font-family: "GTPlanar"; src: url("https://sortere.no/fonts/GTPlanar/GTPlanar-Italic.woff2") format("woff2"), url("https://sortere.no/fonts/GTPlanar/GTPlanar-Italic.woff") format("woff"); font-style: italic; font-weight: 400; font-display: swap; font-feature-settings: "salt" on, "ss01" on, "ss02" on, "ss03" on, "ss04" on; } @font-face { font-family: "GTPlanar"; src: url("https://sortere.no/fonts/GTPlanar/GTPlanar-BoldItalic.woff2") format("woff2"), url("https://sortere.no/fonts/GTPlanar/GTPlanar-BoldItalic.woff") format("woff"); font-style: italic; font-weight: 700; font-display: swap; font-feature-settings: "salt" on, "ss01" on, "ss02" on, "ss03" on, "ss04" on; } #sortere-soke-privat-wrapper { border: none !important; min-width: 200px !important; padding: 15px !important; border-radius: 3px !important; position: relative !important; font-family: "GTPlanar", "Verdana", sans-serif !important; } /* Resetting styles so that styles from the page that includes plugin doesnt apply */ #sortere-soke-privat-wrapper *, #sortere-soke-privat-wrapper *:before, #sortere-soke-privat-wrapper *:after { border: none; padding: 0; margin: 0; line-height: 1em; animation: none; background : none; box-shadow : none; clear: none; direction: ltr; font-weight: normal; height: auto; width: auto; left: auto; right: auto; top: auto; bottom: auto; float : none; opacity: 1; outline: 0; text-decoration: none; text-transform: none; visibility: visible; white-space: normal; z-index: auto } #sortere-soke-privat-wrapper input::placeholder { color: darkGray !important; /* default Chrome color */ } #sortere-soke-privat-wrapper * { box-sizing: border-box !important; margin: 0 !important; padding: 0 !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-form { flex: 1 0 auto !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-form form { border-bottom: 2px solid black !important; display: flex !important; position: relative !important; margin: 0 !important; background-color: none !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-form form svg { width: 23px; fill:none; } #sortere-soke-privat-wrapper #sortere-soke-privat-form form input { outline: none !important; height: 30px !important; line-height: 30px !important; -webkit-box-flex: 1 !important; flex-grow: 1 !important; padding: .25rem 0 !important; border: none !important; background: none !important; font-size: 14px !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-form form:focus-within { border-bottom-style: dashed !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-form form input:-ms-input-placeholder, #sortere-soke-privat-wrapper #sortere-soke-privat-form form input:-moz-placeholder, #sortere-soke-privat-wrapper #sortere-soke-privat-form form input::-moz-placeholder, #sortere-soke-privat-wrapper #sortere-soke-privat-form form input::-webkit-input-placeholder, #sortere-soke-privat-wrapper #sortere-soke-privat-form form input::placeholder { font-size: 14px !important; color: #757575 !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-box { display: flex !important; width: 100% !important; flex-direction: row !important; align-items: end !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-logo { padding-right: 15px !important; padding-bottom: 8px !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-inline-title { display: inline-block !important; vertical-align: middle !important; } #sortere-soke-privat-wrapper #soke-privat-title { color: black !important; font-size: 16px !important; line-height: 22px !important; } #sortere-soke-privat-wrapper #soke-privat-search-for:focus { outline: none !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-search-results { display: none; position: absolute !important; left: 155px !important; top: calc(100% - 14px) !important; width: calc(100% - 171px) !important; background: #fff !important; margin: 0 !important; z-index: 21 !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-search-results ul { margin: 0 !important; padding: 0 !important; list-style: none !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-search-results ul li { margin: 0 !important; display: flex !important; align-items: center !important; justify-content: space-between !important; outline: none !important; cursor: pointer; gap: 1rem } #sortere-soke-privat-wrapper #sortere-soke-privat-search-results ul li img { width: 2rem; height: 2rem; } #sortere-soke-privat-wrapper #sortere-soke-privat-search-results ul li a { font-size: 14px !important; border-bottom: 1px solid black !important; text-align: left !important; text-decoration: none !important; flex: 1 0 auto !important; display: flex; justify-content: space-between; align-items: baseline; } #sortere-soke-privat-wrapper #sortere-soke-privat-search-results ul li a span { line-height: 275% !important; color: black !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-search-results ul li a span:last-child { font-size: 18px; } #sortere-soke-privat-wrapper #sortere-soke-privat-search-results ul li:hover .sortere-soke-result-element-name, #sortere-soke-privat-wrapper #sortere-soke-privat-search-results ul li:focus .sortere-soke-result-element-name { font-style: italic !important; } #sortere-soke-privat-wrapper #sortere-soke-privat-spinner { display: none; position: absolute !important; top: 6px !important; right: 40px !important; width: 20px !important; height: 20px !important; animation: sorteresikeprivatrotate 0.8s infinite linear !important; border: 2px solid black !important; border-right-color: transparent !important; border-radius: 50% !important; } @keyframes sorteresikeprivatrotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }'; const style = document.createElement('style'); style.setAttribute('type', 'text/css'); if (style.styleSheet) { // NOTE: IE style.styleSheet.cssText = css; } else { // NOTE: Other browser style.appendChild(document.createTextNode(css)); } document.getElementsByTagName('head')[0].appendChild(style); const defaultConfig = { title: 'Hva vil du levere?', placeholder: 'Skriv inn hva du vil sortere og vi forteller deg hvordan' } // NOTE: Get plugin config function getConfig(key) { try { const config = JSON.parse(decodeURIComponent(atob('JTdCJTIydGl0bGUlMjI6JTIySHZhJTIwdmlsJTIwZHUlMjBsZXZlcmU'))); return config[key]; } catch (er) { return defaultConfig[key]; } } const htmlOutput = '
'; const formContainer = document.getElementById('mini-sortere-private-search'); formContainer.innerHTML = htmlOutput; // NOTE: Set title and placeholder document.getElementById('soke-privat-title').innerText = getConfig('title'); document.getElementById('soke-privat-search-for').placeholder = getConfig('placeholder'); window.sorterePluginUrlBase = 'https://sortere.no'; })();