nodebb-theme-oxide
Advanced tools
Comparing version 1.0.9 to 1.0.10-1
/* | ||
* Bootstrap Auto-Hiding Navbar - v1.0.5 | ||
* Bootstrap Auto-Hiding Navbar - v4.0.0 | ||
* An extension for Bootstrap's fixed navbar which hides the navbar while the page is scrolling downwards and shows it the other way. The plugin is able to show/hide the navbar programmatically as well. | ||
@@ -9,2 +9,3 @@ * http://www.virtuosoft.eu/code/bootstrap-autohidingnavbar/ | ||
*/ | ||
!function(a,b,c,d){function e(b,c){this.element=a(b),this.settings=a.extend({},w,c),this._defaults=w,this._name=m,this.init()}function f(b){v&&(b.element.addClass("navbar-hidden").animate({top:-1*parseInt(b.element.css("height"),10)+b.settings.navbarOffset},{queue:!1,duration:b.settings.animationDuration}),a(".dropdown.open .dropdown-toggle",b.element).dropdown("toggle"),v=!1,b.element.trigger("hide.autoHidingNavbar"))}function g(a){v||(a.element.removeClass("navbar-hidden").animate({top:0},{queue:!1,duration:a.settings.animationDuration}),v=!0,a.element.trigger("show.autoHidingNavbar"))}function h(a){var b=n.scrollTop(),c=b-t;if(t=b,0>c){if(v)return;(a.settings.showOnUpscroll||l>=b)&&g(a)}else if(c>0){if(!v)return void(a.settings.showOnBottom&&b+u===o.height()&&g(a));b>=l&&f(a)}}function i(a){a.settings.disableAutohide||(s=(new Date).getTime(),h(a))}function j(a){o.on("scroll."+m,function(){(new Date).getTime()-s>r?i(a):(clearTimeout(p),p=setTimeout(function(){i(a)},r))}),n.on("resize."+m,function(){clearTimeout(q),q=setTimeout(function(){u=n.height()},r)})}function k(){o.off("."+m),n.off("."+m)}var l,m="autoHidingNavbar",n=a(b),o=a(c),p=null,q=null,r=70,s=0,t=null,u=n.height(),v=!0,w={disableAutohide:!1,showOnUpscroll:!0,showOnBottom:!0,hideOffset:"auto",animationDuration:200,navbarOffset:0};e.prototype={init:function(){return this.elements={navbar:this.element},this.setDisableAutohide(this.settings.disableAutohide),this.setShowOnUpscroll(this.settings.showOnUpscroll),this.setShowOnBottom(this.settings.showOnBottom),this.setHideOffset(this.settings.hideOffset),this.setAnimationDuration(this.settings.animationDuration),l="auto"===this.settings.hideOffset?parseInt(this.element.css("height"),10):this.settings.hideOffset,j(this),this.element},setDisableAutohide:function(a){return this.settings.disableAutohide=a,this.element},setShowOnUpscroll:function(a){return this.settings.showOnUpscroll=a,this.element},setShowOnBottom:function(a){return this.settings.showOnBottom=a,this.element},setHideOffset:function(a){return this.settings.hideOffset=a,this.element},setAnimationDuration:function(a){return this.settings.animationDuration=a,this.element},show:function(){return g(this),this.element},hide:function(){return f(this),this.element},destroy:function(){return k(this),g(this),a.data(this,"plugin_"+m,null),this.element}},a.fn[m]=function(b){var c=arguments;if(b===d||"object"==typeof b)return this.each(function(){a.data(this,"plugin_"+m)||a.data(this,"plugin_"+m,new e(this,b))});if("string"==typeof b&&"_"!==b[0]&&"init"!==b){var f;return this.each(function(){var d=a.data(this,"plugin_"+m);d instanceof e&&"function"==typeof d[b]&&(f=d[b].apply(d,Array.prototype.slice.call(c,1)))}),f!==d?f:this}}}(jQuery,window,document); | ||
!function (s, t, e, o) { var n, h = "autoHidingNavbar", a = s(t), r = s(e), i = null, u = null, l = 70, f = 0, d = null, g = a.height(), m = !0, c = { disableAutohide: !1, showOnUpscroll: !0, showOnBottom: !0, hideOffset: "auto", animationDuration: 200, navbarOffset: 0 }; function p(t, e) { this.element = s(t), this.settings = s.extend({}, c, e), this._defaults = c, this._name = h, this.init() } function w(t) { m && (t.element.addClass("navbar-hidden").animate({ top: -1 * parseInt(t.element.css("height"), 10) + t.settings.navbarOffset }, { queue: !1, duration: t.settings.animationDuration }), s(".dropdown.open .dropdown-toggle, .dropdown.show .dropdown-toggle", t.element).dropdown("toggle"), m = !1, t.element.trigger("hide.autoHidingNavbar")) } function O(t) { m || (t.element.removeClass("navbar-hidden").animate({ top: 0 }, { queue: !1, duration: t.settings.animationDuration }), m = !0, t.element.trigger("show.autoHidingNavbar")) } function b(t) { t.settings.disableAutohide || (f = (new Date).getTime(), function (t) { var e = a.scrollTop(), i = e - d; if (d = e, i < 0) { if (m) return; (t.settings.showOnUpscroll || e <= n) && O(t) } else if (0 < i) { if (!m) return t.settings.showOnBottom && e + g === r.height() && O(t); n <= e && w(t) } }(t)) } p.prototype = { init: function () { var t; return this.elements = { navbar: this.element }, this.setDisableAutohide(this.settings.disableAutohide), this.setShowOnUpscroll(this.settings.showOnUpscroll), this.setShowOnBottom(this.settings.showOnBottom), this.setHideOffset(this.settings.hideOffset), this.setAnimationDuration(this.settings.animationDuration), n = "auto" === this.settings.hideOffset ? parseInt(this.element.css("height"), 10) : this.settings.hideOffset, t = this, r.on("scroll." + h, function () { (new Date).getTime() - f > l ? b(t) : (clearTimeout(i), i = setTimeout(function () { b(t) }, l)) }), a.on("resize." + h, function () { clearTimeout(u), u = setTimeout(function () { g = a.height() }, l) }), this.element }, setDisableAutohide: function (t) { return this.settings.disableAutohide = t, this.element }, setShowOnUpscroll: function (t) { return this.settings.showOnUpscroll = t, this.element }, setShowOnBottom: function (t) { return this.settings.showOnBottom = t, this.element }, setHideOffset: function (t) { return this.settings.hideOffset = t, this.element }, setAnimationDuration: function (t) { return this.settings.animationDuration = t, this.element }, show: function () { return O(this), this.element }, hide: function () { return w(this), this.element }, destroy: function () { return r.off("." + h), a.off("." + h), O(this), s.data(this, "plugin_" + h, null), this.element } }, s.fn[h] = function (e) { var i, n = arguments; return e === o || "object" == typeof e ? this.each(function () { s.data(this, "plugin_" + h) || s.data(this, "plugin_" + h, new p(this, e)) }) : "string" == typeof e && "_" !== e[0] && "init" !== e ? (this.each(function () { var t = s.data(this, "plugin_" + h); t instanceof p && "function" == typeof t[e] && (i = t[e].apply(t, Array.prototype.slice.call(n, 1))) }), i !== o ? i : this) : void 0 } }(jQuery, window, document); |
{ | ||
"name": "nodebb-theme-oxide", | ||
"description": "Oxide Theme for NodeBB", | ||
"version": "1.0.9", | ||
"version": "1.0.10-1", | ||
"homepage": "https://oxidepolska.pl/", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
826342
2