Created
April 3, 2014 08:50
-
-
Save kayalshri/9950808 to your computer and use it in GitHub Desktop.
Thirukural with Meanings read from JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javaScript"> | |
$(document).ready(function(){ | |
$.getJSON("http://getthirukural.appspot.com/api/2.0/kural/<?php echo $start;?>-<?php echo $end;?>?appid=m8gzum7bzuank&format=json&jsoncallback=?", function(data){ | |
var result=""; | |
$.each(data.KuralSet.Kural, function(i,Kural){ | |
result += "#"+Kural.Number+"<br>"+Kural.Line1+"<br>"+Kural.Line2+"<br><span class='label-warning'> "+Kural.Translation+"</span><br><BR>"; | |
}); | |
$('#ptable').html(result); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment