Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let browser = new InAppBrowser('http://mywebsite.com/', '_blank', 'location=no, zoom=no');
- browser.on('loadstart').subscribe((e)=>{
- console.log('Carregando nova página.');
- SpinnerDialog.show(null, "Carregando a página...");
- });
- browser.on('loadstop').subscribe((e)=>{
- console.log('Página carregada.');
- SpinnerDialog.hide();
- if(e.url.includes('mywebsite.com/Segmentado')){
- console.log('Loja Segmentado. '+e.url);
- browser.insertCss({
- code: `
- table.tabRodape {
- width: 100%;
- }
- footer.rodape img {
- width: 100%;
- }
- div#divBlackNovember img {
- width: 100%;
- }
- `
- }).then((e)=>{ console.log('CSS adicionado.'); }).catch((e)=>{ console.log('Erro ao adicionar CSS. '+e); });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement