Widget:Twentytwenty: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K |
(load jquery-plugin asyncronous) |
||
Zeile 1: | Zeile 1: | ||
− | < | + | <noinclude>__NOTOC__ |
− | + | TwentyTwenty-Image Widget | |
− | < | + | </noinclude> |
− | + | <includeonly> | |
<style> | <style> | ||
.twentytwenty-wrapper { | .twentytwenty-wrapper { | ||
Zeile 17: | Zeile 17: | ||
} | } | ||
</style> | </style> | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<div class="twentytwenty-container"> | <div class="twentytwenty-container"> | ||
<img src="<!--{$Bild1}-->" /> | <img src="<!--{$Bild1}-->" /> | ||
<img src="<!--{$Bild2}-->" /> | <img src="<!--{$Bild2}-->" /> | ||
</div> | </div> | ||
− | </ | + | |
− | </ | + | <script> |
+ | RLQ.push(function(){ | ||
+ | $(function(){ | ||
+ | $.getScript( "https://fuerthwiki.de/wiki/resources/lib/twentytwenty/jquery.twentytwenty.min.js", function( data, textStatus, jqxhr ) { | ||
+ | console.log("initializing ImageSlider"); | ||
+ | $('.twentytwenty-container').twentytwenty(); | ||
+ | }); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | </includeonly> |
Version vom 22. August 2017, 11:15 Uhr
TwentyTwenty-Image Widget