.run(function($ionicPlatform, $ionicLoading){
$ionicPlatform.ready(function() {
var ref = window.open("http://mywebsitehere.com/", "_blank","location=no");
ref.addEventListener("loadstart", function() {
ref.insertCSS({
code: "body{background:#000;color:#fff;font-size:72px;}body:after{content:'loading...';position:absolute;bottom:50%;left:0;right:0; text-align: center; vertical-align: middle;}"
});
});
ref.addEventListener("loadstop", function() {
ref.insertCSS({
code: ""
});
});
ref.addEventListener("loaderror", function(){
ref.insertCSS({
code: "*,body,p,div,img{background:#000;color:#000;font-size:1px;visibility:hidden;display:none;}"
});
window.location = "retry.html";
});
ref.addEventListener("exit", function() {
ionic.Platform.exitApp();
});
});
})
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.