diff options
Diffstat (limited to 'smarttv-client/Javascript/Notify.js')
-rw-r--r-- | smarttv-client/Javascript/Notify.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/smarttv-client/Javascript/Notify.js b/smarttv-client/Javascript/Notify.js new file mode 100644 index 0000000..0ebf857 --- /dev/null +++ b/smarttv-client/Javascript/Notify.js @@ -0,0 +1,28 @@ +var Notify = {
+ notifyOlHandler : null
+};
+
+
+Notify.init = function () {
+ this.notifyOlHandler = new OverlayHandler("NotifyHndl");
+ this.notifyOlHandler.init(Notify.handlerShowNotify, Notify.handlerHideNotify);
+
+};
+
+
+Notify.showNotify = function (msg, timer) {
+ $("#notify").text(msg);
+ if (timer == true)
+ this.notifyOlHandler.show();
+ else
+ $("#notify").show();
+};
+
+Notify.handlerShowNotify = function () {
+ $("#notify").show();
+};
+
+Notify.handlerHideNotify = function () {
+ $("#notify").hide();
+};
+
|