Skip to content

Instantly share code, notes, and snippets.

Michael Dorchain mdorchain

  • Philipppines
View GitHub Profile
View sliding-segments.page.html
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
Demo
</ion-title>
</ion-toolbar>
</ion-header>
@mdorchain
mdorchain / appp-custom.js
Last active Mar 30, 2018
Apppresser Offline
View appp-custom.js
var is_offline = false;
var enableOfflineScreen = true;
//When device is offline
function goOffline() {
is_offline = true;
var appBody = document.getElementsByTagName( 'body' )[0];
//Set body class
appBody.classList.add( "app-offline" );
View gist:7bef35640327f640c2f2729a42b812c1
# BEGIN WP Rocket v2.10.9
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset UTF-8
# Force UTF-8 for a number of file formats
<IfModule mod_mime.c>
AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
</IfModule>
# FileETag None is not enough for every server.
You can’t perform that action at this time.