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

tema-design-site

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tema-design-site - npm Package Compare versions

Comparing version 1.0.0 to 1.0.11

2

dist/js/site.js

@@ -107,3 +107,3 @@ /******/ (function(modules) { // webpackBootstrap

eval("document.addEventListener(\"DOMContentLoaded\", function() {\n let searchIcon = document.getElementById('search-icon-menu');\n hamburguerMenu = document.getElementById('mobile-menu'),\n overlayBackground = document.getElementById('back-menu'),\n overlayBackgroundDesktop = document.getElementById('back-menu-large'),\n menu = document.getElementById('header-menu'),\n adminBar = document.querySelector('.admin-bar'),\n menuParent = document.querySelectorAll('.parent-links');\n\n searchIcon.addEventListener('click', function() {\n if (searchIcon.classList.contains('ds-icon-search')) {\n searchIcon.classList.remove('ds-icon-search');\n searchIcon.classList.add('ds-icon-close');\n } else {\n searchIcon.classList.remove('ds-icon-close');\n searchIcon.classList.add('ds-icon-search');\n }\n }, false);\n\n hamburguerMenu.addEventListener(\"change\", function() {\n if(hamburguerMenu.checked){\n overlayBackground.classList.add('active-back-menu');\n } else {\n overlayBackground.classList.remove('active-back-menu');\n }\n }, false);\n\n menu.addEventListener(\"mouseover\", function() {\n overlayBackgroundDesktop.classList.add('active-back-menu');\n });\n\n menu.addEventListener(\"mouseout\", function() {\n overlayBackgroundDesktop.classList.remove('active-back-menu');\n });\n\n menuParent.forEach(function(element) {\n \telement.addEventListener('click', function(event) {\n event.preventDefault();\n let parent = this.parentElement,\n \t subMenu = this.nextElementSibling;\n if (subMenu !== null) {\n if (subMenu.classList.contains('hide')) {\n subMenu.classList.remove('hide');\n }\n else {\n subMenu.classList.add('hide');\n }\n }\n }, false);\n });\n\n window.onscroll = function(e) {\n let scrollY = window.pageYOffset || document.documentElement.scrollTop,\n topbar = document.getElementById(\"topbar\"),\n height = -topbar.clientHeight;\n if (scrollY <= Math.max(this.lastScroll, 50) || this.loaded === undefined) {\n if (adminBar !== null) {\n topbar.style.top = '32px'\n } else {\n topbar.style.top = '0'\n }\n } else {\n topbar.style.top = '-110px'\n }\n this.lastScroll = scrollY;\n this.loaded = true;\n }\n});\n\n\n//# sourceURL=webpack:///../js/menu.js?");
eval("var loadMenu = function () {\n let searchIcon = document.getElementById('search-icon-menu');\n hamburguerMenu = document.getElementById('mobile-menu'),\n overlayBackground = document.getElementById('back-menu'),\n overlayBackgroundDesktop = document.getElementById('back-menu-large'),\n menu = document.getElementById('header-menu'),\n adminBar = document.querySelector('.admin-bar'),\n menuParent = document.querySelectorAll('.parent-links');\n\n searchIcon.addEventListener('click', function () {\n if (searchIcon.classList.contains('ds-icon-search')) {\n searchIcon.classList.remove('ds-icon-search');\n searchIcon.classList.add('ds-icon-close');\n } else {\n searchIcon.classList.remove('ds-icon-close');\n searchIcon.classList.add('ds-icon-search');\n }\n }, false);\n\n hamburguerMenu.addEventListener(\"change\", function () {\n if (hamburguerMenu.checked) {\n overlayBackground.classList.add('active-back-menu');\n } else {\n overlayBackground.classList.remove('active-back-menu');\n }\n }, false);\n\n menu.addEventListener(\"mouseover\", function () {\n overlayBackgroundDesktop.classList.add('active-back-menu');\n });\n\n menu.addEventListener(\"mouseout\", function () {\n overlayBackgroundDesktop.classList.remove('active-back-menu');\n });\n\n menuParent.forEach(function (singleParent) {\n singleParent.addEventListener('click', function (event) {\n event.preventDefault();\n let parent = this.parentElement,\n subMenu = this.nextElementSibling;\n if (subMenu !== null) {\n if (subMenu.classList.contains('ds-hide')) {\n subMenu.classList.remove('ds-hide');\n singleParent.children[0].classList.add('ds-icon-arrow-up');\n singleParent.children[0].classList.remove('ds-icon-arrow-down');\n singleParent.classList.add('parent-dashed');\n }\n else {\n subMenu.classList.add('ds-hide');\n singleParent.children[0].classList.remove('ds-icon-arrow-up');\n singleParent.children[0].classList.add('ds-icon-arrow-down');\n singleParent.classList.remove('parent-dashed');\n }\n }\n }, false);\n });\n\n window.onscroll = function (e) {\n let scrollY = window.pageYOffset || document.documentElement.scrollTop,\n topbar = document.getElementById(\"topbar\"),\n height = -topbar.clientHeight;\n if (scrollY <= Math.max(this.lastScroll, 50) || this.loaded === undefined) {\n if (adminBar !== null) {\n topbar.style.top = '32px'\n } else {\n topbar.style.top = '0'\n }\n } else {\n topbar.style.top = '-110px'\n }\n this.lastScroll = scrollY;\n this.loaded = true;\n }\n}\n\nloadMenu();\n\nmodule.exports = loadMenu;\n\n\n//# sourceURL=webpack:///../js/menu.js?");

@@ -110,0 +110,0 @@ /***/ }),

{
"name": "tema-design-site",
"version": "1.0.0",
"version": "1.0.11",
"description": "Site to show design system in action",

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

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