Skip to content

Commit

Permalink
Add ACNL QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Bettencourt committed Jun 3, 2021
1 parent 835e291 commit 8f6208e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
--><a class="tab" data-tab-class="downloads"><span class="alt-acc">D</span>ownloads</a><!--
--><a class="tab" data-tab-class="encoding"><span class="alt-acc">E</span>ncoding</a><!--
--><a class="tab" data-tab-class="colors"><span class="alt-acc">C</span>olors</a><!--
--><a class="tab" data-tab-class="acqr"><span class="alt-acc">A</span>CQR</a><!--
--></div>

<div class="tab-content properties">
Expand Down Expand Up @@ -467,6 +468,10 @@

<div class="tab-content colors">
</div>

<div class="tab-content acqr">
<img width="400" height="240">
</div>
</div>

<script src="jquery.js" charset="utf-8"></script>
Expand Down
4 changes: 4 additions & 0 deletions app/vexillo.css
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,10 @@ th, td {
height: 20px;
border: 1px solid rgba(0, 0, 0, 0.2);
}
.acqr {
padding: 12px;
text-align: center;
}
.clickcopy {
-webkit-touch-callout: none;
-webkit-user-select: none;
Expand Down
4 changes: 4 additions & 0 deletions app/vexillo.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ $(document).ready(function() {
}
colors.append(ce);
}
/* ACQR */
var acqrURL = artworkURL + '/pvx240/' + flag.id + '.png';
$('.acqr img').attr('src', acqrURL);
$('.dialog').removeClass('hidden');
};
var closeDialog = function() {
Expand Down Expand Up @@ -853,6 +856,7 @@ $(document).ready(function() {
case 68: setCurrentTab('downloads'); break;
case 69: setCurrentTab('encoding'); break;
case 67: setCurrentTab('colors'); break;
case 65: setCurrentTab('acqr'); break;
default: return;
}
e.preventDefault();
Expand Down

0 comments on commit 8f6208e

Please sign in to comment.