summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorJayaram R Pai2014-06-20 14:53:49 +0530
committerJayaram R Pai2014-06-20 14:53:49 +0530
commitd36eacffe82372c7337d446ad252942ec3ba6b82 (patch)
tree067342a6bc4a51afca0d3a871ad21247d2d53cc3 /index.php
parent8b2c99bd560cbea010ad051d5614e8e2d11c1729 (diff)
downloadscilab_cloud_interface-d36eacffe82372c7337d446ad252942ec3ba6b82.tar.gz
scilab_cloud_interface-d36eacffe82372c7337d446ad252942ec3ba6b82.tar.bz2
scilab_cloud_interface-d36eacffe82372c7337d446ad252942ec3ba6b82.zip
added link to display example reviews
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php26
1 files changed, 20 insertions, 6 deletions
diff --git a/index.php b/index.php
index 4f2a15b..4580453 100755
--- a/index.php
+++ b/index.php
@@ -12,8 +12,8 @@
<script>
$(document).ready(function(){
- var webroot = "http://cloud.scilab.in/";
- // var webroot = "http://localhost/cloud/";
+ // var webroot = "http://cloud.scilab.in/";
+ var webroot = "http://localhost/cloud/";
var imgdata = '<img src="images/ajax-loader.gif">';
$("#single_image").fancybox();
$('.fancymenu').fancybox({title: ""});
@@ -134,6 +134,7 @@
});
$("#example").live("change", function(){
+ $("#nos").hide();
id = $("#example").val();
folder = $("#books").val();
if(id == "") {
@@ -146,15 +147,21 @@
data:{
'eid': id
},
+ dataType: "json",
success: function(output) {
- $("#input").val(output);
+ $("#input").val(output.code);
+ if(output.nos) {
+ $("#nos").html(output.nos + " reviews").show();
+ $("#nos").attr("href", "http://scilab.in/cloud_comments/" + id);
+ }
$('#output').val('');
}
});
}
});
-
-
+ $("body").live("change", "#categories, #books, #chapter", function() {
+ $("#nos").hide();
+ });
$("#submit").live("click",function(){
if ($('#graphicsmode').is(':checked')) {
val =1;
@@ -291,7 +298,14 @@
</tr>
<tr class="bclr">
- <td class="white-text">Scilab Code</td>
+ <td class="white-text">
+ <span class="pull-left">
+ Scilab Code
+ </span>
+ <span class="pull-right">
+ <a id="nos" href="#" target="_blank"></a>
+ </span>
+ </td>
<td class="white-text">Output</td>
</tr>