This repository was archived by the owner on Oct 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ sub append_css {
200200
201201sub wrap_html {
202202 my ($entered , $result ) = @_ ;
203- return append_css(" <div class='zci--calculator'>$entered = $result </div>" );
203+ return append_css(" <div class='zci--calculator'>$entered = <a href='javascript:;' onclick='document.x.q.value= \" $result \" ;document.x.q.focus();'> $result </a> </div>" );
204204}
205205
206206# separates symbols with a space
Original file line number Diff line number Diff line change @@ -297,17 +297,17 @@ ddg_goodie_test(
297297 ' 0.8^2 + 0.6^2' => test_zci(
298298 ' 0.8 ^ 2 + 0.6 ^ 2 = 1' ,
299299 heading => ' Calculator' ,
300- html => qr # 0.8<sup>2</sup> \+ 0.6<sup>2</sup> = 1 # ,
300+ html => qr # 0.8<sup>2</sup> \+ 0.6<sup>2</sup> = # ,
301301 ),
302302 ' 2 squared ^ 3' => test_zci(
303303 ' 2 squared ^ 3 = 256' ,
304304 heading => ' Calculator' ,
305- html => qr # 2 squared<sup>3</sup> = 256 # ,
305+ html => qr # 2 squared<sup>3</sup> = # ,
306306 ),
307307 ' 2^3 squared' => test_zci(
308308 ' 2 ^ 3 squared = 512' ,
309309 heading => ' Calculator' ,
310- html => qr # 2<sup>3</sup>squared = 512 # ,
310+ html => qr # 2<sup>3</sup>squared = # ,
311311 ),
312312 ' 4 score + 7' => test_zci(
313313 ' 4 score + 7 = 87' ,
You can’t perform that action at this time.
0 commit comments