diff options
author | Prashant S | 2020-01-23 16:17:32 +0530 |
---|---|---|
committer | GitHub | 2020-01-23 16:17:32 +0530 |
commit | d1b413280629809d543740a6e741c284d7420e8c (patch) | |
tree | 3d1b127ce91102669e4bbdbd0c7fffe56f575786 /website/static/website/js/cloud.js | |
parent | c21b2a1ea7da8acef0a20a038f15242c1a92b96e (diff) | |
parent | 15158302f40547faa00c26103854c150227220cc (diff) | |
download | R_on_Cloud_Web_Interface-d1b413280629809d543740a6e741c284d7420e8c.tar.gz R_on_Cloud_Web_Interface-d1b413280629809d543740a6e741c284d7420e8c.tar.bz2 R_on_Cloud_Web_Interface-d1b413280629809d543740a6e741c284d7420e8c.zip |
updated UI
Diffstat (limited to 'website/static/website/js/cloud.js')
-rw-r--r-- | website/static/website/js/cloud.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/website/static/website/js/cloud.js b/website/static/website/js/cloud.js index 9a632e7..5cfc755 100644 --- a/website/static/website/js/cloud.js +++ b/website/static/website/js/cloud.js @@ -676,7 +676,7 @@ $(document.body).ready(function() { function(data) { var exists; $("#execute-inner").html( - "Execute"); + '<i class="fa fa-play-circle" aria-hidden="true"></i> Execute <i class="fa fa-cogs" aria-hidden="true"></i>'); ajax_loader('clear'); if (data.error.length != 0) { @@ -713,21 +713,21 @@ $(document.body).ready(function() { /********************************************/ $(document).on("click", "#download-book", function(e) { window.location = - "http://r.fossee.in/textbook-companion/download/book/" + $( + "https://r.fossee.in/textbook-companion/download/book/" + $( "#books").val(); e.preventDefault(); }); $(document).on("click", "#download-chapter", function(e) { window.location = - "http://r.fossee.in/textbook-companion/download/chapter/" + + "https://r.fossee.in/textbook-companion/download/chapter/" + $("#chapters").val(); e.preventDefault(); }); $(document).on("click", "#download-example", function(e) { window.location = - "http://r.fossee.in/textbook-companion/download/example/" + + "https://r.fossee.in/textbook-companion/download/example/" + $("#examples").val(); e.preventDefault(); }); @@ -941,12 +941,12 @@ $(document.body).ready(function() { $("#relevant").html('<h2>Relevant</h2><hr>'); for (var i = 0; i < data.length; i++) { $("#relevant").append( - '<a href="?book_id=' + data[i].id + '" class="">' + data[i].book + + '<a href="?book_id=' + data[i].id + '" class=""><i class="fa fa-book" aria-hidden="true"></i>' + data[i].book + ' (Author: ' + data[i].author + ')</a><hr>'); } }else{ - $("#relevant").append('Oops! This book is not availabe!'); + $("#relevant").append('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Oops! This book is not availabe!'); } ajax_loader("clear"); } @@ -962,7 +962,7 @@ $(document.body).ready(function() { $("#popular").html('<h2>Popular</h2><hr>'); for (var i = 0; i < data.length; i++) { $("#popular").append( - '<a href="?book_id=' + data[i].ids + '" class="">' + data[i].book + + '<a href="?book_id=' + data[i].ids + '" class=""><i class="fa fa-book" aria-hidden="true"></i>' + data[i].book + ' (Author: ' + data[i].author + ')</a><hr>'); } ajax_loader("clear"); @@ -979,7 +979,7 @@ $(document.body).ready(function() { $("#recent").html('<h2>Recent</h2><hr>'); for (var i = 0; i < data.length; i++) { $("#recent").append( - '<a href="?book_id=' + data[i].ids + '" class="">' + data[i].book + + '<a href="?book_id=' + data[i].ids + '" class=""><i class="fa fa-book" aria-hidden="true"></i>' + data[i].book + ' (Author: ' + data[i].author + ')</a><hr>'); } } @@ -1030,7 +1030,7 @@ $(document.body).ready(function() { $("#popular").html('<h2>Popular</h2><hr>'); for (var i = 0; i < data.length; i++) { $("#popular").append( - '<a href="?book_id=' + data[i].id + '" class="">' + data[i].book + + '<a href="?book_id=' + data[i].id + '" class=""><i class="fa fa-book" aria-hidden="true"></i>' + data[i].book + ' (Author: ' + data[i].author + ')</a><hr>'); } ajax_loader("clear"); @@ -1047,14 +1047,14 @@ $(document.body).ready(function() { $("#recent").html('<h2>Recent</h2><hr>'); for (var i = 0; i < data.length; i++) { $("#recent").append( - '<a href="?book_id=' + data[i].id + '" class="">' + data[i].book + + '<a href="?book_id=' + data[i].id + '" class=""><i class="fa fa-book" aria-hidden="true"></i>' + data[i].book + ' (Author: ' + data[i].author + ')</a><hr>'); } ajax_loader("clear"); } }); e.preventDefault(); - + ajax_loader("clear"); }); $(document).on("click", "#fileuploadsubmit", function() { |