GithubHelp home page GithubHelp logo

BookBlock without jQuery about bookblock HOT 3 CLOSED

codrops avatar codrops commented on May 23, 2024
BookBlock without jQuery

from bookblock.

Comments (3)

botelho avatar botelho commented on May 23, 2024

Hello, you can initialize it like this:
var bb = new BookBlock(element, options);
A demo we did some time ago that uses the bookblock.js: https://github.com/codrops/BookPreview/blob/master/js/bookshelf.js
Cheers

from bookblock.

fidoboy avatar fidoboy commented on May 23, 2024

Thanks botelho. This library is very cool, i really love it :)

from bookblock.

Kembreg avatar Kembreg commented on May 23, 2024

Botelho, I really want to use the plugin but cannot get it to work. The demo pages have a lot of inline javascript. Is that needed? I would have thought that being a plugin, all the code is in the plugin.

I wrote this code to insert images after the page has loaded. What I am doing wrong?

$.getScript('//www.mysite.com/modernizr.custom.js');
$.getScript('//www.mysite.com/jquerypp.custom.js');
$.getScript('//www.mysite.com/jquery.bookblock.js');
'CODE TO APPEND bb-item
'$('#bb-bookblock').append(HTMLtoAppend);
'$('#bb-bookblock').bookblock();
'$('#bb-next').on('click', function() { $( '#bb-bookblock').bookblock('next') });
'$('#bb-prev').on('click', function() { $( '#bb-bookblock').bookblock('prev') });

Thanks for your help!

David

from bookblock.

Related Issues (20)

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.