Add usage of qrcode.js
- Display qrcode in Privacy page
This commit is contained in:
parent
ea907db5de
commit
e79d2dff56
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
<p>Use this page to detail your site's privacy policy.</p>
|
<p>Use this page to detail your site's privacy policy.</p>
|
||||||
<div>
|
<div>
|
||||||
|
<div id="qrcode"></div>
|
||||||
<ul>
|
<ul>
|
||||||
@foreach(var item in Model.Items)
|
@foreach(var item in Model.Items)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -48,6 +48,7 @@
|
|||||||
|
|
||||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script src="~/lib/qrcodejs/qrcode.min.js"></script>
|
||||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||||
|
|
||||||
@await RenderSectionAsync("Scripts", required: false)
|
@await RenderSectionAsync("Scripts", required: false)
|
||||||
|
|||||||
@ -2,3 +2,7 @@
|
|||||||
// for details on configuring this project to bundle and minify static web assets.
|
// for details on configuring this project to bundle and minify static web assets.
|
||||||
|
|
||||||
// Write your JavaScript code.
|
// Write your JavaScript code.
|
||||||
|
|
||||||
|
$(function(){
|
||||||
|
new QRCode(document.getElementById("qrcode"), "https://plugarii.com");
|
||||||
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user