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">
31 lines (27 loc) • 937 B
JavaScript
import { DOMAdapter } from '../environment/adapter.mjs';
import { VERSION } from './const.mjs';
;
let saidHello = false;
function sayHello(type) {
if (saidHello) {
return;
}
if (DOMAdapter.get().getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) {
const args = [
`%c %c %c %c %c PixiJS %c v${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 ${VERSION} - ${type} - http://www.pixijs.com/`);
}
saidHello = true;
}
export { sayHello };
//# sourceMappingURL=sayHello.mjs.map