web-apps/vendor/requirejs/tests/jsonp/twitter.html
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

27 lines
743 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>require.js: JSONP Test: Twitter</title>
<script type="text/javascript" src="../../require.js"></script>
<script type="text/javascript">
require({
baseUrl: "./",
paths: {
require: "../../require"
}
},
["http://search.twitter.com/trends/current.json?callback=define"],
function (trends) {
console.log(trends);
}
);
</script>
</head>
<body>
<h1>require.js: JSONP Test: Twitter</h1>
<p>Just a standalone .</p>
<strong>REQUIRES access to internet/Twitter to run. Otherwise it will fail.</strong>
<p>Check console for the current trends JSON return value.</p>
</body>
</html>