Skip to content

Commit

Permalink
Fix for issue #4
Browse files Browse the repository at this point in the history
Signed-off-by: difegue <sugoi@cock.li>
  • Loading branch information
Difegue committed Dec 17, 2017
1 parent f2b7cda commit f3b046e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions templates/reader.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

</head>

<body onload=" $('img[usemap]').rwdImageMaps(); set_style_from_storage();">
<body onload="set_style_from_storage();">

[% cssdrop %]
<script>set_style_from_storage();</script>
Expand All @@ -37,8 +37,8 @@
<a id ="display">
<img id="img" onload="updateMetadata()" style="max-width:100%; height: auto; width: auto; " src="[% imgpath %]" usemap="#Map" />
<map name="Map" id="Map">
<area id="leftmap" alt="" title="" onclick="goLeft()" shape="rect" coords="0,0,[% mapwidth %],[% height %]" />
<area id="rightmap" alt="" title="" onclick="goRight()" shape="rect" coords="[% mapwidth + 1 %],0,[% width %],[%height%]" />
<area id="leftmap" style="cursor:pointer;" onclick="goLeft()" shape="rect"/>
<area id="rightmap" style="cursor:pointer;" onclick="goRight()" shape="rect"/>
</map>
</a>

Expand Down Expand Up @@ -122,6 +122,9 @@
[% #compute those blocks before getting to the main html %]
[% BLOCK arrows %]
<div class="sn">
[% IF readorder %]
<a onclick="goToPage(pageNumber-1)" style="cursor:pointer;">
[% ELSE %]
<a onclick="goToPage(0)" style="cursor:pointer;">
<i class="fa fa-angle-double-left fa-2x"></i>
</a>
Expand All @@ -138,6 +141,9 @@
<i class="fa fa-angle-right fa-2x"></i>
</a>

[% IF readorder %]
<a onclick="goToPage(0)" style="cursor:pointer;">
[% ELSE %]
<a onclick="goToPage(pageNumber-1)" style="cursor:pointer;">
<i class="fa fa-angle-double-right fa-2x"></i>
</a>
Expand Down

0 comments on commit f3b046e

Please sign in to comment.