Skip to content

Instantly share code, notes, and snippets.

@mountainash
Created August 1, 2023 09:32
Show Gist options
  • Save mountainash/e575b5ecde0cb628e0c432e4e8e33465 to your computer and use it in GitHub Desktop.
Save mountainash/e575b5ecde0cb628e0c432e4e8e33465 to your computer and use it in GitHub Desktop.
Init7 Console Log - Get A Job
(function() {
if (window.console && window.console.log && !DEBUG) {
const data = {
logo: {
ascii: " _ _ _\n | | _ __ (_) _/ |_ _____\n | || '_ \\| ||_ _||___ |\n | || | | || | | |_ / /\n |_||_| |_||_| \\__| / /\n /_/",
binary: '01001001 01101110 01101001 01110100 00110111'
},
desc: {
de: 'Hallo Coder-Kollege! Bist du Nerdisch by nature und Intuitiv?\nCool - dann besuch doch {cta} und finde deinen Traumjob.\nWir freuen uns mit dir zu coden. ;-)',
fr: 'Salut ami codeur! Es-tu intuitif et nerd par nature?\nAlors visite {cta} et trouve l’emploi de tes rêves!\nAu plaisir de coder avec toi! ;-)',
en: 'Hello fellow coder! Are you a nerd by nature and intuitive?\nCool - then visit {cta} to find a job.\nWe\'re looking forward to coding with you! ;-)'
},
cta: {
de: '/de/init7/jobs/',
fr: '/fr/init7/jobs/',
en: '/en/init7/jobs/'
}
};
var design = isNerdMode() ? data.logo.binary : data.logo.ascii,
language = document.documentElement.lang,
spiel = data.desc[language].split('{cta}'),
href = location.protocol + '//' + location.hostname + data.cta[language];
spiel = spiel[0] + '%c' + href + '%c' + spiel[1];
let log = '%c' + design + '%c\n\n' + spiel + '\n';
console.log(log, 'font-family:monospace;color:#eb5a6d', 'color:#000', 'text-decoration:underline', 'text-decoration:none');
}
})();
@mountainash
Copy link
Author

Created in the COVID peak of 2020 this geeky advert matched the nerdy nature of the company

Example of English ASCII output in Safari.

Screenshot 2023-08-01 at 11 32 21 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment