Skip to content

Commit a150940

Browse files
committed
Typescript code added to show/hide download button
1 parent cb5d0ad commit a150940

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
window.addEventListener('load', () => {
2+
const button = document.getElementById('btn') as HTMLButtonElement | null;
3+
if (button) {
4+
button.style.display = 'block';
5+
button.addEventListener('click', () => {
6+
button.style.display = 'none';
7+
});
8+
}
9+
});

DigitalLearningSolutions.Web/Views/Certificate/Index.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,4 @@
101101
</div>
102102
</body>
103103
</html>
104+
<script src="@Url.Content("~/js/certificate/certificate.js")" asp-append-version="true"></script>

0 commit comments

Comments
 (0)