Widget:Singlepaymentsepa: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 3: | Zeile 3: | ||
<script type="text/javascript" src="/qrcode/jquery.js"></script> | <script type="text/javascript" src="/qrcode/jquery.js"></script> | ||
<script type="text/javascript" src="/qrcode/jquery.qrcode.min.js"></script> | <script type="text/javascript" src="/qrcode/jquery.qrcode.min.js"></script> | ||
+ | |||
+ | // move new jQuery completely in new object and use this. | ||
+ | var my = {}; | ||
+ | my.query = jQuery.noConflict( true ); | ||
+ | |||
<div id="qrcode"></div> | <div id="qrcode"></div> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | + | my.query('#qrcode').qrcode("this plugin is great"); | |
//make qrcode clickable | //make qrcode clickable | ||
− | + | my.query('#qrcode').click(function() { | |
alert( "Handler for .click() called." ); | alert( "Handler for .click() called." ); | ||
}) | }) |
Version vom 13. Dezember 2018, 15:07 Uhr
<script type="text/javascript" src="/qrcode/jquery.js"></script>
<script type="text/javascript" src="/qrcode/jquery.qrcode.min.js"></script>
// move new jQuery completely in new object and use this. var my = {}; my.query = jQuery.noConflict( true );
<script type="text/javascript"> my.query('#qrcode').qrcode("this plugin is great"); //make qrcode clickable my.query('#qrcode').click(function() {
alert( "Handler for .click() called." );
}) </script>