fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
91c9f19
)
Support for <animacja> in HTML.
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 5 Feb 2020 11:36:27 +0000
(12:36 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 5 Feb 2020 11:36:27 +0000
(12:36 +0100)
librarian/xslt/book2html.xslt
patch
|
blob
|
history
diff --git
a/librarian/xslt/book2html.xslt
b/librarian/xslt/book2html.xslt
index
1704953
..
53ba882
100644
(file)
--- a/
librarian/xslt/book2html.xslt
+++ b/
librarian/xslt/book2html.xslt
@@
-20,9
+20,15
@@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link href="https://static.wolnelektury.pl/css/compressed/book_text.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link href="https://static.wolnelektury.pl/css/compressed/book_text.css" rel="stylesheet" type="text/css" />
+ <style>
+ .animacja {cursor: pointer;}
+ </style>
</head>
<body>
</head>
<body>
- <xsl:call-template name="book-text" />
+ <xsl:call-template name="book-text" />
+
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
+ <script src="http://malsup.github.io/min/jquery.cycle2.min.js"></script>
</body>
</html>
</xsl:when>
</body>
</html>
</xsl:when>
@@
-139,6
+145,12
@@
</img>
</xsl:template>
</img>
</xsl:template>
+<xsl:template match="animacja">
+ <div class="animacja cycle-slideshow" data-cycle-pause-on-hover="true" data-cycle-next="> img" data-cycle-fx="fadeout" data-cycle-paused="true">
+ <xsl:apply-templates/>
+ </div>
+</xsl:template>
+
<!-- ========================================== -->
<!-- = PARAGRAPH TAGS = -->
<!-- ========================================== -->
<!-- = PARAGRAPH TAGS = -->