File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 4949 background-position : left 0% ;
5050 }
5151
52+ .button : disabled {
53+ box-shadow : none;
54+ filter : grayscale ();
55+ pointer-events : none;
56+ }
57+
5258 .footer {
5359 position : fixed;
5460 bottom : 0 ;
Original file line number Diff line number Diff line change 4949 background-position : left 0% ;
5050 }
5151
52+ .button : disabled {
53+ box-shadow : none;
54+ filter : grayscale ();
55+ pointer-events : none;
56+ }
57+
5258 .footer {
5359 position : fixed;
5460 bottom : 0 ;
124130 < div id ="secret " class ="monospace ">
125131 {{- .Secret -}}
126132 </ div >
127- < button style ="margin-top: 3rem; user-select: none; " class ="center button " type ="button " onclick ="copySecretToClipboard() ">
133+ < button id =" btnCopy " style ="margin-top: 3rem; user-select: none; " class ="center button " type ="button " onclick ="copySecretToClipboard() " disabled = true >
128134 {{- translate "msg_copy" -}}
129135 </ button >
130136 </ div >
131137 < div style ="font-size: 16px; " class ="center footer ">
132138 {{ translate "msg_views_remaining" .Views }}
133139 </ div >
140+ <!-- styles onload script gets executed even when this body is swapped in via reveal -->
141+ < style onload ="if (navigator.clipboard) { document.getElementById('btnCopy').disabled = false; } "> </ style >
134142 </ body >
135143</ html >
You can’t perform that action at this time.
0 commit comments