this.ready();\r
$("#main").css('visibility', 'visible');\r
this.hideLoader(0, true);\r
- $("#splash").css('opacity', 0).one(this.support.getTransitionEndEvent(), function() {\r
+ $("#splash").css('opacity', 0).one(this.support.getTransitionEndEvent(true), function() {\r
$(this).remove();\r
});\r
},\r
}
FluidbookSupport.prototype = {
- getTransitionEndEvent: function() {
- fb(this.transitionEndEvent);
- return this.transitionEndEvent;
+ getTransitionEndEvent: function(all) {
+ if (all == undefined) {
+ all = false;
+ }
+ if (!all) {
+ return this.transitionEndEvent;
+ }
+ return "webkitTransitionEnd transitionend oTransitionEnd msTransitionEnd transitionEnd";
},
hasNetwork: function() {
if (navigator.onLine != undefined) {
$(window).resize(function() {
resize();
});
- return;
- }
+ } else {
- if ("onorientationchange" in window) {
- window.addEventListener('orientationchange', function() {
- if ($this.iOS) {
- resize();
- } else {
- resize();
- setTimeout(function() {
+ if ("onorientationchange" in window) {
+ window.addEventListener('orientationchange', function() {
+ if ($this.iOS) {
resize();
- }, 750);
- }
- }, false);
- } else {
- setInterval(function() {
- $this.checkOrientation();
- }, 100);
+ } else {
+ resize();
+ setTimeout(function() {
+ resize();
+ }, 750);
+ }
+ }, false);
+ } else {
+ setInterval(function() {
+ $this.checkOrientation();
+ }, 100);
+ }
}
-
// Test transition end event
var div = document.createElement('div');
div.id = "my-transition-test";
$('#my-transition-test').one("webkitTransitionEnd transitionend oTransitionEnd msTransitionEnd transitionEnd", function(e) {
if ($this.transitionEndEvent !== e.type) {
$this.transitionEndEvent = e.type;
+ fb($this.transitionEndEvent);
}
window.document.body.removeChild(div);
});