mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Added several usage examples, fixed bugs, turned off restore by default
This commit is contained in:
parent
0e08b734ec
commit
416f7ab6a0
112 changed files with 23903 additions and 3348 deletions
36
libs/annotator/lib/plugin/unsupported.js
Normal file
36
libs/annotator/lib/plugin/unsupported.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
// Generated by CoffeeScript 1.6.3
|
||||
var _ref,
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
||||
|
||||
Annotator.Plugin.Unsupported = (function(_super) {
|
||||
__extends(Unsupported, _super);
|
||||
|
||||
function Unsupported() {
|
||||
_ref = Unsupported.__super__.constructor.apply(this, arguments);
|
||||
return _ref;
|
||||
}
|
||||
|
||||
Unsupported.prototype.options = {
|
||||
message: Annotator._t("Sorry your current browser does not support the Annotator")
|
||||
};
|
||||
|
||||
Unsupported.prototype.pluginInit = function() {
|
||||
var _this = this;
|
||||
if (!Annotator.supported()) {
|
||||
return $(function() {
|
||||
Annotator.showNotification(_this.options.message);
|
||||
if ((window.XMLHttpRequest === void 0) && (ActiveXObject !== void 0)) {
|
||||
return $('html').addClass('ie6');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
return Unsupported;
|
||||
|
||||
})(Annotator.Plugin);
|
||||
|
||||
/*
|
||||
//@ sourceMappingURL=unsupported.map
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue