-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
63 lines (51 loc) · 8.25 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
'use strict';
/**
* Вывод "Wezom" баннера в консоли браузера
* @module modulesWezomLog
*/
(function (window) {
const userAgent = window.navigator.userAgent.toLowerCase();
const staticText = 'Агенство системных интернет-решений';
const staticUrl = '> https://wezom.com.ua/';
const staticLine = '----------------------------';
const isWebkit = (function (ua) {
let webkit = 'WebkitAppearance' in document.body.style;
let notEdge = !(ua.indexOf(' edge/') > 0);
return webkit && notEdge;
})(userAgent);
const isIeOrEdge = (function (ua) {
let ie = document.documentMode; // eslint-disable-line
let edge = (ua.indexOf(' edge/') > 0);
return ie || edge;
})(userAgent);
if (isIeOrEdge) {
window.console.info(staticText);
window.console.info(staticUrl);
window.console.log(staticLine);
} else if (isWebkit) {
let title = '%c';
for (let i = 0; i < 12; i++) {
title += ' ';
}
window.console.info(staticUrl);
window.console.log(title, 'font: 75px/100% sans-serif; background: no-repeat url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAMCAggICQgICAgICAgICAgICAgICAgICAgICAgICAcICAgICAgICAgICAgICAoICAgICQkKCAgLDQoIDQgICQgBAwQEBgUGCAUGCAgICAgICAgICBQICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICP/AABEIAEsA+gMBEQACEQEDEQH/xAAdAAEAAQUBAQEAAAAAAAAAAAAABwQFBggJAQMC/8QAQhAAAgIBAwIEAgUKBAMJAAAAAgMBBAAFERIGEwcIFCEiMQkVMkHUGBkjNVFUVZKUtGF1hLEkM1IWFyVCQ3FygqT/xAAcAQEAAgIDAQAAAAAAAAAAAAAAAQcFBgMECAL/xAA4EQEAAQIDAgoJBAIDAAAAAAAAAQ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yxwYsh75zM8m7cy3neZ3wLN074C6RWO60KFZjdQdYdbc5CWtd6l3qGJJhL5lXF2xggpkAmImI3jfAvGr+F2mWJEn6dQeQPKyEup12SFk+POwMmspF5cA5NjY54DvM8Y2Cu1Ho+sxNqv2gWu6Los9oRWTZsB23MKRiN2mPtLC3Kdo3mdowMY0fy/wCiJpr06NK086a5WfZbTrMBjlrhQ2XCSuLbMhGxPIZYXvuXvgVGp+BOhvZLnaNpTnFIyTW6dTY0pGIEZlhpkpkRERjefaIiI+UYFx/7rdM7rrH1dQ9RYJZWH+jr955KYDkk5vb5tJbVKaEmRSBrAo2kBmA+5+Henzz3o057kMhm9VE9yGvm02D+D4oZambJwW/N0yydy+LAqtP6RqJMWKq11MHv8TWhYGPqmi+3xIRgo9S4Ac7af0rBEy5FETgXfAYDAYDAYDAYDAYDAYDAYGv3nc8Nb2q6R6XT0TYf6pDO3BrCeAQfIuTTAfbePblv75hs1sV37OxRGs7m4cFcdZwWOi/fq2aIpmNe5oB+RL1T/CWf1NL8TmmcU4nqeK7eV2WfGjuk/Il6p/hLP6ml+JxxTiep4nK7LPjeEn5EvVP8JZ/U0vxOOKcT1PE5XZZ8bwk/Il6p/hLP6ml+JxxTiep4nK7LPjeEn5EvVP8ACWf1NL8TjinE9TxOV2WfG8JZX4S+T3qSvqemWHaYYJRqFJzTmxUmAUqyo2FsNiSniAzOwxMzt7ROdrC5ZiKL1FVVOkROs72IzfhPl9/B3rNu7rVXTMUxpO+dJdU4jLBeePzL9ZKTAYDAYDAYDAYDAYDAYDAYDAYDAYDAYDAYDAYHm2A2wG2A2wG2A2wPcBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMBgMD/9k=); background-size: 100%');
} else {
const title = 'WEZOM';
const banner = `\n%c${title.split('').join('%c %c')}%c\n`;
const styler = [];
const symbol = [
'font:32px/1.5 Helvetica,Arial,sans-serif',
'color:#fff',
'background-color:#bb1919',
'padding:4px 14px'
].join(';');
title.split('').forEach(arg => {
styler.push(symbol);
styler.push('');
});
window.console.log(banner, ...styler);
window.console.log(staticText);
window.console.log(staticUrl);
window.console.log(staticLine);
}
})(window);