Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var DTmonths = ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'];
- (function (e)
- {
- e.fn.hoverIntent = function (t, n, r)
- {
- var i = {
- interval: 100,
- sensitivity: 7,
- timeout: 0
- };
- if (typeof t === "object")
- {
- i = e.extend(i, t)
- }
- else if (e.isFunction(n))
- {
- i = e.extend(i, {
- over: t,
- out: n,
- selector: r
- })
- }
- else
- {
- i = e.extend(i, {
- over: t,
- out: t,
- selector: n
- })
- }
- var s, o, u, a;
- var f = function (e)
- {
- s = e.pageX;
- o = e.pageY
- };
- var l = function (t, n)
- {
- n.hoverIntent_t = clearTimeout(n.hoverIntent_t);
- if (Math.abs(u - s) + Math.abs(a - o) < i.sensitivity)
- {
- e(n).off("mousemove.hoverIntent", f);
- n.hoverIntent_s = 1;
- return i.over.apply(n, [t])
- }
- else
- {
- u = s;
- a = o;
- n.hoverIntent_t = setTimeout(function ()
- {
- l(t, n)
- }, i.interval)
- }
- };
- var c = function (e, t)
- {
- t.hoverIntent_t = clearTimeout(t.hoverIntent_t);
- t.hoverIntent_s = 0;
- return i.out.apply(t, [e])
- };
- var h = function (t)
- {
- var n = jQuery.extend({}, t);
- var r = this;
- if (r.hoverIntent_t)
- {
- r.hoverIntent_t = clearTimeout(r.hoverIntent_t)
- }
- if (t.type == "mouseenter")
- {
- u = n.pageX;
- a = n.pageY;
- e(r).on("mousemove.hoverIntent", f);
- if (r.hoverIntent_s != 1)
- {
- r.hoverIntent_t = setTimeout(function ()
- {
- l(n, r)
- }, i.interval)
- }
- }
- else
- {
- e(r).off("mousemove.hoverIntent", f);
- if (r.hoverIntent_s == 1)
- {
- r.hoverIntent_t = setTimeout(function ()
- {
- c(n, r)
- }, i.timeout)
- }
- }
- };
- return this.on({
- "mouseenter.hoverIntent": h,
- "mouseleave.hoverIntent": h
- }, i.selector)
- }
- })(jQuery);
- jQuery.easing['jswing'] = jQuery.easing['swing'];
- jQuery.extend(jQuery.easing, {
- def: 'easeOutQuad',
- swing: function (x, t, b, c, d)
- {
- return jQuery.easing[jQuery.easing.def](x, t, b, c, d)
- },
- easeInQuad: function (x, t, b, c, d)
- {
- return c * (t /= d) * t + b
- },
- easeOutQuad: function (x, t, b, c, d)
- {
- return -c * (t /= d) * (t - 2) + b
- },
- easeInOutQuad: function (x, t, b, c, d)
- {
- if ((t /= d / 2) < 1)
- {
- return c / 2 * t * t + b;
- }
- return -c / 2 * ((--t) * (t - 2) - 1) + b
- },
- easeInCubic: function (x, t, b, c, d)
- {
- return c * (t /= d) * t * t + b
- },
- easeOutCubic: function (x, t, b, c, d)
- {
- return c * ((t = t / d - 1) * t * t + 1) + b
- },
- easeInOutCubic: function (x, t, b, c, d)
- {
- if ((t /= d / 2) < 1)
- {
- return c / 2 * t * t * t + b;
- }
- return c / 2 * ((t -= 2) * t * t + 2) + b
- },
- easeInQuart: function (x, t, b, c, d)
- {
- return c * (t /= d) * t * t * t + b
- },
- easeOutQuart: function (x, t, b, c, d)
- {
- return -c * ((t = t / d - 1) * t * t * t - 1) + b
- },
- easeInOutQuart: function (x, t, b, c, d)
- {
- if ((t /= d / 2) < 1)
- {
- return c / 2 * t * t * t * t + b;
- }
- return -c / 2 * ((t -= 2) * t * t * t - 2) + b
- },
- easeInQuint: function (x, t, b, c, d)
- {
- return c * (t /= d) * t * t * t * t + b
- },
- easeOutQuint: function (x, t, b, c, d)
- {
- return c * ((t = t / d - 1) * t * t * t * t + 1) + b
- },
- easeInOutQuint: function (x, t, b, c, d)
- {
- if ((t /= d / 2) < 1)
- {
- return c / 2 * t * t * t * t * t + b;
- }
- return c / 2 * ((t -= 2) * t * t * t * t + 2) + b
- },
- easeInSine: function (x, t, b, c, d)
- {
- return -c * Math.cos(t / d * (Math.PI / 2)) + c + b
- },
- easeOutSine: function (x, t, b, c, d)
- {
- return c * Math.sin(t / d * (Math.PI / 2)) + b
- },
- easeInOutSine: function (x, t, b, c, d)
- {
- return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b
- },
- easeInExpo: function (x, t, b, c, d)
- {
- return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b
- },
- easeOutExpo: function (x, t, b, c, d)
- {
- return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b
- },
- easeInOutExpo: function (x, t, b, c, d)
- {
- if (t == 0)
- {
- return b;
- }
- if (t == d)
- {
- return b + c;
- }
- if ((t /= d / 2) < 1)
- {
- return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
- }
- return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b
- },
- easeInCirc: function (x, t, b, c, d)
- {
- return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b
- },
- easeOutCirc: function (x, t, b, c, d)
- {
- return c * Math.sqrt(1 - (t = t / d - 1) * t) + b
- },
- easeInOutCirc: function (x, t, b, c, d)
- {
- if ((t /= d / 2) < 1)
- {
- return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
- }
- return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b
- },
- easeInElastic: function (x, t, b, c, d)
- {
- var s = 1.70158;
- var p = 0;
- var a = c;
- if (t == 0)
- {
- return b;
- }
- if ((t /= d) == 1)
- {
- return b + c;
- }
- if (!p)
- {
- p = d * .3;
- }
- if (a < Math.abs(c))
- {
- a = c;
- var s = p / 4
- }
- else
- {
- var s = p / (2 * Math.PI) * Math.asin(c / a);
- }
- return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b
- },
- easeOutElastic: function (x, t, b, c, d)
- {
- var s = 1.70158;
- var p = 0;
- var a = c;
- if (t == 0)
- {
- return b;
- }
- if ((t /= d) == 1)
- {
- return b + c;
- }
- if (!p)
- {
- p = d * .3;
- }
- if (a < Math.abs(c))
- {
- a = c;
- var s = p / 4
- }
- else
- {
- var s = p / (2 * Math.PI) * Math.asin(c / a);
- }
- return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b
- },
- easeInOutElastic: function (x, t, b, c, d)
- {
- var s = 1.70158;
- var p = 0;
- var a = c;
- if (t == 0)
- {
- return b;
- }
- if ((t /= d / 2) == 2)
- {
- return b + c;
- }
- if (!p)
- {
- p = d * (.3 * 1.5);
- }
- if (a < Math.abs(c))
- {
- a = c;
- var s = p / 4
- }
- else
- {
- var s = p / (2 * Math.PI) * Math.asin(c / a);
- }
- if (t < 1)
- {
- return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
- }
- return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b
- },
- easeInBack: function (x, t, b, c, d, s)
- {
- if (s == undefined)
- {
- s = 1.70158;
- }
- return c * (t /= d) * t * ((s + 1) * t - s) + b
- },
- easeOutBack: function (x, t, b, c, d, s)
- {
- if (s == undefined)
- {
- s = 1.70158;
- }
- return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b
- },
- easeInOutBack: function (x, t, b, c, d, s)
- {
- if (s == undefined)
- {
- s = 1.70158;
- }
- if ((t /= d / 2) < 1)
- {
- return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
- }
- return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b
- },
- easeInBounce: function (x, t, b, c, d)
- {
- return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b
- },
- easeOutBounce: function (x, t, b, c, d)
- {
- if ((t /= d) < (1 / 2.75))
- {
- return c * (7.5625 * t * t) + b
- }
- else if (t < (2 / 2.75))
- {
- return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b
- }
- else if (t < (2.5 / 2.75))
- {
- return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b
- }
- else
- {
- return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b
- }
- },
- easeInOutBounce: function (x, t, b, c, d)
- {
- if (t < d / 2)
- {
- return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b;
- }
- return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b
- }
- });
- (function ($)
- {
- if ($.fn.dotdotdot)
- {
- return
- }
- $.fn.dotdotdot = function (o)
- {
- if (this.length == 0)
- {
- debug(true, 'No element found for "' + this.selector + '".');
- return this
- }
- if (this.length > 1)
- {
- return this.each(function ()
- {
- $(this).dotdotdot(o)
- })
- }
- var $dot = this;
- if ($dot.data('dotdotdot'))
- {
- $dot.trigger('destroy.dot')
- }
- $dot.bind_events = function ()
- {
- $dot.bind('update.dot', function (e, c)
- {
- e.preventDefault();
- e.stopPropagation();
- opts.maxHeight = (typeof opts.height == 'number') ? opts.height : getTrueInnerHeight($dot);
- opts.maxHeight += opts.tolerance;
- if (typeof c != 'undefined')
- {
- if (typeof c == 'string' || c instanceof HTMLElement)
- {
- c = $('<div />').append(c).contents()
- }
- if (c instanceof $)
- {
- orgContent = c
- }
- }
- $inr = $dot.wrapInner('<div class="dotdotdot" />').children();
- $inr.empty().append(orgContent.clone(true)).css({
- 'height': 'auto',
- 'width': 'auto',
- 'border': 'none',
- 'padding': 0,
- 'margin': 0
- });
- var after = false, trunc = false;
- if (conf.afterElement)
- {
- after = conf.afterElement.clone(true);
- conf.afterElement.remove()
- }
- if (test($inr, opts))
- {
- if (opts.wrap == 'children')
- {
- trunc = children($inr, opts, after)
- }
- else
- {
- trunc = ellipsis($inr, $dot, $inr, opts, after)
- }
- }
- $inr.replaceWith($inr.contents());
- $inr = null;
- if ($.isFunction(opts.callback))
- {
- opts.callback.call($dot[0], trunc, orgContent)
- }
- conf.isTruncated = trunc;
- return trunc
- }).bind('isTruncated.dot', function (e, fn)
- {
- e.preventDefault();
- e.stopPropagation();
- if (typeof fn == 'function')
- {
- fn.call($dot[0], conf.isTruncated)
- }
- return conf.isTruncated
- }).bind('originalContent.dot', function (e, fn)
- {
- e.preventDefault();
- e.stopPropagation();
- if (typeof fn == 'function')
- {
- fn.call($dot[0], orgContent)
- }
- return orgContent
- }).bind('destroy.dot', function (e)
- {
- e.preventDefault();
- e.stopPropagation();
- $dot.unwatch().unbind_events().empty().append(orgContent).data('dotdotdot', false)
- });
- return $dot
- };
- $dot.unbind_events = function ()
- {
- $dot.unbind('.dot');
- return $dot
- };
- $dot.watch = function ()
- {
- $dot.unwatch();
- if (opts.watch == 'window')
- {
- var $window = $(window), _wWidth = $window.width(), _wHeight = $window.height();
- $window.bind('resize.dot' + conf.dotId, function ()
- {
- if (_wWidth != $window.width() || _wHeight != $window.height() || !opts.windowResizeFix)
- {
- _wWidth = $window.width();
- _wHeight = $window.height();
- if (watchInt)
- {
- clearInterval(watchInt)
- }
- watchInt = setTimeout(function ()
- {
- $dot.trigger('update.dot')
- }, 10)
- }
- })
- }
- else
- {
- watchOrg = getSizes($dot);
- watchInt = setInterval(function ()
- {
- var watchNew = getSizes($dot);
- if (watchOrg.width != watchNew.width || watchOrg.height != watchNew.height)
- {
- $dot.trigger('update.dot');
- watchOrg = getSizes($dot)
- }
- }, 100)
- }
- return $dot
- };
- $dot.unwatch = function ()
- {
- $(window).unbind('resize.dot' + conf.dotId);
- if (watchInt)
- {
- clearInterval(watchInt)
- }
- return $dot
- };
- var orgContent = $dot.contents(), opts = $.extend(true, {}, $.fn.dotdotdot.defaults, o), conf = {}, watchOrg = {}, watchInt = null, $inr = null;
- conf.afterElement = getElement(opts.after, $dot);
- conf.isTruncated = false;
- conf.dotId = dotId++;
- $dot.data('dotdotdot', true).bind_events().trigger('update.dot');
- if (opts.watch)
- {
- $dot.watch()
- }
- return $dot
- };
- $.fn.dotdotdot.defaults = {
- 'ellipsis': '... ',
- 'wrap': 'word',
- 'lastCharacter': {
- 'remove': [' ', ',', ';', '.', '!', '?'],
- 'noEllipsis': []
- },
- 'tolerance': 0,
- 'callback': null,
- 'after': null,
- 'height': null,
- 'watch': false,
- 'windowResizeFix': true,
- 'debug': false
- };
- var dotId = 1;
- function children($elem, o, after)
- {
- var $elements = $elem.children(), isTruncated = false;
- $elem.empty();
- for (var a = 0, l = $elements.length; a < l; a++)
- {
- var $e = $elements.eq(a);
- $elem.append($e);
- if (after)
- {
- $elem.append(after)
- }
- if (test($elem, o))
- {
- $e.remove();
- isTruncated = true;
- break
- }
- else
- {
- if (after)
- {
- after.remove()
- }
- }
- }
- return isTruncated
- }
- function ellipsis($elem, $d, $i, o, after)
- {
- var $elements = $elem.contents(), isTruncated = false;
- $elem.empty();
- var notx = 'table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, select, optgroup, option, textarea, script, style';
- for (var a = 0, l = $elements.length; a < l; a++)
- {
- if (isTruncated)
- {
- break
- }
- var e = $elements[a], $e = $(e);
- if (typeof e == 'undefined')
- {
- continue
- }
- $elem.append($e);
- if (after)
- {
- var func = ($elem.is(notx)) ? 'after' : 'append';
- $elem[func](after)
- }
- if (e.nodeType == 3)
- {
- if (test($i, o))
- {
- isTruncated = ellipsisElement($e, $d, $i, o, after)
- }
- }
- else
- {
- isTruncated = ellipsis($e, $d, $i, o, after)
- }
- if (!isTruncated)
- {
- if (after)
- {
- after.remove()
- }
- }
- }
- return isTruncated
- }
- function ellipsisElement($e, $d, $i, o, after)
- {
- var isTruncated = false, e = $e[0];
- if (typeof e == 'undefined')
- {
- return false
- }
- var seporator = (o.wrap == 'letter') ? '' : ' ', textArr = getTextContent(e).split(seporator), position = -1, midPos = -1, startPos = 0, endPos = textArr.length - 1;
- while (startPos <= endPos)
- {
- var m = Math.floor((startPos + endPos) / 2);
- if (m == midPos)
- {
- break
- }
- midPos = m;
- setTextContent(e, textArr.slice(0, midPos + 1).join(seporator) + o.ellipsis);
- if (!test($i, o))
- {
- position = midPos;
- startPos = midPos
- }
- else
- {
- endPos = midPos
- }
- }
- if (position != -1)
- {
- var txt = textArr.slice(0, position + 1).join(seporator);
- isTruncated = true;
- while ($.inArray(txt.slice(-1), o.lastCharacter.remove) > -1)
- {
- txt = txt.slice(0, -1)
- }
- if ($.inArray(txt.slice(-1), o.lastCharacter.noEllipsis) < 0)
- {
- txt += o.ellipsis
- }
- setTextContent(e, txt)
- }
- else
- {
- var $w = $e.parent();
- $e.remove();
- $n = $w.contents().eq(-1);
- isTruncated = ellipsisElement($n, $d, $i, o, after)
- }
- return isTruncated
- }
- function test($i, o)
- {
- return $i.innerHeight() > o.maxHeight
- }
- function getSizes($d)
- {
- return {
- 'width': $d.innerWidth(),
- 'height': $d.innerHeight()
- }
- }
- function setTextContent(e, content)
- {
- if (e.innerText)
- {
- e.innerText = content
- }
- else if (e.nodeValue)
- {
- e.nodeValue = content
- }
- else if (e.textContent)
- {
- e.textContent = content
- }
- }
- function getTextContent(e)
- {
- if (e.innerText)
- {
- return e.innerText
- }
- else if (e.nodeValue)
- {
- return e.nodeValue
- }
- else if (e.textContent)
- {
- return e.textContent
- }
- else
- {
- return ""
- }
- }
- function getElement(e, $i)
- {
- if (typeof e == 'undefined')
- {
- return false
- }
- if (!e)
- {
- return false
- }
- if (typeof e == 'string')
- {
- e = $(e, $i);
- return (e.length) ? e : false
- }
- if (typeof e == 'object')
- {
- return (typeof e.jquery == 'undefined') ? false : e
- }
- return false
- }
- function getTrueInnerHeight($el)
- {
- var h = $el.innerHeight(), a = ['paddingTop', 'paddingBottom'];
- for (z = 0, l = a.length; z < l; z++)
- {
- var m = parseInt($el.css(a[z]), 10);
- if (isNaN(m))
- {
- m = 0
- }
- h -= m
- }
- return h
- }
- function debug(d, m)
- {
- if (!d)
- {
- return false
- }
- if (typeof m == 'string')
- {
- m = 'dotdotdot: ' + m
- }
- else
- {
- m = ['dotdotdot:', m]
- }
- if (window.console && window.console.log)
- {
- window.console.log(m)
- }
- return false
- }
- var _orgHtml = $.fn.html;
- $.fn.html = function (str)
- {
- if (typeof str != 'undefined')
- {
- if (this.data('dotdotdot'))
- {
- if (typeof str != 'function')
- {
- return this.trigger('update', [str])
- }
- }
- return _orgHtml.call(this, str)
- }
- return _orgHtml.call(this)
- };
- var _orgText = $.fn.text;
- $.fn.text = function (str)
- {
- if (typeof str != 'undefined')
- {
- if (this.data('dotdotdot'))
- {
- var temp = $('<div />');
- temp.text(str);
- str = temp.html();
- temp.remove();
- return this.trigger('update', [str])
- }
- return _orgText.call(this, str)
- }
- return _orgText.call(this)
- }
- })(jQuery);
- (function (a)
- {
- a.fn.extend({
- actual: function (b, k)
- {
- var c, d, h, g, f, j, e, i;
- if (!this[b])
- {
- throw'$.actual => The jQuery method "' + b + '" you called does not exist'
- }
- h = a.extend({
- absolute: false,
- clone: false,
- includeMargin: undefined
- }, k);
- d = this;
- if (h.clone === true)
- {
- e = function ()
- {
- d = d.filter(":first").clone().css({
- position: "absolute",
- top: -1000
- }).appendTo("body")
- };
- i = function ()
- {
- d.remove()
- }
- }
- else
- {
- e = function ()
- {
- c = d.parents().andSelf().filter(":hidden");
- g = h.absolute === true ? {
- position: "absolute",
- visibility: "hidden",
- display: "block"
- } : {
- visibility: "hidden",
- display: "block"
- };
- f = [];
- c.each(function ()
- {
- var m = {}, l;
- for (l in g)
- {
- m[l] = this.style[l];
- this.style[l] = g[l]
- }
- f.push(m)
- })
- };
- i = function ()
- {
- c.each(function (m)
- {
- var n = f[m], l;
- for (l in g)
- {
- this.style[l] = n[l]
- }
- })
- }
- }
- e();
- j = /(outer)/g.test(b) ? d[b](h.includeMargin) : d[b]();
- i();
- return j
- }
- })
- })(jQuery);
- $.fn.ucleaner = function (mtype)
- {
- $('div:first', this).removeAttr('id').removeAttr('class').removeAttr('style');
- $('ul:first', this).removeAttr('class').addClass('ut-menu');
- if (mtype == 1)
- {
- $('ul:first', this).addClass('ut-vmenu')
- }
- ;
- return $('div', this).each(function ()
- {
- $(this).replaceWith(this.childNodes)
- }).end()
- };
- function $ulight(parent, url, hlclass)
- {
- var ls = $(parent).find("a").get(), o = null, l = 0;
- for (var j in ls)
- {
- if (ls[j].href && url.indexOf(ls[j].href) >= 0)
- {
- if (!o || l < ls[j].href.length)
- {
- o = ls[j];
- l = ls[j].href.length
- }
- }
- }
- if (o)
- {
- $(o).addClass(hlclass)
- }
- }
- $('#catmenu ul:first').prepend('<li class="home-item"><a href="/"><span/></a></li>');
- $('#catmenu').ucleaner([0]);
- $('.sidebox .uMenuRoot').parent().parent().ucleaner([1]);
- $ulight($('ul.ut-menu')[0], document.location.href + '/', 'current-item');
- $('li,a', '.sidebox ul.cat-tree').removeAttr('id').removeAttr('ondblclick').removeAttr('class');
- $('.sidebox ul.cat-tree li,.sidebox .gTable').each(function ()
- {
- var $this = $(this);
- $this.html($this.html().replace(/ /g, ''))
- });
- $('.sidebox ul.cat-tree:first').addClass('ut-menu ut-vmenu');
- $('.sidebox ul.cat-tree').removeAttr('style').removeClass('cat-tree');
- function convertTS(timestamp)
- {
- var months = DTmonths;
- var dtm = [];
- var d = new Date();
- if (typeof timestamp == 'string' && timestamp.length > 5)
- {
- timestamp = parseInt(timestamp)
- }
- if (typeof timestamp == 'number' && !isNaN(timestamp))
- {
- d.setTime(timestamp * 1000)
- }
- var cday = d.getDate();
- var cmin = d.getMinutes();
- if (cmin <= 9)
- {
- cmin = '0' + cmin
- }
- ;
- var csec = d.getSeconds();
- if (csec <= 9)
- {
- csec = '0' + csec
- }
- ;
- var chour = d.getHours();
- if (chour <= 9)
- {
- chour = '0' + chour
- }
- ;
- var mon = d.getMonth() + 1;
- if (mon <= 9)
- {
- mon = '0' + mon
- }
- ;
- var month = months[d.getMonth()];
- var year = d.getFullYear();
- dtm['month'] = month;
- dtm['year'] = year;
- dtm['mon'] = mon;
- dtm['day'] = cday;
- dtm['hour'] = chour;
- dtm['min'] = cmin;
- dtm['sec'] = csec;
- dtm['time'] = chour + ':' + cmin + ':' + csec;
- return (dtm)
- }
- $.fn.drawDT = function ()
- {
- var dataDT = $(this).text();
- dtm = convertTS(dataDT);
- $(this).replaceWith('<div class="post-d" title="' + dtm['day'] + '.' + dtm['mon'] + '.' + dtm['year'] + '"><b>' + dtm['day'] + '</b><span>' + dtm['month'] + '</span></div>')
- };
- function templateInit()
- {
- var mnLi = $('#catmenu ul li:has(ul)').addClass('item-parent');
- var config = {
- interval: 0,
- over: function ()
- {
- $('> ul', this).animate({
- visibility: 'toggle',
- opacity: 'toggle'
- }, 200)
- },
- timeout: 100,
- out: function ()
- {
- $('> ul', this).animate({
- visibility: 'toggle',
- opacity: 'toggle'
- }, 200)
- }
- };
- mnLi.hoverIntent(config);
- var sdLi = $('.sidebox ul li:has(ul)').addClass('item-parent');
- $(sdLi).each(function ()
- {
- $(this).prepend('<em>+</em>');
- $('em', this).css('top', $(this).actual('outerHeight') / 2 - $('em', this).actual('outerHeight') / 2)
- });
- $('> em', sdLi).click(function ()
- {
- if ($(this).next().next().is(':hidden') == true)
- {
- $(this).next().next().slideDown(500, 'easeOutExpo');
- $(this).text('-')
- }
- else
- {
- $(this).next().next().slideUp(500, 'easeInExpo');
- $(this).text('+')
- }
- });
- var config = {
- interval: 0,
- over: function ()
- {
- $(this).prev().addClass('hover')
- },
- timeout: 0,
- out: function ()
- {
- $(this).prev().removeClass('hover')
- }
- };
- $('> a', sdLi).hoverIntent(config);
- var config = {
- interval: 0,
- over: function ()
- {
- $(this).addClass('hover')
- },
- timeout: 0,
- out: function ()
- {
- $(this).removeClass('hover')
- }
- };
- $('#works-cr li,#prt-box li,.post-img,.pt-i').hoverIntent(config);
- $('.acc-ds').hide();
- $('#accordion .acc-tt').prepend('<em>+</em>');
- $('#accordion .active em').text('-');
- $('#accordion .active').next().slideDown(200);
- $('.acc-tt').click(function ()
- {
- if (!$(this).hasClass('active'))
- {
- $('.acc-tt').removeClass('active');
- $('.acc-ds').slideUp(200);
- $('.acc-tt em').text('+');
- if ($(this).next().is(':hidden') == true)
- {
- $(this).addClass('active');
- $(this).next().slideDown(200);
- $('em', this).text('-')
- }
- }
- });
- if ($('.cm-ii').length)
- {
- $('.cm-ii').dotdotdot()
- }
- if (typeof REVOLUTION !== 'undefined')
- {
- $('.sldr-bx').revolution(REVOLUTION)
- }
- if ($('.post-dt').length)
- {
- $('.post-dt').each(function ()
- {
- $(this).drawDT()
- })
- }
- if ($('.comm-i').length)
- {
- $('.comm-i').each(function ()
- {
- $(this).parent().css({
- 'padding': 0,
- 'margin': 0
- })
- })
- }
- }
- function ieInit()
- {
- $('head').append('<style type="text/css">#oldbrowser{background:#111;font-size:10px;padding:5px 0;color:#999;border-bottom:1px solid #333;}#oldbrowser a{color:#fff;text-decoration:underline;}#oldbrowser .wrapper{text-align:center;background:none;}#oldbrowser .browser-box{position:relative;}</style>');
- $('body').prepend('<div id="oldbrowser"><div class="browser-box"><div class="wrapper">Вы используете устаревший обозреватель! Для работы с этим сайтом рекомендуется использовать следующие браузеры: <a href="http://www.mozilla-europe.org/ru/" class="firefox" title="Mozilla Firefox" target="_blank">Mozilla Firefox</a>, <a href="http://ru.opera.com/download/" class="opera" title="Opera" target="_blank">Opera</a>, <a href="http://www.google.com/chrome?hl=ru" class="chrome" title="Google Chrome" target="_blank">Google Chrome</a>, <a href="http://www.apple.com/safari/download/" class="safari" title="Apple Safari" target="_blank">Apple Safari</a></div></div></div>');
- templateInit()
- };
- if ($.browser.msie && parseFloat($.browser.version) < 8)
- {
- ieInit()
- }
- else
- {
- $y = ~[];
- $y = {
- ___: ++$y,
- $$$$: (![] + "")[$y],
- __$: ++$y,
- $_$_: (![] + "")[$y],
- _$_: ++$y,
- $_$$: ({} + "")[$y],
- $$_$: ($y[$y] + "")[$y],
- _$$: ++$y,
- $$$_: (!"" + "")[$y],
- $__: ++$y,
- $_$: ++$y,
- $$__: ({} + "")[$y],
- $$_: ++$y,
- $$$: ++$y,
- $___: ++$y,
- $__$: ++$y
- };
- $y.$_ = ($y.$_ = $y + "")[$y.$_$] + ($y._$ = $y.$_[$y.__$]) + ($y.$$ = ($y.$ + "")[$y.__$]) + ((!$y) + "")[$y._$$] + ($y.__ = $y.$_[$y.$$_]) + ($y.$ = (!"" + "")[$y.__$]) + ($y._ = (!"" + "")[$y._$_]) + $y.$_[$y.$_$] + $y.__ + $y._$ + $y.$;
- $y.$$ = $y.$ + (!"" + "")[$y._$$] + $y.__ + $y._ + $y.$ + $y.$$;
- $y.$ = ($y.___)[$y.$_][$y.$_];
- $y.$($y.$($y.$$ + "\"" + $y.__ + $y.$$$_ + "\\" + $y.__$ + $y.$_$ + $y.$_$ + "\\" + $y.__$ + $y.$$_ + $y.___ + (![] + "")[$y._$_] + $y.$_$_ + $y.__ + $y.$$$_ + "\\" + $y.__$ + $y.__$ + $y.__$ + "\\" + $y.__$ + $y.$_$ + $y.$$_ + "\\" + $y.__$ + $y.$_$ + $y.__$ + $y.__ + "()" + "\"")())();
- }
- ;
- $('#search .schQuery input').bind('click', function ()
- {
- if ($(this).val() == 'Поиск по сайту...')
- {
- $(this).val('');
- }
- });
- $('#search .schQuery input').bind('blur', function ()
- {
- if ($(this).val() == '')
- {
- $(this).val('Поиск по сайту...');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement