PageSourceSearch

https://dike.gr/modules/mod_improved_ajax_login/themes/simple/theme.js?v=2.7.308

js dike.gr collected 2026-10-09 22:40:19 UTC 11,842 bytes, 324 lines download raw bytes

1;(function($, undefined) {
2
3$.createOOPlugin("ialWindow", "ialWindowBase", {
4  Constructor: function() {
5    this.Super("Constructor", arguments);
6    this.$node.addClass("ial-trans-gpu ial-effect-"+ologin.windowAnim);
7  },
8
9  open: function() {
10    this.Super("open", arguments);
11    var node = this.$node[0],
12        ialBg = this.$bg[0];
13    if (ologin.windowAnim == 17 || ologin.windowAnim == 18) {
14      var $body = $(document.body),
15          $fake = $('#fake-offlajn-body'),
16          scroll = $(document).scrollTop();
17      var paddingB = $body.css('padding-top')+' '+$body.css('padding-right')+
18        ' '+$body.css('padding-bottom')+' '+$body.css('padding-left');
19      var marginB = $body.css('margin-top')+' '+$body.css('margin-right')+
20        ' '+$body.css('margin-bottom')+' '+$body.css('margin-left');
21
22      $('.selectBtn').css("position", "static");
23      $fake.css({
24        "display": "block",
25        "position": "fixed",
26        "width": "100%",
27        "height": "100%",
28        "-webkit-box-sizing": "border-box",
29        "-moz-box-sizing": "border-box",
30        "box-sizing":" border-box",
31        "margin": marginB,
32        "padding": paddingB,
33        "overflow": "hidden"
34      });
35      $body.css({margin: 0, padding: 0});
36      $body.children().each(function() {
37        if (this != node && this != $fake[0]) $(this).appendTo($fake);
38      });
39      $fake.addClass("go-to-back-"+ologin.windowAnim);
40      $fake.scrollTop(scroll);
41    }
42    if (ologin.windowAnim == 19)
43      $(document.body).children().each(function() {
44        if ((this != node) && (this != ialBg))
45          $(this).css({
46            "-webkit-filter": "blur(3px)",
47            "-moz-filter": "url('#blur')",
48            "-ms-filter": "url('#blur')",
49            "-o-filter": "url('#blur')",
50            "filter": "url('#blur')"
51          });
52      });
53    if (ologin.windowAnim == 20)
54      $(document.body).children().each(function() {
55        if ((this != node) && (this != ialBg))
56          $(this).css({
57            "-webkit-filter": "grayscale(100%)",
58            "-moz-filter": "url('#grayscale')",
59            "-ms-filter": "url('#grayscale')",
60            "-o-filter": "url('#grayscale')",
61            "filter": "url('#grayscale')"
62          });
63      });
64  },
65
66  close: function() {
67    if (!this.$node.hasClass(this.activeClass)) return;
68    this.Super("close", arguments);
69    if (ologin.windowAnim == 17 || ologin.windowAnim == 18) {
70      var $fake = $('#fake-offlajn-body'),
71          scroll = $fake.scrollTop();
72
73      $(document.body).css({margin:"", padding:""});
74      $fake.children().each(function() {
75        $(this).appendTo(document.body);
76      });
77      $fake.removeAttr("style").removeClass("go-to-back-"+ologin.windowAnim);
78      $(document).scrollTop(scroll);
79    }
80    if (ologin.windowAnim == 19 || ologin.windowAnim == 20) {
81      $(document.body).children().each(function() {
82        $(this).css({
83          "-webkit-filter": "url()",
84          "-moz-filter": "none",
85          "-ms-filter": "none",
86          "-o-filter": "none",
87          "filter": "none"
88        });
89      });
90    }
91  }
92});
93
94$.createOOPlugin("ialUsermenu", "ialWindowBase", {
95  Constructor: function(params) {
96    params.border = 0;
97    this.Super("Constructor", arguments);
98    this.$node.addClass("ial-trans-gpu ial-effect-"+ologin.windowAnim);
99    $(".logout", this.node).on("click", $.proxy(this, "logout"));
100  },
101
102  logout: function() {
103    $(".ial-logout:first").submit();
104  }
105});
106
107$.createOOPlugin("ialLoginForm", "ialForm", {
108  min: {
109    width: 215,
110    margin: 13
111  },
112
113  initProps: function() {
114    var $form = $(".ial-form");
115    this.layout = $form.length? $form.data("ialForm").layout : this.min;
116    if (this.layout.width < this.min.width)
117      this.layout.width = this.min.width;
118    if (this.layout.margin < this.min.margin)
119      this.layout.margin = this.min.margin;
120    this.layout.columns = 1;
121  },
122
123  initElems: function() {
124    if ((ologin.windowAnim == 17 || ologin.windowAnim == 18) && !$('#fake-offlajn-body').length)
125      $('<div id="fake-offlajn-body" />').prependTo(document.body);
126    if (ologin.windowAnim == 19 && !$('#blur').length)
127      $('<svg width="0" height="0" style="position:absolute">'+
128          '<filter id="blur">'+
129            '<feGaussianBlur in="SourceGraphic" stdDeviation="3"/>'+
130          '</filter>'+
131        '</svg>').prependTo(document.body);
132    if (ologin.windowAnim == 20 && !$('#grayscale').length)
133      $('<svg width="0" height="0" style="position:absolute">'+
134          '<filter id="grayscale">'+
135            '<feColorMatrix type="saturate" values="0"/>'+
136          '</filter>'+
137        '</svg>').prependTo(document.body);
138    this.$node.find("input.ial-checkbox").ialCheckBox();
139    if (this.$node.prop('name') == 'ialLogin') {
140      $(window).on('load', function() {
141        $([document.ialLogin.username, document.ialLogin.email]).val($('#saveduser').val());
142        $(document.ialLogin.password).val($('#savedpass').val());
143        $(document.saved).remove();
144      });
145    }
146  }
147});
148
149$.createOOPlugin("ialHeader", "ialElem", {
150  tmpl:
151    '<h3 class="loginH3">'+
152      '<span data-attr="label" />'+
153      '<span data-attr="subtitle" class="smallTxt regRequired" />'+
154    '</h3>'
155});
156
157$.createOOPlugin("ialTextfield", "ialTextfieldBase", {
158  tmpl:
159    '<label data-attr="label required" class="smallTxt" />'+
160    '<input data-attr="id name title placeholder pattern value" class="loginTxt regTxt" type="text" />'+
161    '<div data-attr="error" class="hidden" />',
162
163  Constructor: function(params) {
164    this.Super("Constructor", arguments);
165    this.$input.attr('value', this.$input.val());
166    this.$input.wrap('<div class="ial-input-wrapper">');
167    if (this.$load) this.$load.insertAfter(this.$input);
168    this.$node.find('[data-attr*=label]').clone().insertAfter(this.$input);
169    this.$input.on('input blur', function() { this.attributes.value.value = this.value });
170  }
171});
172
173$.createOOPlugin("ialPassword1", "ialPassword1Base", {
174  tmpl:
175    '<label data-attr="label required" class="smallTxt" />'+
176    '<span class="smallTxt passStrongness" />'+
177    '<input data-attr="id name title placeholder" class="loginTxt regTxt" type="password" autocomplete="off" />'+
178    '<div data-attr="error" class="hidden" />'+
179    '<div class="strongFields">'+
180      new Array(6).join('<i class="empty strongField" />')+
181    '</div>',
182
183  Constructor: function(params) {
184    this.Super("Constructor", arguments);
185    this.$input.attr('value', this.$input.val());
186    this.$input.wrap('<div class="ial-input-wrapper">');
187    this.$sfs.parent().insertAfter(this.$input);
188    this.$node.find('[data-attr*=label]').clone().insertAfter(this.$input);
189    this.$input.on('input', function() { this.attributes.value.value = this.value });
190  }
191});
192
193$.createOOPlugin("ialPassword2", "ialTextfieldBase", {
194  tmpl:
195    '<label data-attr="label required" class="smallTxt" />'+
196    '<input data-attr="id name title placeholder value" class="loginTxt regTxt" type="password" autocomplete="off" />'+
197    '<div data-attr="error" class="hidden" />',
198
199  Constructor: function(params) {
200    this.Super("Constructor", arguments);
201    this.$input.attr('value', this.$input.val());
202    this.$input.wrap('<div class="ial-input-wrapper">');
203    this.$node.find('[data-attr*=label]').clone().insertAfter(this.$input);
204    this.$input.on('input', function() { this.attributes.value.value = this.value });
205  }
206});
207
208$.createOOPlugin("ialTextarea", "ialTextfieldBase", {
209  tmpl:
210    '<label data-attr="label required" class="smallTxt" />'+
211    '<textarea data-attr="name title value placeholder" class="loginTxt regTxt" />',
212
213  Constructor: function(params) {
214    this.Super("Constructor", arguments);
215    this.$input.wrap('<div class="ial-input-wrapper">');
216    this.$node.find('[data-attr*=label]').clone().insertAfter(this.$input);
217    this.$input.on('input', function() { $(this).toggleClass('ial-not-empty', !!this.value) }).trigger('input');
218  }
219});
220
221$.createOOPlugin("ialImage", "ialFileBase", {
222  tmpl:
223    '<label data-attr="label required" class="smallTxt"/>'+
224    '<div class="upload-wrapper">'+
225	    '<svg class="upload-logo" viewBox="0 0 17 16">'+
226	     '<path fill="currentColor" d="M-0,16 L-0,9.222 L2.705,9.222 L2.705,13.277 L14.295,13.277 L14.295,9.222 L17,9.222 L17,16 L-0,16 ZM10.358,11.154 L6.642,11.154 L6.642,5.583 L4.614,5.583 L8.500,-0 L12.386,5.583 L10.358,5.583 L10.358,11.154 Z"/>' +
227	    '</svg>'+
228	    '<input data-attr="name title value size" class="loginTxt regTxt" type="file" accept="image/*" />' +
229	    '<input class="loginTxt regTxt" data-attr="placeholder" type="text"/>' +
230	'</div>'
231});
232
233$.createOOPlugin("ialFile", "ialFileBase", {
234  tmpl:
235    '<label data-attr="label required" class="smallTxt"/>'+
236    '<div class="upload-wrapper">' +
237      '<svg class="upload-logo" viewBox="0 0 17 16">'+
238        '<path fill="currentColor" d="M-0,16 L-0,9.222 L2.705,9.222 L2.705,13.277 L14.295,13.277 L14.295,9.222 L17,9.222 L17,16 L-0,16 ZM10.358,11.154 L6.642,11.154 L6.642,5.583 L4.614,5.583 L8.500,-0 L12.386,5.583 L10.358,5.583 L10.358,11.154 Z"/>' +
239      '</svg>'+
240      '<input data-attr="name title value accept size" class="loginTxt regTxt" type="file" />' +
241      '<input class="loginTxt regTxt" data-attr="placeholder" type="text"/>' +
242    '</div>'
243});
244
245$.createOOPlugin("ialButton", "ialElem", {
246  tmpl:
247    '<label data-attr="subtitle" class="smallTxt" />'+
248    '<button class="loginBtn ial-submit" name="submit">'+
249      '<i class="ial-load"><i/></i>'+
250      '<span data-attr="label" />'+
251    '</button>'
252});
253
254$.createOOPlugin("ialLabel", "ialElem", {
255  tmpl: '<span data-attr="label" class="smallTxt" />'
256});
257
258$.createOOPlugin("ialCheckbox", "ialElem", {
259  tmpl:
260    '<label data-attr="title required" class="ial-check-lbl smallTxt">'+
261      '<input data-attr="id name value checked" type="checkbox" class="ial-checkbox" />'+
262      '<span data-attr="label" />'+
263    '</label>',
264
265  Constructor: function() {
266    this.Super("Constructor", arguments);
267    this.$input.ialCheckBox();
268  }
269});
270
271$.createOOPlugin("ialTos", "ialTosBase", {
272  tmpl:
273    '<label data-attr="title required" class="ial-check-lbl smallTxt">'+
274      '<input data-attr="id name value checked" type="checkbox" class="ial-checkbox" />'+
275      '<span data-attr="label" />'+
276    '</label>'+
277    '<a data-attr="article" class="forgetLnk selectBtn" href="javascript:;" onclick="return false" />'+
278    '<div class="ial-modal"><div class="loginWndInside"><iframe class="ial-frame" /></div><span class="ial-close" />',
279
280  Constructor: function() {
281    this.Super("Constructor", arguments);
282    this.$input.ialCheckBox();
283  }
284});
285
286$.createOOPlugin("ialSelect", "ialElem", {
287  tmpl:
288    '<label data-attr="label required" class="smallTxt" />'+
289    '<label class="ial-select">'+
290      '<select data-attr="id name title select" class="loginTxt" />'+
291    '</label>'
292});
293
294$.createOOPlugin("ialLoad", {
295  Constructor: function(params) {
296    $.extend(this, params);
297    if (this.autoplay) this.play();
298  },
299
300  playing: function() {
301    return this.$node.hasClass('ial-active');
302  },
303
304  play: function() {
305    this.$node.addClass('ial-active');
306    return true;
307  },
308
309  stop: function() {
310    this.$node.removeClass('ial-active');
311    if (this.onEndCallback) {
312      this.$node.next().attr("disabled", false);
313      this.onEndCallback();
314      delete this.onEndCallback;
315    }
316    return false;
317  },
318
319  onEnd: function(callback) {
320    this.onEndCallback = callback;
321  }
322});
323
324})(window.jq183 || jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.