Widget:Singlepaymentsepa: Unterschied zwischen den Versionen

Aus Freifunk Dresden - Anwender-Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 
<!--{if isset($qrcode)}-->
 
<!--{if isset($qrcode)}-->
  
<script type="text/javascript" src="/qrcode/jquery.js"></script>
+
<div>
<script type="text/javascript" src="/qrcode/jquery.qrcode.min.js"></script>
+
<script type="text/javascript" src="/qrcode/jquery.js"></script>
 +
<script type="text/javascript" src="/qrcode/jquery.qrcode.min.js"></script>
  
 +
<div id="qrcode"></div>
 +
 +
<script type="text/javascript">
  
 +
/*
 +
https://api.jquery.com/jquery.noconflict/
  
 +
If for some reason two versions of jQuery are loaded (which is not recommended),
 +
calling $.noConflict(true) from the second version will return the globally
 +
scoped jQuery variables to those of the first version.
 +
Some times it could be issue with older version (or not stable) of JQuery files.
 +
 +
Solution: move new jQuery completely in new object and use this.
 +
*/
 +
 +
var my = {};
 +
my.jquery = jQuery.noConflict( true );
  
<div id="qrcode"></div>
 
  
<script type="text/javascript">
+
my.jquery('#qrcode').qrcode("this plugin is great");
jquery('#qrcode').qrcode("this plugin is great");
 
 
//make qrcode clickable
 
//make qrcode clickable
jquery('#qrcode').click(function() {
+
my.jquery('#qrcode').click(function() {
 
   alert( "Handler for .click() called." );
 
   alert( "Handler for .click() called." );
 
})
 
})
 
</script>
 
</script>
  
 +
</div>
  
 
<!--{else}-->
 
<!--{else}-->

Version vom 13. Dezember 2018, 15:21 Uhr


<script type="text/javascript" src="/qrcode/jquery.js"></script>
<script type="text/javascript" src="/qrcode/jquery.qrcode.min.js"></script>

<script type="text/javascript">

/* https://api.jquery.com/jquery.noconflict/

If for some reason two versions of jQuery are loaded (which is not recommended), calling $.noConflict(true) from the second version will return the globally scoped jQuery variables to those of the first version. Some times it could be issue with older version (or not stable) of JQuery files.

Solution: move new jQuery completely in new object and use this.

  • /

var my = {}; my.jquery = jQuery.noConflict( true );


my.jquery('#qrcode').qrcode("this plugin is great"); //make qrcode clickable my.jquery('#qrcode').click(function() {

 alert( "Handler for .click() called." );

}) </script>


<a href="bank://singlepaymentsepa?name=Freifunk%20Dresden%20e.%20V.&reason=Mitgliedsbeitrag%20&iban=DE83830654080004956222&bic=GENODEF1SLR&amount="></a>