;(function($, undefined) { $.createOOPlugin("ialWindow", "ialWindowBase", { Constructor: function() { this.Super("Constructor", arguments); this.$node.addClass("ial-trans-gpu ial-effect-"+ologin.windowAnim); }, open: function() { this.Super("open", arguments); var node = this.$node[0], ialBg = this.$bg[0]; if (ologin.windowAnim == 17 || ologin.windowAnim == 18) { var $body = $(document.body), $fake = $('#fake-offlajn-body'), scroll = $(document).scrollTop(); var paddingB = $body.css('padding-top')+' '+$body.css('padding-right')+ ' '+$body.css('padding-bottom')+' '+$body.css('padding-left'); var marginB = $body.css('margin-top')+' '+$body.css('margin-right')+ ' '+$body.css('margin-bottom')+' '+$body.css('margin-left'); $('.selectBtn').css("position", "static"); $fake.css({ "display": "block", "position": "fixed", "width": "100%", "height": "100%", "-moz-box-sizing": "border-box", "-webkit-box-sizing": "border-box", "box-sizing":" border-box", "margin": marginB, "padding": paddingB, "overflow": "hidden" }); $body.css({margin: 0, padding: 0}); $body.children().each(function() { if (this != node && this != $fake[0]) $(this).appendTo($fake); }); $fake.addClass("go-to-back-"+ologin.windowAnim); $fake.scrollTop(scroll); } if (ologin.windowAnim == 19) $(document.body).children().each(function() { if ((this != node) && (this != ialBg)) $(this).css({ "-webkit-filter": "blur(3px)", "-moz-filter": "url('#blur')", "-ms-filter": "url('#blur')", "-o-filter": "url('#blur')", "filter": "url('#blur')" }); }); if (ologin.windowAnim == 20) $(document.body).children().each(function() { if ((this != node) && (this != ialBg)) $(this).css({ "-webkit-filter": "grayscale(100%)", "-moz-filter": "url('#grayscale')", "-ms-filter": "url('#grayscale')", "-o-filter": "url('#grayscale')", "filter": "url('#grayscale')" }); }); }, close: function() { if (!this.$node.hasClass(this.activeClass)) return; this.Super("close", arguments); if (ologin.windowAnim == 17 || ologin.windowAnim == 18) { var $fake = $('#fake-offlajn-body'), scroll = $fake.scrollTop(); $(document.body).css({margin:"", padding:""}); $fake.children().each(function() { $(this).appendTo(document.body); }); $fake.removeAttr("style").removeClass("go-to-back-"+ologin.windowAnim); $(document).scrollTop(scroll); } if (ologin.windowAnim == 19 || ologin.windowAnim == 20) { $(document.body).children().each(function() { $(this).css({ "-webkit-filter": "url()", "-moz-filter": "none", "-ms-filter": "none", "-o-filter": "none", "filter": "none" }); }); } } }); $.createOOPlugin("ialUsermenu", "ialWindowBase", { Constructor: function(params) { this.Super("Constructor", arguments); this.$node .addClass("ial-trans-gpu ial-effect-"+ologin.windowAnim); $('
').insertBefore($("a", this.$node)); $(".ial-load", this.$node).ialLoad(); $("a", this.$node).on("click", $.proxy(this, "onClickMenuItem")); $(".logout", this.node).on("click", $.proxy(this, "logout")); }, initPosition: function() { this.Super("initPosition", arguments); this.$node.css("marginLeft", this.leftSide? "3px" : "-3px"); }, logout: function() { $(".ial-logout:first").submit(); }, onClickMenuItem: function(e) { if($(e.currentTarget).attr('target')) return; $(e.currentTarget).css("background", "none").prev().ialLoad("play"); } }); $.createOOPlugin("ialLoginForm", "ialForm", { min: { width: 250, margin: 25 }, initProps: function() { var $form = $(".ial-form"); this.layout = $form.length? $form.data("ialForm").layout : this.min; if (this.layout.width < this.min.width) this.layout.width = this.min.width; if (this.layout.margin < this.min.margin) this.layout.margin = this.min.margin; this.layout.columns = 1; }, initElems: function() { if (ologin.windowAnim == 17 || ologin.windowAnim == 18) $('').prependTo(document.body); if (ologin.windowAnim == 19) $('').prependTo(document.body); if (ologin.windowAnim == 20) $('').prependTo(document.body); // cube rotating $(document.body).on("focus blur", ".loginTxt", function(e) { $(this.parentNode) [e.type == "focusin"? "addClass" : "removeClass"]("ial-active"); }); this.$node.find("input.ial-checkbox").ialCheckBox(); if (this.$node.prop('name') == 'ialLogin') { $(window).on('load', function() { //$([document.ialLogin.username, document.ialLogin.email]).val($('#saveduser').val()); $(document.ialLogin.password).val($('#savedpass').val()); $(document.saved).remove(); }); } } }); $.createOOPlugin("ialHeader", "ialElem", { tmpl: '