Widget:Singlepaymentsepa
Version vom 19. Dezember 2018, 13:39 Uhr von Stephan (Diskussion | Beiträge)
<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 myjquery = jQuery.noConflict( true );
// start when DOM is ready myjquery(function() {
var url = myjquery('#qrcode').qrcode(url);
});
/*
//make qrcode clickable
my.jquery('#qrcode').click(function() {
alert( 'my.url' );
})
- /
</script>