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

docpad-plugin-iconmonstrtipsy

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-iconmonstrtipsy

Eco iconmonstr SVG icons as functions for Docpad via getBlock() codes, plus a tooltip argument!

  • 2.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

iconmonstr + tipsy for DocPad

via Eco functions

Alt text

Install: docpad install iconmonstrtipsy

Function: getIconmonstrTipsyBlock(iconName,'iconId,iconClass,tipsy`)

Real world example: <%- @getIconmonstrTipsyBlock('globe','iconmonstr-head-id','cool-class','data-placement="right" data-content="Some more content here. This is my second tooltip."') %>

Required

Have the following in your /scripts/script.js file or in it's own YUI javascript file:

YUI({
        gallery: 'gallery-2013.03.27-22-06'
    }).use('gallery-tipsy','gallery-popover', function (Y) { 
        //Y.Popover is loaded and good to go.

     var tipsy = new Y.Tipsy({
        selector: "[rel='tipsy']"
    });

    tipsy.render(); 
});

YUI 3 is a dependency for this plugin so no need to also load YUI as a script in docpad.coffee's scripts: [] or otherwise.

Keywords

FAQs

Package last updated on 24 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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