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

aglio-theme-w00tw00t

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aglio-theme-w00tw00t - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

2

package.json
{
"name": "aglio-theme-w00tw00t",
"version": "2.0.8",
"version": "2.0.9",
"description": "Theme with some fixes for the Aglio API Blueprint renderer",

@@ -5,0 +5,0 @@ "main": "lib/main.js",

@@ -72,24 +72,26 @@ /* eslint-env browser */

function toggleTabButton(event) {
var i, index;
var button = event.target;
var i = 0;
var name = button.getAttribute('tab-toggle');
var group = button.getAttribute('tab-toggle-group');
// Get index of the current button.
var buttons = childrenByClass(button.parentNode, 'tab-button');
for (i = 0; i < buttons.length; i++) {
if (buttons[i] === button) {
index = i;
button.className = 'tab-button active';
} else {
buttons[i].className = 'tab-button';
}
var tabs = document.querySelectorAll('.tab-button[tab-toggle-group="' + group + '"]');
[].forEach.call(tabs, function(el) {
el.className = el.className.replace(/\bactive\b/, "");
});
var tabs = document.querySelectorAll('.tab[tab-toggle-group="' + group + '"]');
for (i = 0; i < tabs.length; i++) {
tabs[i].style.display = 'none';
}
// Hide other tabs and show this one.
var tabs = childrenByClass(button.parentNode.parentNode, 'tab');
var tabs = document.querySelectorAll('.tab-button[tab-toggle="' + name + '"][tab-toggle-group="' + group + '"]');
for (i = 0; i < tabs.length; i++) {
if (i === index) {
tabs[i].className += ' active';
}
var tabs = document.querySelectorAll('.tab[tab-toggle-name="' + name + '"][tab-toggle-group="' + group + '"]');
for (i = 0; i < tabs.length; i++) {
tabs[i].style.display = 'block';
} else {
tabs[i].style.display = 'none';
}
}

@@ -197,15 +199,18 @@ }

var responseCodes = document.querySelectorAll('.tab-names');
for (i = 0; i < responseCodes.length; i++) {
var tabButtons = childrenByClass(responseCodes[i], 'tab-button');
for (j = 0; j < tabButtons.length; j++) {
tabButtons[j].onclick = toggleTabButton;
var tabButtons = document.querySelectorAll('.tab-button');
for (j = 0; j < tabButtons.length; j++) {
tabButtons[j].onclick = toggleTabButton;
// Show by default?
if (j === 0) {
toggleTabButton({target: tabButtons[j]});
}
// Show by default?
if (tabButtons[j].hasC === 0) {
toggleTabButton({target: tabButtons[j]});
}
}
tabButtons = document.querySelectorAll('.tab-button.active');
for (j = 0; j < tabButtons.length; j++) {
toggleTabButton({target: tabButtons[j]});
}
// Make nav items clickable to collapse/expand their content.

@@ -212,0 +217,0 @@ var navItems = document.querySelectorAll('nav .resource-group .heading');

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