# ItemTable

key: Heaven_banners
value:
  {"oil-rush-banner-v1":{"def_path":"banners/oil-rush-v1/","def_file":"oil-rush-v1.banner","place":"banner","manifest":{"name":"oil-rush-banner-v1","delay":10000,"content_uri":"content.html","style_uri":"style.css","code_uri":"code.js"},"content":"<div id=\"oil-rush-banner\">\r\n\t<div class=\"banner-background\"></div>\r\n\t<div class=\"banner-shadow\"></div>\r\n\t<div class=\"banner-logo-game\"></div>\r\n\t<div class=\"banner-logo-unigine\"></div>\r\n\t<div class=\"banner-border\"></div>\r\n\t<div class=\"banner-button-play\"><a href=\"http://unigine.com/refer/heaven30oilrush-buy/\" class=\"banner-button-play-trigger\"></a></div>\r\n\t<div class=\"banner-button-watch\"><a href=\"http://unigine.com/refer/heaven30oilrush-video/\" class=\"banner-button-watch-trigger\"></a></div>\r\n\t<div class=\"banner-main-link\"><a href=\"http://unigine.com/refer/heaven30oilrush/\"></a></div>\r\n</div>\r\n","style":"#oil-rush-banner {\r\n\tposition: absolute;\r\n\ttop: 0px;\r\n\tleft: 0px;\r\n\tdisplay: block;\r\n\twidth: 750px;\r\n\theight: 83px;\r\n\toverflow: hidden;\r\n\tbackground: white;\r\n}\r\n\r\n#oil-rush-banner * {\r\n    border: 0 none;\r\n}\r\n\r\n#oil-rush-banner .banner-background {\r\n\tposition: absolute;\r\n\ttop: -10px;\r\n\tleft: -10px;\r\n\tdisplay: block;\r\n\twidth: 780px;\r\n\theight: 113px;\r\n\t/*background: url(images/background.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 187120 characters]) no-repeat center center;\r\n}\r\n\r\n#oil-rush-banner .banner-shadow {\r\n\tposition: absolute;\r\n\ttop: 0px;\r\n\tleft: 0px;\r\n\tdisplay: block;\r\n\twidth: 750px;\r\n\theight: 83px;\r\n\t/*background: url(images/shadow_under_border.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 23092 characters]) no-repeat center center;\r\n}\r\n\r\n#oil-rush-banner .banner-border {\r\n\tposition: absolute;\r\n\ttop: 0px;\r\n\tleft: 0px;\r\n\tdisplay: block;\r\n\twidth: 750px;\r\n\theight: 83px;\r\n\t/*background: url(images/border.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 50184 characters]) no-repeat center center;\r\n}\r\n\r\n#oil-rush-banner .banner-logo-game {\r\n\tposition: absolute;\r\n\ttop: -13px;\r\n\tleft: 0px;\r\n\tdisplay: block;\r\n\twidth: 384px;\r\n\theight: 200px;\r\n\t/*background: url(images/logo_oil_rush.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 110788 characters]) no-repeat center center;\r\n}\r\n\r\n#oil-rush-banner .banner-logo-unigine {\r\n\tposition: absolute;\r\n\topacity: 0;\r\n\ttop: -27px;\r\n\tleft: 0px;\r\n\tdisplay: block;\r\n\twidth: 351px;\r\n\theight: 68px;\r\n\t/*background: url(images/text_unigine_powered.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 37148 characters]) no-repeat center center;\r\n}\r\n\r\n#oil-rush-banner .banner-button-play {\r\n\tposition: absolute;\r\n\tbottom: 0px;\r\n\tright: 0px;\r\n\tdisplay: block;\r\n\twidth: 276px;\r\n\theight: 66px;\r\n\t/*background: url(images/button_play_now_simple.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 24180 characters]) no-repeat center center;\r\n}\r\n\r\n#oil-rush-banner .banner-button-play-trigger {\r\n\tposition: absolute;\r\n\ttop: 29px;\r\n\tleft: 42px;\r\n\tdisplay: block;\r\n\twidth: 216px;\r\n\theight: 37px;\r\n}\t\r\n#oil-rush-banner .banner-button-play-trigger:hover {\r\n\t/*background: url(images/button_play_now_selected.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 31436 characters]) no-repeat -42px -29px;\r\n}\r\n\r\n#oil-rush-banner .banner-button-watch {\r\n\tposition: absolute;\r\n\ttop: 0px;\r\n\tright: 15px;\r\n\tdisplay: block;\r\n\twidth: 349px;\r\n\theight: 50px;\r\n\t/*background: url(images/button_watch_trailer_simple.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 24248 characters]) no-repeat center center;\r\n}\r\n\r\n#oil-rush-banner .banner-button-watch-trigger {\r\n\tposition: absolute;\r\n\ttop: 0px;\r\n\tleft: 97px;\r\n\tdisplay: block;\r\n\twidth: 222px;\r\n\theight: 31px;\r\n}\r\n#oil-rush-banner .banner-button-watch-trigger:hover {\r\n\t/*background: url(images/button_watch_trailer_selected.png) no-repeat center center;*/\r\n\tbackground: url(data:image/png;base64,[encoded data, 32124 characters]) no-repeat -97px 0px;\r\n}\r\n\r\n#oil-rush-banner .banner-main-link {\r\n\tposition: absolute;\r\n\ttop: 0px;\r\n\tleft: 0px;\r\n\twidth: 470px;\r\n\theight: 83px;\r\n}\r\n\r\n#oil-rush-banner .banner-main-link a {\r\n\tdisplay: block;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}","code":"/* bannerOilRush\r\n */\r\nfunction bannerOilRush() {\r\n\t/*\r\n\tfields\r\n\t */\r\n\tthis.button_speed = 1500;\r\n\tthis.logo_speed = 700;\r\n\tthis.page_dellay = 3000;\r\n\tthis.container = null;\r\n\tthis.is_stoped = false;\r\n\r\n\t/*\r\n\t */\r\n\tthis.init = function ($container) {\r\n\t\tvar self = this;\r\n\t\tself.container = $container;\r\n\t\tself._prepare();\r\n\t\tself.is_stoped = false;\r\n\t};\r\n\r\n\t/*\r\n\t*/\r\n\tthis.shutdown = function () {\r\n\t\tvar self = this;\r\n\t\tself._prepare();\r\n\t\tself.container = null;\r\n\t\tself.is_stoped = true;\r\n\t};\r\n\r\n\t/*\r\n\t*/\r\n\tthis.play = function () {\r\n\t\tvar self = this;\r\n\t\tself._prepare();\r\n\t\tself._animate_button_paly();\r\n\t\tself._animate_button_watch();\r\n\t\tself._animate_logo_game();\r\n\t};\r\n\r\n\t/*\r\n\t */\r\n\tthis._prepare = function () {\r\n\t\tvar self = this;\r\n\t\t$('.banner-button-play', self.container)\r\n\t\t\t\t.stop(true, false)\r\n\t\t\t\t.css('bottom', '-66px');\r\n\r\n\t\t$('.banner-button-watch', self.container)\r\n\t\t\t\t.stop(true, false)\r\n\t\t\t\t.css('top', '-50px');\r\n\r\n\t\t$(\".banner-logo-game\", self.container)\r\n\t\t\t.stop(true, false)\r\n\t\t\t.css('top', '-109px')\r\n\t\t\t.css('opacity', '0');\r\n\r\n\t\t$(\".banner-logo-unigine\", self.container)\r\n\t\t\t.stop(true, false)\r\n\t\t\t.css('top', '-27px')\r\n\t\t\t.css('opacity', '0');\r\n\t}\r\n\r\n\t/*\r\n\t */\r\n\tthis._animate_button_paly = function () {\r\n\t\tvar self = this;\r\n\t\tif (self.is_stoped) {\r\n\t\t\tself._prepare();\r\n\t\t\treturn; \r\n\t\t}\r\n\t\t$('.banner-button-play', self.container)\r\n\t\t\t.animate({ bottom: 0 }, self.button_speed, \"easeInOutBounce\");\r\n\t};\r\n\r\n\t/*\r\n\t */\r\n\tthis._animate_button_watch = function () {\r\n\t\tvar self = this;\r\n\t\tif (self.is_stoped) {\r\n\t\t\tself._prepare();\r\n\t\t\treturn; \r\n\t\t}\r\n\t\t$('.banner-button-watch', self.container)\r\n\t\t\t.animate({ top: 0 }, self.button_speed, \"easeInOutBounce\",function(){ if (self.is_stoped) { self._prepare(); }});\r\n\t};\r\n\r\n\t/*\r\n\t */\r\n\tthis._animate_logo_game = function () {\r\n\t\tvar self = this;\r\n\t\t$(\".banner-logo-game\", self.container)\r\n\t\t\t.animate({ top: -53, opacity: 1 }, self.logo_speed, \"linear\",function(){ if (self.is_stoped) { self._prepare() }})\r\n\t\t\t.delay(self.page_dellay)\r\n\t\t\t.animate({ top: -5, opacity: 0.5 }, self.logo_speed * 0.5, \"linear\",function() { \r\n\t\t\t\tif (self.is_stoped) { \r\n\t\t\t\t\tself._prepare();\r\n\t\t\t\t\treturn; \r\n\t\t\t\t} \r\n\t\t\t\tself._animate_logo_unigine();\r\n\t\t\t})\r\n\t\t\t.animate({ top: 46, opacity: 0 }, self.logo_speed * 0.5, \"linear\")\r\n\t\t\t.animate({ top: -96, opacity: 0 }, self.page_dellay + self.logo_speed * 0.5, \"linear\", function() { \r\n\t\t\t\tif (self.is_stoped) { \r\n\t\t\t\t\tself._prepare();\r\n\t\t\t\t\treturn; \r\n\t\t\t\t}\r\n\t\t\t\tself._animate_logo_game() \r\n\t\t\t});\r\n\t};\r\n\r\n\t/*\r\n\t */\r\n\tthis._animate_logo_unigine = function () {\r\n\t\tvar self = this;\r\n\t\t$(\".banner-logo-unigine\", self.container)\r\n\t\t\t.animate({ top: 7, opacity: 1 }, self.logo_speed, \"linear\",function(){ if (self.is_stoped) { self._prepare(); }})\r\n\t\t\t.delay(self.page_dellay)\r\n\t\t\t.animate({ top: 80, opacity: 0 }, self.logo_speed, \"linear\",function(){ if (self.is_stoped) { self._prepare(); }})\r\n\t\t\t.animate({ top: -27, opacity: 0 }, 100, \"linear\");\r\n\t};\r\n}\r\n\r\n// create object\r\nnew bannerOilRush();\r\n"},"update-v1":{"def_path":"banners/update/","def_file":"update.banner","place":"update","manifest":{"name":"update-v1","delay":10000,"content_uri":"content.html","style_uri":"style.css"},"content":"<div id=\"new-version-banner\">\r\n\t<div>New version <span class=\"version\"></span> is available</div>\r\n</div>\r\n","style":"#new-version-banner {\r\n\tposition: absolute;\r\n\ttop: 20px;\r\n\tleft: 20px;\r\n\tdisplay: block;\r\n\twidth: 150px;\r\n\theight: 40px;\r\n\toverflow: hidden;\r\n\tbackground: white;\r\n\tpadding: 15px;\r\n\tbackground: black;\r\n\tborder: 1px solid white;\r\n}"}}


