19 |
20 |
Source: FontSizer.js
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | /**
30 | * Increases font size value by 1
31 | */
32 | function increaseValue() {
33 | var value = Number(document.getElementById('number').value);
34 | value = isNaN(value) ? 0 : value;
35 | value++;
36 | document.getElementById('number').value = value;
37 | // let width = document.getElementById('container').offsetWidth;
38 | //let height = width / rat;
39 | boundary.fontsize = value / rat;
40 | mark();
41 | console.log(value);
42 | }
43 |
44 | /**
45 | * Decreases font size value by 1
46 | */
47 | function decreaseValue() {
48 | var value = Number(document.getElementById('number').value);
49 | value = isNaN(value) ? 0 : value;
50 | value < 1 ? value = 1 : '';
51 | value--;
52 | document.getElementById('number').value = value;
53 | //let width = document.getElementById('container').offsetWidth;
54 | // let height = width / rat;
55 | boundary.fontsize = value / rat;
56 | mark();
57 | console.log(value);
58 | }
59 |
60 | /**
61 | * Sets the font to the user selected font
62 | */
63 | function newfont() {
64 | var value = Number(document.getElementById('number').value);
65 | let width = document.getElementById('container').offsetWidth;
66 | let height = width / rat;
67 | boundary.fontsize = value / height;
68 | mark();
69 | }
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
19 |
20 |
Source: main.js
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | /**
30 | * Loader container element
31 | */
32 | const containerLoad = document.querySelector(".loader");
33 |
34 | /**
35 | * collectors modal element when "Collectors" button is clicked
36 | */
37 | const modal = document.querySelector(".collectors-modal");
38 |
39 | /**
40 | * Hides Loader
41 | */
42 | function HideLoader() {
43 | containerLoad.classList.toggle("zero-opacity");
44 | setTimeout(() => {
45 | containerLoad.classList.toggle("hide");
46 | }, 350);
47 | }
48 |
49 | /**
50 | * Shows loader
51 | */
52 | function ShowLoader() {
53 | containerLoad.classList.toggle("zero-opacity");
54 | containerLoad.classList.toggle("hide");
55 | }
56 |
57 | /**
58 | *
59 | */
60 | function CopyToClipBoard() {
61 | let copyText = document.querySelector("#link");
62 |
63 | copyText.select();
64 | copyText.setSelectionRange(0, 99999); /*For mobile devices*/
65 |
66 | document.execCommand("copy");
67 |
68 | alert("Copied Successfully!");
69 | }
70 |
71 | /**
72 | * Hides loader when page has finished rendering.
73 | * @type {Window}
74 | */
75 | window.onload = function(){
76 | HideLoader();
77 | }
78 |
79 | /**
80 | * Toggles collectors modal to display/hide.
81 | */
82 | function ToggleModal(){
83 | modal.classList.toggle("hide");
84 | }
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
83 |
84 | Enter Bearers name
85 | Hi there! Who is this certificate being issued to?
86 |
87 |
96 |
97 |
98 | A certificate has already been generted for this account. You may regenerate here
99 |
100 |
101 |
104 |
105 |
106 |
111 |
112 |
113 |
125 |
126 |
127 |
152 |
153 |
154 |
155 |
--------------------------------------------------------------------------------
/views/dashboard.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
14 |
78 |
79 | Enter Email address
80 | Hi there! Please enter the email address recognized by your issuer
81 |
82 |
91 |
92 |
93 |
95 |
110 |
111 |
160 |
161 |
162 |
163 |
--------------------------------------------------------------------------------
/views/forgot-email.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
14 |