diff --git a/resources/index.html b/resources/index.html index cb8ef7f..7eb3a5c 100644 --- a/resources/index.html +++ b/resources/index.html @@ -356,6 +356,25 @@ + + diff --git a/resources/js/script.js b/resources/js/script.js index 8ac5c44..17c6fbf 100644 --- a/resources/js/script.js +++ b/resources/js/script.js @@ -159,6 +159,8 @@ $( document ).ready( () => { $('#a280_submit').hide(); $('#pcb442_submit').hide(); $('#dsj1000_submit').hide(); + $("#submit_name").val(''); + $("#submit_desc").val(''); doAjax(); }); }) @@ -255,6 +257,13 @@ function doAjax() { console.log('Emit build request') socket.emit('build', {}); $("#uploadfile").fileinput('clear'); + $("#ulysses16_your").text("-"); + $("#att48_your").text("-"); + $("#st70_your").text("-"); + $("#a280_your").text("-"); + $("#pcb442_your").text("-"); + $("#dsj1000_your").text("-"); + $("#exampleModal").modal('show'); }, error: (e) => { diff --git a/resources/js/socket_script.js b/resources/js/socket_script.js index cc76dc7..5401384 100644 --- a/resources/js/socket_script.js +++ b/resources/js/socket_script.js @@ -38,9 +38,9 @@ socket.on('users_count', (clients) => { // Server running algorithms socket.on('start', () => { - console.log('Building start'); + console.log('Running'); Snackbar.show({ - text: 'Building start, please wait for your result.', + text: 'Running, please wait for your result.', pos: 'bottom-right', duration: 60000 }); @@ -129,6 +129,9 @@ function update_your_res(tsp_file, fitness) { // Update personal result socket.on('result', (res) => { + + $("#resultModal").modal('show'); + res = JSON.parse(res); $('#submission_info').show(); res.forEach(e => {