Abram Kash пре 6 година
родитељ
комит
e6803cd2b1
3 измењених фајлова са 5 додато и 4 уклоњено
  1. 1 1
      index.html
  2. 1 0
      results.js
  3. 3 3
      results/index.html

+ 1 - 1
index.html

@@ -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>

+ 1 - 0
results.js

@@ -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";

+ 3 - 3
results/index.html

@@ -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>