jquery plugin to convert target text into paged-media card
  • HTML 55.3%
  • JavaScript 37.9%
  • CSS 6.8%
Find a file
2015-06-24 19:47:08 +09:00
jquery.paged-card.css first commit 2014-02-26 13:14:36 +09:00
jquery.paged-card.html fix setup 2015-06-24 19:47:08 +09:00
jquery.paged-card.js fix setup 2015-06-24 19:47:08 +09:00
README.md first commit 2014-02-26 13:14:36 +09:00

jquery.paged-card.js

Summary

Convert target into paged-media card.

Not only horizontal but also vertical format is supported.

See demo.

Prerequisites

Install

<!-- stylesheets -->
<link href="/path/to/nehan.css" type="text/css" rel="stylesheet">
<link href="/path/to/jquery.paged-card.css" type="text/css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">

<!-- javascripts -->
<script src="/path/to/jquery.js" type="text/javascript"></script>
<script src="/path/to/underscore.js" type="text/javascript"></script>
<script src="/path/to/backbone.js" type="text/javascript"></script>
<script src="/path/to/nehan.js" type="text/javascript"></script>
<script src="/path/to/jquery.paged-card.js" type="text/javascript"></script>

Usage

<!-- horizontal card -->
<div class="foo" data-title="card1" data-font-size="16" data-width="640" data-height="480" data-direction="hori">
  some horizontal text here
</div>

<!-- vertical card -->
<div class="foo" data-title="card2" data-font-size="16" data-width="640" data-height="480" data-direction="vert">
  some vertical text here
</div>

<!-- javascript -->
<script type="text/javascript">
$(function(){
  $(".foo").pagedCard();
});
</script>

Options

See document.

Support

IE9+(IE8 maybe), Firefox3.5+, Chrome4+, Safari5+, Opera10+

License

MIT