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

@creativecommons/vocabulary-styles

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@creativecommons/vocabulary-styles - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

dist/assets/logos/cc/letterheart.svg

2

dist/js/vocabulary-styles.js

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

var vocabulary_styles=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);r(1)},function(e,t,r){}]);
var vocabulary_styles=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"createGlobalHeader",(function(){return i}));n(0);const r=(e,t=[],n=[],r=null)=>{const o=document.createElement(e);return t&&o.classList.add(...t),n&&n.forEach(e=>o.appendChild(e)),r&&r(o),o};class o{constructor(){((e,t="latest")=>{fetch(((e,t)=>`https://unpkg.com/@creativecommons/vocabulary@${e}/${t}`)(t,e)).then(e=>e.text()).then(e=>r("div",[],[],t=>{t.innerHTML=e,t.style.display="none"})).then(e=>{document.body.prepend(e)})})("/assets/logos/cc/logomark.svg"),this.logomark='<svg xmlns="http://www.w3.org/2000/svg"\n preserveAspectRatio="xMidYMid meet"\n viewBox="0 0 304 73">\n <use href="#logomark"></use>\n </svg>',this.element=null}queryApi(e){fetch("https://creativecommons.org/wp-json/ccglobal/menu").then(e=>e.json()).then(t=>{e(t)}).catch(e=>{console.log(e)})}build(e){const t=r("header",["column"],[r("a",["main-logo"],[r("div",["has-text-white"],[],e=>{e.innerHTML=this.logomark})],e=>{e.setAttribute("href","https://creativecommons.org"),e.setAttribute("target","_blank")})]),n=r("div",["column","visit-button-cover"],[r("aside",["visit-button-section"],[r("a",["button","small","donate"],[document.createTextNode("Visit site"),r("i",["icon","external-link","margin-left-small","is-size-6","padding-top-smaller"])],e=>{e.setAttribute("href","https://creativecommons.org"),e.setAttribute("target","_blank")})])]),o=r("div",["column"],[r("nav",["products"],[r("div",["product-list"],e.map(e=>r("a",["column","product-item"],[r("strong",[],[document.createTextNode(e.title)]),r("span",["item-description"],[document.createTextNode(e.description)])],t=>{t.setAttribute("href",e.url),t.setAttribute("target","_blank")})))],e=>{e.setAttribute("role","navigation"),e.setAttribute("aria-label","global navigation")})]),i=r("button",["open-tab"],[document.createTextNode("Explore CC")],e=>{e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false")}),s=r("header",["cc-global-header"],[r("div",["container"],[r("div",["columns","is-multiline","global-header-content"],[r("div",["columns","is-multiline","global-header-head"],[t,n]),r("div",["columns","is-multiline","global-header-main"],[o])]),i])]);i.addEventListener("click",e=>{e.preventDefault();const t=i.getAttribute("aria-expanded");i.setAttribute("aria-expanded",a(t)),s.classList.toggle("is-active")});const l=r("button",["explore-button"],[document.createTextNode("Explore CC")],e=>{e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false")});l.addEventListener("click",e=>{e.preventDefault();const t=l.getAttribute("aria-expanded");l.setAttribute("aria-expanded",a(t)),s.classList.toggle("is-active")});const u=document.querySelector(".navbar-start"),c=document.querySelector(".tabs-panel.explore"),d=s.cloneNode(!0);d.classList.add("is-active"),document.body.prepend(s),u?u.append(l):i.style.display="block",c&&c.appendChild(d),this.element=s}up(){this.queryApi(this.build.bind(this))}}function i(){const e=new o;return e.up(),e}const a=e=>"true"===e?"false":"false"===e?"true":void 0}]);
{
"name": "@creativecommons/vocabulary-styles",
"version": "0.2.0",
"version": "0.2.1",
"description": "A cohesive design system to unite the web facing Creative Commons",

@@ -5,0 +5,0 @@ "author": "Creative Commons (https://creativecommons.org)",

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