調整上下頁樣式
This commit is contained in:
parent
9b0762f1e9
commit
3f836c8374
|
@ -1,14 +1,17 @@
|
|||
<div class="publication">
|
||||
<div id="magazine">
|
||||
</div>
|
||||
<ul class="button-mid">
|
||||
<i class="fa fa-angle-left prev-button" aria-label="上一張"></i>
|
||||
<i class="fa fa-angle-right next-button" aria-label="下一張"></i>
|
||||
</ul>
|
||||
</div>
|
||||
<%= stylesheet_link_tag "publications/pdf-turn.css" %>
|
||||
<%= javascript_include_tag "publications/pdf/pdf.worker.js" %>
|
||||
<%= javascript_include_tag "publications/pdf/pdf.js" %>
|
||||
<%= javascript_include_tag "publications/turn.min.js" %>
|
||||
<%= javascript_include_tag "publications/pdf-turn.js" %>
|
||||
<div class="flip-control">
|
||||
<a href="#" id="prev"> Previous </a>
|
||||
<a href="#" id="next"> Next </a>
|
||||
</div>
|
||||
|
||||
<style type="text/css">
|
||||
div.flip-control {
|
||||
width: 400px;
|
||||
|
@ -52,6 +55,9 @@ div.flip-control a {
|
|||
background-image: -o-linear-gradient(left, #FFF 95%, #ddd 100%);
|
||||
background-image: -ms-linear-gradient(left, #FFF 95%, #ddd 100%);
|
||||
}
|
||||
.publication .button-mid {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
@ -169,11 +175,11 @@ div.flip-control a {
|
|||
$('#magazine').turn('next');
|
||||
|
||||
});
|
||||
$('#prev').click(function(){
|
||||
$('.publication .prev-button').click(function(){
|
||||
$('#magazine').turn('previous');
|
||||
return false;
|
||||
});
|
||||
$('#next').click(function(){
|
||||
$('.publication .next-button').click(function(){
|
||||
$('#magazine').turn('next');
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue