Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binary-style

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binary-style - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

binary.js

@@ -1,2 +0,2 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(this,function(){return function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function a(e){e.animate({opacity:0},100,function(){e.css("visibility","hidden").css("display","none")})}function i(e){e.css("visibility","visible").css("display","block").animate({opacity:1},100)}function s(){$(".nav-menu").on("click",function(e){e.stopPropagation(),a($(".top-nav-menu li ul")),a($("#language_select, #select_language"));var t=$("#all-accounts, #all-accounts-top");1==+t.css("opacity")?a(t):i(t)})}function l(){$(".top-nav-menu > li").on("click",function(e){e.stopPropagation(),a($("#all-accounts, #all-accounts-top")),a($("#language_select, #select_language"));var t=$(this).find(" > ul"),n=$(".top-nav-menu li ul");1==+t.css("opacity")&&$(e.target).find("span").hasClass("nav-caret")?a(n):0==+t.css("opacity")&&$(e.target).find("span").hasClass("nav-caret")&&n.animate({opacity:0},100,function(){n.css("visibility","hidden"),i(t)})})}function c(){$(document).on("click",function(){a($("#all-accounts, #all-accounts-top")),a($(".top-nav-menu li ul")),a($("#language_select, #select_language"))})}function o(){$(".languages").on("click",function(e){e.stopPropagation(),a($(".top-nav-menu li ul")),a($("#all-accounts, #all-accounts-top"));var t=$("#language_select, #select_language");1==+t.css("opacity")?a(t):i(t)})}function r(e){function t(e){for(var t=0;t<n.length;t++)n[t](e)}var n=[];e.filter(":not(.follow-default)").delegate(".tm-a,.tm-a-2","click",function(e){e.preventDefault();var n=$(e.target);if(n.parents("li:first").attr("id")){var a=n.parents(".tm-ul"),i=a.find(".tm-a,.tm-a-2").removeClass("a-active").end().find(".menu-wrap-a .tm-a").unwrap().unwrap().end().end().addClass("a-active").parents(".tm-li").addClass("active").removeClass("hover").find(".tm-li-2").addClass("active").end().find(".tm-a").wrap('<span class="menu-wrap-a"><span class="menu-wrap-b"></span></span>').end().siblings().removeClass("active").find(".tm-li-2").removeClass("active").end().end().end(),s=a.find("span.tm-a");s.replaceWith('<a href="#" class="'+s.attr("class")+'">'+s.html()+"</a>");var l=i.parents("li"),c=l.find(".tm-ul-2 .a-active"),o=l.attr("id");c.length||(c=l.find(".tm-a-2:first").addClass("a-active"),c.length?(i=c,o=c.parents("li").attr("id")):o=l.attr("id")),t({id:o,target:i,content:$("#"+o+"-content").removeClass("invisible").siblings(":not(.sticky)").addClass("invisible").end(),menu:l.parents("ul.tm-ul"),event:e})}return!1})}function u(){$(".tm-ul > li").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}),r($(".content-tab-container").find(".tm-ul"))}function d(){function e(e){var t=0;return e.children().each(function(){t+=$(this).outerHeight(!0)}),t}function t(t){var n=t.parent(),a=t.siblings("ul");if(n.is(".active")){var i=e(a);a.animate({height:i+"px"},300),a.find(".active").length||a.find("li:first-child > a").addClass("selected")}else a.animate({height:"0px"},300);n.siblings().find("ul").animate({height:"0px"},300)}function n(e){var t=e.nextElementSibling;return(t?$(t).find($(t).find(".selected")[0]?".selected":"a:first")[0]:e).getAttribute("href")}function a(e){var t=$(".sidebar-collapsible-content");if(t){var a=n(e);t.find("> div").addClass("invisible").end().find(a+"-content").removeClass("invisible")}}var i=".sidebar-collapsible";!function(){$(i).find(".active").length&&$(i).find(".active").removeClass("active"),$(i).find("a").off("click").on("click",function(e){e.preventDefault();var n=$(this),i=n.parent("li"),s=i.siblings("li");i.hasClass("has-submenu")?n.toggleClass("selected").parent("li").toggleClass("active"):n.addClass("selected").parent("li").addClass("active"),s.removeClass("active").find("> a").removeClass("selected"),t(n),a(e.target)})}()}Object.defineProperty(t,"__esModule",{value:!0}),t.hide_menu=a,t.show_menu=i,t.navMenuListener=s,t.topNavMenuListener=l,t.documentListener=c,t.langListener=o,t.initMenuContent=r,t.tabListener=u,t.sidebarCollapsible=d,$(document).ready(function(){s(),l(),c(),o(),u(),d()})}])});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}("undefined"!=typeof self?self:this,function(){return function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function a(e){e.animate({opacity:0},100,function(){e.css("visibility","hidden").css("display","none")})}function i(e){e.css("visibility","visible").css("display","block").animate({opacity:1},100)}function s(){$(".nav-menu").on("click",function(e){e.stopPropagation(),a($(".top-nav-menu li ul")),a($("#language_select, #select_language"));var t=$("#all-accounts, #all-accounts-top");1==+t.css("opacity")?a(t):i(t)})}function l(){$(".top-nav-menu > li").on("click",function(e){e.stopPropagation(),a($("#all-accounts, #all-accounts-top")),a($("#language_select, #select_language"));var t=$(this).find(" > ul"),n=$(".top-nav-menu li ul");1==+t.css("opacity")&&$(e.target).find("span").hasClass("nav-caret")?a(n):0==+t.css("opacity")&&$(e.target).find("span").hasClass("nav-caret")&&n.animate({opacity:0},100,function(){n.css("visibility","hidden"),i(t)})})}function c(){$(document).on("click",function(){a($("#all-accounts, #all-accounts-top")),a($(".top-nav-menu li ul")),a($("#language_select, #select_language"))})}function o(){$(".languages").on("click",function(e){e.stopPropagation(),a($(".top-nav-menu li ul")),a($("#all-accounts, #all-accounts-top"));var t=$("#language_select, #select_language");1==+t.css("opacity")?a(t):i(t)})}function r(e){function t(e){for(var t=0;t<n.length;t++)n[t](e)}var n=[];e.filter(":not(.follow-default)").delegate(".tm-a,.tm-a-2","click",function(e){e.preventDefault();var n=$(e.target);if(n.parents("li:first").attr("id")){var a=n.parents(".tm-ul"),i=a.find(".tm-a,.tm-a-2").removeClass("a-active").end().find(".menu-wrap-a .tm-a").unwrap().unwrap().end().end().addClass("a-active").parents(".tm-li").addClass("active").removeClass("hover").find(".tm-li-2").addClass("active").end().find(".tm-a").wrap('<span class="menu-wrap-a"><span class="menu-wrap-b"></span></span>').end().siblings().removeClass("active").find(".tm-li-2").removeClass("active").end().end().end(),s=a.find("span.tm-a");s.replaceWith('<a href="#" class="'+s.attr("class")+'">'+s.html()+"</a>");var l=i.parents("li"),c=l.find(".tm-ul-2 .a-active"),o=l.attr("id");c.length||(c=l.find(".tm-a-2:first").addClass("a-active"),c.length?(i=c,o=c.parents("li").attr("id")):o=l.attr("id")),t({id:o,target:i,content:$("#"+o+"-content").removeClass("invisible").siblings(":not(.sticky)").addClass("invisible").end(),menu:l.parents("ul.tm-ul"),event:e})}return!1})}function u(){$(".tm-ul > li").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}),r($(".content-tab-container").find(".tm-ul"))}function d(){function e(e){var t=0;return e.children().each(function(){t+=$(this).outerHeight(!0)}),t}function t(t){var n=t.parent(),a=t.siblings("ul");if(n.is(".active")){var i=e(a);a.animate({height:i+"px"},300),a.find(".active").length||a.find("li:first-child > a").addClass("selected")}else a.animate({height:"0px"},300);n.siblings().find("ul").animate({height:"0px"},300)}function n(e){var t=e.nextElementSibling;return(t?$(t).find($(t).find(".selected")[0]?".selected":"a:first")[0]:e).getAttribute("href")}function a(e){var t=$(".sidebar-collapsible-content");if(t){var a=n(e);t.find("> div").addClass("invisible").end().find(a+"-content").removeClass("invisible")}}var i=".sidebar-collapsible";!function(){$(i).find(".active").length&&$(i).find(".active").removeClass("active"),$(i).find("a").off("click").on("click",function(e){e.preventDefault();var n=$(this),i=n.parent("li"),s=i.siblings("li");i.hasClass("has-submenu")?n.toggleClass("selected").parent("li").toggleClass("active"):n.addClass("selected").parent("li").addClass("active"),s.removeClass("active").find("> a").removeClass("selected"),t(n),a(e.target)})}()}Object.defineProperty(t,"__esModule",{value:!0}),t.hide_menu=a,t.show_menu=i,t.navMenuListener=s,t.topNavMenuListener=l,t.documentListener=c,t.langListener=o,t.initMenuContent=r,t.tabListener=u,t.sidebarCollapsible=d,$(document).ready(function(){s(),l(),c(),o(),u(),d()})}])});
//# sourceMappingURL=binary.js.map
{
"name": "binary-style",
"version": "0.2.1",
"version": "0.2.2",
"description": "Style system and guide for Binary.com",

@@ -5,0 +5,0 @@ "main": "binary.js",

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc