Skip to content

Commit

Permalink
switched to different QR code lib
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRepke committed Sep 29, 2015
1 parent 8b2d6bb commit 232028b
Show file tree
Hide file tree
Showing 3 changed files with 2,370 additions and 5 deletions.
21 changes: 17 additions & 4 deletions registration-system/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function index_show_signupTable_destroyTypes($anabtyp) {


function index_show_countdown($opentime) {
echo '<script type="text/javascript" src="view/js/qrcode.min.js"></script>';
echo '<script type="text/javascript" src="view/js/jquery.qrcode.js"></script>';
echo "
<script>
var a = '0123456789abcdef';
Expand Down Expand Up @@ -450,8 +450,21 @@ function hurrdurrr(num) {
}
$(function () {
var url = window.location.href;
console.log(url);
if(url.indexOf('#showQR')>0) new QRCode(document.getElementById('QRcode'), url.replace('#showQR',''));
if(url.indexOf('#showQR')>0) $('#QRcode').qrcode({
render: 'canvas',
ecLevel: 'Q',
size: 150,
fill: '#000',
background: null,
text: url.replace('#showQR',''),
radius: 0.5,
quiet:2,
mode: 2,
label: 'FS Fahrt',
fontname: 'sans',
fontcolor: '#ff9818'
});
hurrdurr();
setInterval(hurrdurr, 1000);
});
Expand All @@ -468,6 +481,6 @@ function hurrdurrr(num) {
</div>
</div>';

echo '<div id="QRcode" style="position: fixed; bottom: 10px; right: 10px;"></div>';
echo '<canvas id="QRcode" style="position: fixed; bottom: 10px; right: -240px;width:500px;height:250px;"></canvas>';

}
Loading

0 comments on commit 232028b

Please sign in to comment.