Skip to content
View jdvivar's full-sized avatar
💭
"Fail faster"
💭
"Fail faster"

Block or report jdvivar

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. eleventy-plugin-add-web-component-definitions eleventy-plugin-add-web-component-definitions Public

    This Eleventy plugin will add Web Component definitions automatically by reading custom tags from HTML pages.

    JavaScript 20 2

  2. chiquito-ipsum-api chiquito-ipsum-api Public

    Chiquito Ipsum API

    JavaScript 2

  3. hbl-feature-flags hbl-feature-flags Public

    Feature Flags app for HBL

    Vue 1

  4. Improved pixel anchor observer from Improved pixel anchor observer from
    1
    // Res.: https://css-tricks.com/styling-based-on-scroll-position/
    2
    
                  
    3
    let anchor = document.getElementById('pixel-anchor')
    4
    
                  
    5
    if (!anchor) {
  5. Add style rules inside Web Components Add style rules inside Web Components
    1
    // target is a web component with an open ShadowDOM
    2
    const target = document.querySelector(...)
    3
    target.shadowRoot.styleSheets[0].insertRule(`
    4
        selector {
    5
            padding: 8px;
  6. Find all anchor URLs (including in w... Find all anchor URLs (including in web components' shadow root nodes)
    1
    function recursiveFindAnchors(node) {
    2
        if (!node) return []
    3
    
                  
    4
        // Find anchors URLs
    5
        const bareAnchorURLs = [...node.querySelectorAll('a')].map(anchor => formatHref(anchor.href))