Widget:Twentytwenty: Unterschied zwischen den Versionen

Aus FürthWiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:


<div class='twentytwenty-container'>
<div class='twentytwenty-container'>
  <img src='{{Bild1}}' />
  <img src='<!--{$Bild1|escape:'html'}-->' />
  <img src='{{Bild2}}-->' />
  <img src='<!--{$Bild2|escape:'html'}-->' />
</div>
</div>


Zeile 12: Zeile 12:
$(function(){
$(function(){
   $('.twentytwenty-container').twentytwenty({
   $('.twentytwenty-container').twentytwenty({
     before_label: '{{title1 | "Bild1" }}',
     before_label: '<!--{$title1|escape:'html'}-->',
     after_label: '{{title2 | "Bild2" }}',
     after_label: '<!--{$title2|escape:'html'}-->',
   });
   });
});
});

Version vom 13. Juni 2017, 10:15 Uhr

<html>

<img src= />
<img src= />

<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/mhayes-twentytwenty/2.0.0-beta.1/jquery.twentytwenty.min.js"></script>

<script type="text/javascript"> $(function(){

 $('.twentytwenty-container').twentytwenty({
   before_label: ,
   after_label: ,
 });

}); </script>

</html>