@digitalmoves/fullscreen-menu
Advanced tools
Comparing version 0.0.3 to 0.0.4
# @digitalmoves/fullscreen-menu | ||
## 0.0.4 | ||
### Patch Changes | ||
- 442e026: Fix chrome bug | ||
## 0.0.3 | ||
@@ -4,0 +10,0 @@ |
@@ -8,53 +8,52 @@ /* | ||
*/ | ||
var c = s; | ||
(function(x, e) { | ||
for (var t = s, n = x(); ; ) | ||
(function(n, e) { | ||
for (var t = a, x = n(); ; ) | ||
try { | ||
var d = parseInt(t(209)) / 1 * (-parseInt(t(222)) / 2) + parseInt(t(216)) / 3 + -parseInt(t(220)) / 4 + -parseInt(t(192)) / 5 * (parseInt(t(225)) / 6) + parseInt(t(206)) / 7 + parseInt(t(193)) / 8 + parseInt(t(191)) / 9; | ||
if (d === e) break; | ||
n.push(n.shift()); | ||
var c = -parseInt(t(452)) / 1 + parseInt(t(413)) / 2 * (-parseInt(t(445)) / 3) + parseInt(t(415)) / 4 + parseInt(t(444)) / 5 + -parseInt(t(426)) / 6 * (parseInt(t(421)) / 7) + -parseInt(t(443)) / 8 + -parseInt(t(420)) / 9 * (-parseInt(t(422)) / 10); | ||
if (c === e) break; | ||
x.push(x.shift()); | ||
} catch { | ||
n.push(n.shift()); | ||
x.push(x.shift()); | ||
} | ||
})(i, 757014); | ||
function i() { | ||
var x = ["6sxRkzY", "add", "openButton", "90OaHHIK", "config", "navigation", "addEventListener", "23000868Yngvyb", "366635jYSPka", "4726104zbcZtj", "full-screen-menu", "Close", "closeMenu", "closeButton", "innerHTML", "init", ".header-display-desktop nav", "classList", "menuSection", "header", "header.header", "querySelector", "1635984sVnktX", "originalHeader", "close", "386053GLtnAr", "close-menu", "append", "click", "button", "createElement", "open", "2221266Ysnjkt", "Menu", "DOMContentLoaded", "selector", "4421884ZzGrry", "cloneNode"]; | ||
return i = function() { | ||
return x; | ||
}, i(); | ||
})(s, 536899); | ||
function a(n, e) { | ||
var t = s(); | ||
return a = function(x, c) { | ||
x = x - 413; | ||
var i = t[x]; | ||
return i; | ||
}, a(n, e); | ||
} | ||
function s() { | ||
var n = ["navigation", "2469284kzVAJz", "button", "classList", "addEventListener", "init", "17814897GTrgca", "154427WsczCV", "10azosWd", "innerHTML", "body", "close", "48dTcnrj", "menuSection", "Menu", "DOMContentLoaded", "full-screen-menu-button", "selector", "append", "createElement", "open", "header.header", "close-menu", "add", "closeMenu", "querySelector", "closeButton", "prepend", "config", "8012464dBwNxq", "5162845YKGDMz", "2796609bkwrMI", "openMenu", "openButton", "full-screen-menu", "originalHeader", "header", "remove", "982175XvvymL", "click", "2UQRltZ"]; | ||
return s = function() { | ||
return n; | ||
}, s(); | ||
} | ||
class r { | ||
constructor(e, t) { | ||
var n = s; | ||
this[n(219)] = e, this[n(226)] = { open: n(217), close: n(195), ...t }, this.init(); | ||
var x = a; | ||
this[x(431)] = e, this[x(442)] = { open: x(428), close: "Close", ...t }, this[x(419)](); | ||
} | ||
[c(199)]() { | ||
var e = c; | ||
this[e(202)] = document.querySelector(this.selector), this.menuSection[e(201)][e(223)](e(194)), document.body.append(this[e(202)]), this[e(189)] = document[e(205)](e(200)), this.menuSection[e(211)](this[e(189)]), this[e(207)] = document[e(205)](e(204)), this[e(203)] = this[e(207)][e(221)](!0), this[e(202)].prepend(this[e(203)]), this.openButton = document[e(214)](e(213)), this[e(224)][e(198)] = this[e(226)][e(215)], this.openButton[e(201)][e(223)]("full-screen-menu-button", "open-menu"), this[e(224)][e(190)](e(212), () => this.openMenu()), this[e(207)][e(211)](this[e(224)]), this[e(197)] = document.createElement("button"), this.closeButton[e(198)] = this.config[e(208)], this[e(197)][e(201)][e(223)]("full-screen-menu-button", e(210)), this.header[e(211)](this[e(197)]), this[e(197)][e(190)]("click", () => this[e(196)]()), setTimeout(() => this[e(202)][e(201)][e(223)]("ready"), 300); | ||
init() { | ||
var e = a; | ||
this[e(427)] = document[e(439)](this[e(431)]), this.menuSection[e(417)][e(437)](e(448)), document[e(424)].append(this[e(427)]), this[e(414)] = document.querySelector(".header-display-desktop nav"), this.menuSection[e(432)](this[e(414)]), this[e(449)] = document.querySelector(e(435)), this[e(450)] = this[e(449)].cloneNode(!0), this[e(427)][e(441)](this[e(450)]), this.openButton = document[e(433)](e(416)), this.openButton[e(423)] = this[e(442)][e(434)], this[e(447)][e(417)][e(437)]("full-screen-menu-button", "open-menu"), this[e(447)][e(418)](e(453), () => this[e(446)]()), this[e(449)][e(432)](this[e(447)]), this[e(440)] = document[e(433)](e(416)), this[e(440)][e(423)] = this.config[e(425)], this[e(440)][e(417)][e(437)](e(430), e(436)), this.header[e(432)](this[e(440)]), this[e(440)][e(418)](e(453), () => this[e(438)]()), setTimeout(() => this[e(427)][e(417)][e(437)]("ready"), 300); | ||
} | ||
openMenu() { | ||
var e = c; | ||
this[e(202)][e(201)][e(223)]("open"); | ||
var e = a; | ||
this[e(427)][e(417)][e(437)](e(434)); | ||
} | ||
closeMenu() { | ||
var e = c; | ||
this[e(202)][e(201)].remove("open"); | ||
var e = a; | ||
this[e(427)][e(417)][e(451)](e(434)); | ||
} | ||
} | ||
function s(x, e) { | ||
var t = i(); | ||
return s = function(n, d) { | ||
n = n - 189; | ||
var o = t[n]; | ||
return o; | ||
}, s(x, e); | ||
} | ||
function a(x, e) { | ||
var t = c; | ||
document[t(190)](t(218), () => { | ||
new r(x, e); | ||
function o(n, e) { | ||
var t = a; | ||
document[t(418)](t(429), () => { | ||
new r(n, e); | ||
}); | ||
} | ||
export { | ||
a as default | ||
o as default | ||
}; |
@@ -8,2 +8,2 @@ /* | ||
*/ | ||
(function(x,c){typeof exports=="object"&&typeof module<"u"?module.exports=c():typeof define=="function"&&define.amd?define(c):(x=typeof globalThis<"u"?globalThis:x||self,x["full-screen-menu"]=c())})(this,function(){"use strict";var x=i;(function(s,e){for(var t=i,n=s();;)try{var d=parseInt(t(209))/1*(-parseInt(t(222))/2)+parseInt(t(216))/3+-parseInt(t(220))/4+-parseInt(t(192))/5*(parseInt(t(225))/6)+parseInt(t(206))/7+parseInt(t(193))/8+parseInt(t(191))/9;if(d===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(c,757014);function c(){var s=["6sxRkzY","add","openButton","90OaHHIK","config","navigation","addEventListener","23000868Yngvyb","366635jYSPka","4726104zbcZtj","full-screen-menu","Close","closeMenu","closeButton","innerHTML","init",".header-display-desktop nav","classList","menuSection","header","header.header","querySelector","1635984sVnktX","originalHeader","close","386053GLtnAr","close-menu","append","click","button","createElement","open","2221266Ysnjkt","Menu","DOMContentLoaded","selector","4421884ZzGrry","cloneNode"];return c=function(){return s},c()}class r{constructor(e,t){var n=i;this[n(219)]=e,this[n(226)]={open:n(217),close:n(195),...t},this.init()}[x(199)](){var e=x;this[e(202)]=document.querySelector(this.selector),this.menuSection[e(201)][e(223)](e(194)),document.body.append(this[e(202)]),this[e(189)]=document[e(205)](e(200)),this.menuSection[e(211)](this[e(189)]),this[e(207)]=document[e(205)](e(204)),this[e(203)]=this[e(207)][e(221)](!0),this[e(202)].prepend(this[e(203)]),this.openButton=document[e(214)](e(213)),this[e(224)][e(198)]=this[e(226)][e(215)],this.openButton[e(201)][e(223)]("full-screen-menu-button","open-menu"),this[e(224)][e(190)](e(212),()=>this.openMenu()),this[e(207)][e(211)](this[e(224)]),this[e(197)]=document.createElement("button"),this.closeButton[e(198)]=this.config[e(208)],this[e(197)][e(201)][e(223)]("full-screen-menu-button",e(210)),this.header[e(211)](this[e(197)]),this[e(197)][e(190)]("click",()=>this[e(196)]()),setTimeout(()=>this[e(202)][e(201)][e(223)]("ready"),300)}openMenu(){var e=x;this[e(202)][e(201)][e(223)]("open")}closeMenu(){var e=x;this[e(202)][e(201)].remove("open")}}function i(s,e){var t=c();return i=function(n,d){n=n-189;var o=t[n];return o},i(s,e)}function u(s,e){var t=x;document[t(190)](t(218),()=>{new r(s,e)})}return u}); | ||
(function(x,a){typeof exports=="object"&&typeof module<"u"?module.exports=a():typeof define=="function"&&define.amd?define(a):(x=typeof globalThis<"u"?globalThis:x||self,x["full-screen-menu"]=a())})(this,function(){"use strict";(function(s,e){for(var t=x,n=s();;)try{var i=-parseInt(t(452))/1+parseInt(t(413))/2*(-parseInt(t(445))/3)+parseInt(t(415))/4+parseInt(t(444))/5+-parseInt(t(426))/6*(parseInt(t(421))/7)+-parseInt(t(443))/8+-parseInt(t(420))/9*(-parseInt(t(422))/10);if(i===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(a,536899);function x(s,e){var t=a();return x=function(n,i){n=n-413;var c=t[n];return c},x(s,e)}function a(){var s=["navigation","2469284kzVAJz","button","classList","addEventListener","init","17814897GTrgca","154427WsczCV","10azosWd","innerHTML","body","close","48dTcnrj","menuSection","Menu","DOMContentLoaded","full-screen-menu-button","selector","append","createElement","open","header.header","close-menu","add","closeMenu","querySelector","closeButton","prepend","config","8012464dBwNxq","5162845YKGDMz","2796609bkwrMI","openMenu","openButton","full-screen-menu","originalHeader","header","remove","982175XvvymL","click","2UQRltZ"];return a=function(){return s},a()}class o{constructor(e,t){var n=x;this[n(431)]=e,this[n(442)]={open:n(428),close:"Close",...t},this[n(419)]()}init(){var e=x;this[e(427)]=document[e(439)](this[e(431)]),this.menuSection[e(417)][e(437)](e(448)),document[e(424)].append(this[e(427)]),this[e(414)]=document.querySelector(".header-display-desktop nav"),this.menuSection[e(432)](this[e(414)]),this[e(449)]=document.querySelector(e(435)),this[e(450)]=this[e(449)].cloneNode(!0),this[e(427)][e(441)](this[e(450)]),this.openButton=document[e(433)](e(416)),this.openButton[e(423)]=this[e(442)][e(434)],this[e(447)][e(417)][e(437)]("full-screen-menu-button","open-menu"),this[e(447)][e(418)](e(453),()=>this[e(446)]()),this[e(449)][e(432)](this[e(447)]),this[e(440)]=document[e(433)](e(416)),this[e(440)][e(423)]=this.config[e(425)],this[e(440)][e(417)][e(437)](e(430),e(436)),this.header[e(432)](this[e(440)]),this[e(440)][e(418)](e(453),()=>this[e(438)]()),setTimeout(()=>this[e(427)][e(417)][e(437)]("ready"),300)}openMenu(){var e=x;this[e(427)][e(417)][e(437)](e(434))}closeMenu(){var e=x;this[e(427)][e(417)][e(451)](e(434))}}function r(s,e){var t=x;document[t(418)](t(429),()=>{new o(s,e)})}return r}); |
{ | ||
"name": "@digitalmoves/fullscreen-menu", | ||
"private": false, | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/main.es.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
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
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
9121