Created
May 9, 2014 13:53
-
-
Save dashohoxha/fac070fe50bb47bce211 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#div-output { | |
float: left; | |
margin: 2px 10px 5px 15px; | |
width: 100%; | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<link rel="stylesheet" href="https://dev.l10n.org.al/api-examples/js/style.css" type="text/css" /> | |
<script src="https://dev.l10n.org.al/api-examples/js/config.js"></script> | |
<script src="https://dev.l10n.org.al/api-examples/js/http_request.js"></script> | |
<script src="https://dev.l10n.org.al/api-examples/js/get_access_token.js"></script> | |
<script> | |
// Write a debug message on the output area. | |
var debug = function(msg) { | |
$('#output').append(msg); | |
}; | |
</script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="div-output"> | |
<pre id="output"> output </pre> | |
</div> | |
</body> | |
</html> |
This file contains hidden or 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
$(document).ready(function(){ | |
// GET public/btr/translations | |
var url = base_url + '/public/btr/translations?lng=sq&words=file&page=0'; | |
http_request(url); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment