Giter Site home page Giter Site logo

bespoke-printable-bullete's Introduction

Build Status

bespoke-printable-bullets

Clone section which use bullete.

Why this plugin?

If you must output pdf, but want use bespoke and bullets slide, this plugin is very helpful

Download

Download the production version or the development version, or use a package manager.

Usage

First, include both bespoke.js and bespoke-printable-bullets.js in your page.

Then, simply include the plugin when instantiating your presentation.

bespokeBullets('article',"ul li", function(s,b){
  bespoke.from(s, {
    keys: true,
    touch: true,
  });
})

Package managers

Bower

$ bower install bespoke-printable-bullets

npm

$ npm install bespoke-printable-bullets

The bespoke-printable-bullets npm package is designed for use with browserify, e.g.

require('bespoke');
require('bespoke-printable-bullets');

Credits

This plugin was built with generator-bespokeplugin.

License

MIT License

Plugin run with before hook events.

Hello. I tried to create plugin that modify sections before bespoke start hook event. But currently cannot that.

Out of necessity, I implement this function as outside plugin. But that so dirty. :(

beforeBespke('article', function(from){
  bespoke.from(from, {
    keys: true,
    touch: true,
  });
})
var beforeBespke = function(from, callback){
  // emulate bespoke from
  var parent = selectorOrElement.nodeType === 1 ? selectorOrElement : document.querySelector(selectorOrElement)
  var slides = [].filter.call(parent.children, function(el) { return el.nodeName !== 'SCRIPT'; })
  var deck = {
    slides : slides
  }

  //  :
  // do something modification to slide.
  // (This is a point want to plugin)
  //  :

  callback(from)
}

Please tell me if you have more good idea

bespoke-printable-bullete's People

Contributors

suisho avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.