File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $(document).ready(function(){
1313 event . preventDefault ( ) ;
1414
1515 if ( event . type === 'drop' ) {
16- var oldsquare = event . originalEvent . dataTransfer . getData ( 'Text' , $ ( this ) . attr ( 'id' ) ) ;
16+ var oldsquare = event . originalEvent . dataTransfer . getData ( 'Text' , $ ( this ) . attr ( 'id' ) ) ;
1717
1818 var newsquare = $ ( this ) . attr ( 'id' ) ;
1919
@@ -28,4 +28,8 @@ $(document).ready(function(){
2828 }
2929 } ;
3030 } ) ;
31- } )
31+
32+ $ ( '#perft' ) . click ( function ( ) {
33+ window . location . href = 'perft.php?fen=' + $ ( '#fen' ) . val ( ) ;
34+ } ) ;
35+ } ) ;
Original file line number Diff line number Diff line change 2020 AdmiralAdama Chess
2121 </ h1 >
2222
23+ < p >
24+ Drag and drop a piece to make a move. No AI support yet, but coming soon!
25+ </ p >
26+
2327 < div class ="two_columns ">
2428 < div >
2529 < div class ="status_box ">
102106 < form id ="import_fen ">
103107 < p >
104108 FEN:< br />
105- < input type ="text " name ="fen " value ="<?php echo $fen; ?> " /> < br />
109+ < input id =" fen " type ="text " name ="fen " value ="<?php echo $fen; ?> " /> < br />
106110 < input type ="submit " value ="Import FEN " />
111+ < input type ="button " id ="perft " value ="Perft " />
107112 </ p >
108113 </ form >
109114 </ body >
You can’t perform that action at this time.
0 commit comments