mirror of
https://github.com/axios/axios.git
synced 2026-04-11 02:11:50 +08:00
* feat: implement prettier and fix all issues * fix: failing tests * fix: implement feedback from codel, ai etc * chore: dont throw in trim function Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * fix: incorrect fix --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
40 lines
947 B
HTML
40 lines
947 B
HTML
<!doctype html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>AMD</title>
|
|
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
|
|
</head>
|
|
|
|
<body class="container">
|
|
<h1>AMD</h1>
|
|
|
|
<div>
|
|
<h3>User</h3>
|
|
<div class="row">
|
|
<img id="useravatar" src="" class="col-md-1" />
|
|
<div class="col-md-3">
|
|
<strong id="username"></strong>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.16/require.min.js"></script>
|
|
<script>
|
|
requirejs.config({
|
|
paths: {
|
|
axios: '/axios.min'
|
|
}
|
|
});
|
|
|
|
requirejs(['axios'], function (axios) {
|
|
axios.get('https://api.github.com/users/mzabriskie')
|
|
.then(function (user) {
|
|
document.getElementById('useravatar').src = user.data.avatar_url;
|
|
document.getElementById('username').innerHTML = user.data.name;
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |