pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
33 lines (28 loc) • 973 B
JavaScript
;
var adapter = require('../environment/adapter.js');
var _const = require('./const.js');
;
let saidHello = false;
function sayHello(type) {
if (saidHello) {
return;
}
if (adapter.DOMAdapter.get().getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) {
const args = [
`%c %c %c %c %c PixiJS %c v${_const.VERSION} (${type}) http://www.pixijs.com/
`,
"background: #E72264; padding:5px 0;",
"background: #6CA2EA; padding:5px 0;",
"background: #B5D33D; padding:5px 0;",
"background: #FED23F; padding:5px 0;",
"color: #FFFFFF; background: #E72264; padding:5px 0;",
"color: #E72264; background: #FFFFFF; padding:5px 0;"
];
globalThis.console.log(...args);
} else if (globalThis.console) {
globalThis.console.log(`PixiJS ${_const.VERSION} - ${type} - http://www.pixijs.com/`);
}
saidHello = true;
}
exports.sayHello = sayHello;
//# sourceMappingURL=sayHello.js.map