My odikro page online/offline & sweetalert