2019-01-08 15:06:23 -06:00
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
|
|
|
|
|
|
if (window.location.search.indexOf('rtl=true') > -1) {
|
|
|
|
|
document.documentElement.setAttribute('dir', 'rtl');
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-25 18:12:57 +02:00
|
|
|
if (window.location.search.indexOf('ionic:_testing=true') > -1) {
|
|
|
|
|
const style = document.createElement('style');
|
|
|
|
|
style.innerHTML = `
|
|
|
|
|
* {
|
|
|
|
|
caret-color: transparent !important;
|
|
|
|
|
}`;
|
|
|
|
|
document.head.appendChild(style);
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-19 11:48:29 -07:00
|
|
|
/**
|
|
|
|
|
* The term `palette` is used to as a param to match the
|
|
|
|
|
* Ionic docs, plus here is already a `ionic:theme` query being
|
|
|
|
|
* used for `md`, `ios`, and `ionic` themes.
|
|
|
|
|
*/
|
|
|
|
|
const palette = window.location.search.match(/palette=([a-z]+)/);
|
|
|
|
|
if (palette && palette[1] !== 'light') {
|
|
|
|
|
const linkTag = document.createElement('link');
|
|
|
|
|
linkTag.setAttribute('rel', 'stylesheet');
|
|
|
|
|
linkTag.setAttribute('type', 'text/css');
|
|
|
|
|
linkTag.setAttribute('href', `/css/palettes/${palette[1]}.always.css`);
|
|
|
|
|
document.head.appendChild(linkTag);
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-18 14:50:56 -05:00
|
|
|
window.Ionic = window.Ionic || {};
|
|
|
|
|
window.Ionic.config = window.Ionic.config || {};
|
|
|
|
|
|
2022-04-04 13:34:22 -04:00
|
|
|
window.addEventListener('appload', () => {
|
|
|
|
|
window.testAppLoaded = true;
|
|
|
|
|
})
|
2022-03-31 11:23:21 -04:00
|
|
|
})();
|