Merge branch 'marie/uiupdate' into 'main'

Update LauncherUI to show everything instead of just social buttons

See merge request KRypt0n_/an-anime-game-launcher!6
This commit is contained in:
Observer KRypt0n_ 2021-11-29 15:11:04 +00:00
commit bc23067650
2 changed files with 7 additions and 5 deletions

View file

@ -31,7 +31,9 @@
</div> </div>
</div> </div>
<div id="launchcontent"></div> <div id="launchcontent">
<iframe id="socials" src="" scrolling="no" style="position: absolute; border: 0; top: 0; left: 0;" width="100%" height="100%"></iframe>
</div>
<div id="settings"> <div id="settings">
<img src="../images/gear.png" class="unactive"> <img src="../images/gear.png" class="unactive">

View file

@ -302,8 +302,8 @@ export default class LauncherUI
public static updateSocial (): void public static updateSocial (): void
{ {
const socialUri = `https://${constants.placeholders.lowercase.first}.${constants.placeholders.lowercase.company}.com/launcher/10/${LauncherLib.getConfig('lang.launcher')}?api_url=https%3A%2F%2Fapi-os-takumi.${constants.placeholders.lowercase.company}.com%2Fhk4e_global&key=gcStgarh&prev=false`; const socialUri = `https://${constants.placeholders.lowercase.first}.${constants.placeholders.lowercase.company}.com/launcher/10/${LauncherLib.getConfig('lang.launcher')}?api_url=https%3A%2F%2Fapi-os-takumi.${constants.placeholders.lowercase.company}.com%2Fhk4e_global&key=gcStgarh&prev=false`;
$('#socials').attr('src', socialUri);
fetch(socialUri) /* fetch(socialUri)
.then(res => res.text()) .then(res => res.text())
.then(body => { .then(body => {
$('#__layout').remove(); $('#__layout').remove();
@ -313,11 +313,11 @@ export default class LauncherUI
// TODO // TODO
/*$('#launchcontent .home__main .swiper-button-prev').on('click', () => { /*$('#launchcontent .home__main .swiper-button-prev').on('click', () => {
});*/ });
$('#launchcontent .home__main .home-swiper-wrap').remove(); $('#launchcontent .home__main .home-swiper-wrap').remove();
$('#launchcontent .home__main .home-news').remove(); $('#launchcontent .home__main .home-news').remove();
}); }); */
} }
public static updateLang (lang: string|null = null): void public static updateLang (lang: string|null = null): void