Commit 87b3e733 authored by calocedre TAC's avatar calocedre TAC
Browse files

Merge branch 'feat/display-deeplinks' into 'master'

display deeplinks (easy for TAC to copy/paste as well a list) + moved from http to https

See merge request !32
parents 080c4f27 8fa47a25
Pipeline #238219 passed with stages
in 8 minutes and 23 seconds
......@@ -97,6 +97,11 @@
<input type="text" id="locationPin" name="locationPin" minlength="6" maxlength="6" title="Secret digit PIN must contain exactly 6 characters"/>
</div>
</div>
<h2>Deeplinks</h2>
<div id="deeplinks"></div>
</div>
</body>
......
......@@ -51,8 +51,10 @@ import {cleaStartNewPeriod} from './clea'
}
let b64 = await cleaStartNewPeriod(conf);
qrcode.makeCode("http://tac.gouv.fr?v=0#" + b64);
let newDeeplink = "https://tac.gouv.fr?v=0#" + b64;
let deeplinks = document.getElementById('deeplinks').innerHTML;
document.getElementById('deeplinks').innerHTML = deeplinks + "<p><a href="+newDeeplink+">" + newDeeplink + "</a></p>";
qrcode.makeCode(newDeeplink);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment