fix buttons
This commit is contained in:
parent
7d9449e9a9
commit
e6803cd2b1
3 changed files with 5 additions and 4 deletions
|
@ -37,7 +37,7 @@
|
|||
<p class="simpleText ltr"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> This test tries to represent the wider set of ideas as possible and contains some phrases that can be shocking, notably concerning racism and homosexuality.</p>
|
||||
|
||||
<div class="navButtons">
|
||||
<a class="button" href="/quiz">Start the test</a>
|
||||
<button class="button" href="/quiz">Start the test</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -17,6 +17,7 @@ function shareLink() {
|
|||
try {
|
||||
// Now that we've selected the anchor text, execute the copy command
|
||||
if(document.execCommand('copy')) {
|
||||
document.execCommand('copy');
|
||||
var button = document.getElementById("buttonLink");
|
||||
if (button) {
|
||||
button.className = "button buttonLinkGood";
|
||||
|
|
|
@ -40,8 +40,8 @@
|
|||
<div id="urlToCopy" class="urlToCopy"></div>
|
||||
</div>
|
||||
<div class="navButtons">
|
||||
<a class="button buttonLink" onclick="shareLink();" id="buttonLink"><i class="fa fa-link" aria-hidden="true"></i> Copy Link</a>
|
||||
<a id="download" target="_blank" class="button buttonLink" onclick="download_image();"><i class="fa fa-download" aria-hidden="true"></i> Download</a>
|
||||
<button class="button buttonLink" onclick="shareLink();" id="buttonLink"><i class="fa fa-link" aria-hidden="true"></i> Copy Link</button>
|
||||
<button id="download" target="_blank" class="button buttonLink" onclick="download_image();"><i class="fa fa-download" aria-hidden="true"></i> Download</button>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
@ -362,7 +362,7 @@
|
|||
</div>
|
||||
|
||||
<div class="navButtons">
|
||||
<a class="button" href="/quiz">Restart the test</a>
|
||||
<button class="button" href="/quiz">Restart the test</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue