قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-22 06:57:53 +00:00

* update npm packages to latest * fix javascript path location * update screenshots * Add node_modules for users that do not have npm insalled but use git to deploy. * fix release checklist test * Add old chroma-js + some files missing from node_module. * remove npm install * fix .travis.yml * update expected screenshots * update submodule Co-authored-by: sgiehl <stefan@matomo.org>
38 خطوط
1.1 KiB
XML
Vendored
38 خطوط
1.1 KiB
XML
Vendored
<?xml version="1.0" standalone="yes"?>
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-50 0 200 100">
|
|
<g id="qrcode"/>
|
|
<foreignObject x="-50" y="0" width="100" height="100">
|
|
<body xmlns="http://www.w3.org/1999/xhtml" style="padding:0; margin:0">
|
|
<div style="padding:inherit; margin:inherit; height:100%">
|
|
<textarea id="text" style="height:100%; width:100%; position:absolute; margin:inherit; padding:inherit">james</textarea>
|
|
</div>
|
|
<script type="application/ecmascript" src="qrcode.js"></script>
|
|
<script type="application/ecmascript">
|
|
var elem = document.getElementById("qrcode");
|
|
var qrcode = new QRCode(elem, {
|
|
width : 100,
|
|
height : 100
|
|
});
|
|
|
|
function makeCode () {
|
|
var elText = document.getElementById("text");
|
|
|
|
if (elText.value === "") {
|
|
//alert("Input a text");
|
|
//elText.focus();
|
|
return;
|
|
}
|
|
|
|
qrcode.makeCode(elText.value);
|
|
}
|
|
|
|
makeCode();
|
|
|
|
document.getElementById("text").onkeyup = function (e) {
|
|
makeCode();
|
|
};
|
|
</script>
|
|
</body>
|
|
</foreignObject>
|
|
</svg>
|