function createContainer(d, id, domTag, styles){ var container = d.createElement(domTag); container.id = id; container.style.position = styles.position; container.style.width = styles.width+'px'; container.style.height = styles.height+'px'; container.style.bottom = styles.bottom+'px'; container.style.right = styles.right+'px'; container.style.zIndex = styles.zIndex; container.style.backgroundColor = styles.backgroundColor; //return d.body.appendChild(container); return d.getElementsByTagName("head")[0].appendChild(container); } function createScript(d, src){ var s = d.createElement('script'); s.charset = 'utf-8'; s.src = src; return s; } function createIframeWithScript(d, id, dragboxScriptSrc){ var i = d.createElement('iframe'); i.id = id; i.style.display = 'none'; //d.body.appendChild(i); d.getElementsByTagName("head")[0].appendChild(i); i.contentWindow.document.open("text/html", "replace"); i.contentWindow.document.write(unescape("%3C%21doctype%20html%3E%3Chead%3E%3C/head%3E%3Cbody%3E%3C/body%3E%3C/html%3E")); i.contentWindow.document.close(); var dragboxScript = createScript(d, dragboxScriptSrc); i.contentWindow.document.head.appendChild(dragboxScript); return i; } function insertScript(d, ScriptSrc){ var s = createScript(d, ScriptSrc); d.getElementsByTagName("head")[0].appendChild(s); //d.head.appendChild(s); return s; } function createStyle(w, id, styles){ var styleTag = w.document.createElement("style"); styleTag.id = u; styleTag.type = "text/css"; if(styleTag.styleSheet){styleTag.styleSheet.cssText = styles } else { styleTag.appendChild(document.createTextNode(styles)); } return styleTag } function createLink(w, rel, src){ var d = w.document; var linkTag = d.createElement("link"); linkTag.rel = rel; linkTag.href = src; return linkTag; } function isRealBrowser() { return navigator && navigator.userAgent && /bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent) } !(function(w, d, n, u, u2, a){ w[n] = w[n] || function() { (w[n].q = w[n].q || []).push(arguments) }, w[n].l = 1 * new Date(); w[n].av = "https\x3A\x2F\x2Friminder.net\x2F\x2Fsf\x2Fuploads\x2Fuser\x2Favatar\x2Fec020df39f68a2701ee611d972ded88bff6da53e.png" w[n].api = "https\x3A\x2F\x2Friminder.net\x2Fsf\x2Fapi\x2Fpublic\x2Fprofile\x3FhashId\x3D5dab89c2dd5cd5eca65d53b96d074c29c8ec9dfa" w[n].api = "https\x3A\x2F\x2Friminder.net\x2Fsf\x2Fapi\x2Fpublic\x2Fprofile\x3FhashId\x3D5dab89c2dd5cd5eca65d53b96d074c29c8ec9dfa"; w[n].jobRecomendationsFeatureIsActive = false; //(bool) Afficher ou non les recommendations d'offres w[n].powerByRiminderLinkHref = "https\x3A\x2F\x2Friminder.net\x2F\x3Futm_source\x3DKima\x20Ventures\x26utm_medium\x3Dchatbot\x26utm_campaign\x3DKima\x20Ventures\x26utm_term\x3DKima\x20Ventures"; //(string / URL)Paramètre href du lien "Powered by Riminder" w[n].screenSide = "left"; //(string: "left" or "right") Côté de l'écran où afficher la popup w[n].millisecondsBeforeAutomount = 3000; //(int) nombre de millisecondes avant mounting de la popup // pb taille w[n].widgetName = "work with us?"; //(string) Texte affiché dans le bouton / La "pillule" qui lance la popup w[n].highlightColor = "#3CA890"; //(string / CSS color) Couleur de "highlight" choisie par l'utilisateur w[n].headerTitle = "Work\x20with\x20Kima\x20Ventures"; //(string) Le texte à afficher dans le header de la popup ouverte Exemple: Work with Riminder w[n].recruiterAvatar = "https\x3A\x2F\x2Friminder.net\x2F\x2Fsf\x2Fuploads\x2Fuser\x2Favatar\x2Fec020df39f68a2701ee611d972ded88bff6da53e.png"; // (string / URL) URL de l'image servant d'avatar pour le recruteur (la personne physique) w[n].recruiterName = ""; //(string) Nom du recruteur Exemple: Mouhidine Seiv w[n].recruiterFunction = "HR\x20DIVISION"; //(string) Poste / Fonction du recruteur au sein de la compagnie Exemple : CEO at Riminder w[n].recruiterCompanyLogo = "https\x3A\x2F\x2Friminder.net\x2F\x2Fsf\x2Fuploads\x2Fcompany\x2Flogo\x2Fb0f2e4e0471ce08228d7e208e38131d235edde33.png"; //(string / URL) RL du logo de la compagnie w[n].messages = { welcome: "We are hiring!", //"Hi, we are recruiting. We love talented and smart people.", joinUs: "We\x20love\x20talented\x20and\x20smart\x20people.\x20If\x20you\x20want\x20to\x20join\x20our\x20mission,\x20please\x20drop\x20your\x20resume\x20in\x20the\x20right\x20zone.",//"If you want to join our mission, please drop your resume below !", cvUploadSuccess: "Thank\x20you\x20for\x20your\x20application\x21\x20We\x20will\x20get\x20back\x20to\x20you\x20as\x20soon\x20as\x20possible.",//"Thanks for your submission, we will get back to you shortly.", lastJobOffers: "Here is a selection of our last job offers", } // (Objet) : // - welcome: "Hi, we are recruiting. We love talented and smart people." // Premier message, visible dans la popup réduite // - joinUs: "If you want to join our mission, please drop your resume below !" // Second message à l'ouverture de la popup. Ne s'afiche pas si un CV est droppé avant d'ouvrir la popup // - cvUploadSuccess: "Thanks for your submission, we will get back to you shortly." // Message de confirmation envoyé après l'upload du CV // - lastJobOffers: "Here is a selection of our last job offers" // Message précédent l'affichage des offres d'emploi const styles = { position: "fixed", width: 150, height: 180, bottom: 0, left: 0, zIndex: 99999, backgroundColor: "#3ca890" } if(isRealBrowser){ //var dragboxContainer = createContainer(d, 'dragbox-container', 'div', styles); var iframe = createIframeWithScript(d, 'dragbox-riminder', u); var externalCss = createLink(w, 'stylesheet', u2); var script = insertScript(d, a); d.head.appendChild(externalCss); } })(window, document, "drgbx", "https\x3A\x2F\x2Fwww.riminder.net\x2Fsf\x2Fjs\x2Fdragbox.js", "https\x3A\x2F\x2Fwww.riminder.net\x2Fsf\x2Fcss\x2Fdragbox.css", "https\x3A\x2F\x2Fwwww.riminder.net\x2Fsf\x2Fjs\x2Fanalytics.js")