Add button to the dialog box

Add button to the dialog box
master
lostheaven92 2016-10-24 11:18:16 +01:00
parent ebd49e5930
commit 98bd237e6a
1 changed files with 9 additions and 6 deletions

View File

@ -349,12 +349,15 @@
}
function gameOver(){
$( '#dialog' ).dialog();
$( '#message' ).text('Game Won, congratulations!!');
$( '#dialog' ).append("<hr />").attr('style', "margin: -20 -20");
console.log('Game Over!');
var $dialog = $( '#dialog' );
var $message = $( '#message' );
$dialog.dialog();
$message.text('Game Won, congratulations!!');
$dialog.append("<hr />");
$dialog.attr('style', 'padding-right:0em; padding-left:0em');
$message.attr('style', 'margin-right:10px;margin-left:10px;margin-bottom:0px');
$dialog.append('<button id="Ok" text="Ok"/>')
}
function setBoardRequest(){