Skip to content

Instantly share code, notes, and snippets.

@dashohoxha
Created May 9, 2014 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dashohoxha/fac070fe50bb47bce211 to your computer and use it in GitHub Desktop.
Save dashohoxha/fac070fe50bb47bce211 to your computer and use it in GitHub Desktop.
#div-output {
float: left;
margin: 2px 10px 5px 15px;
width: 100%;
}
<!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>
$(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