mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-28 12:24:23 +00:00
Fix build issue
This commit is contained in:
parent
2ad384ca41
commit
3c490cf9db
@ -97,6 +97,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
|
|
||||||
const $amis = document.getElementById("amis");
|
const $amis = document.getElementById("amis");
|
||||||
|
|
||||||
|
if ($amis) {
|
||||||
fetch("https://jgthms.com/amis/new.json")
|
fetch("https://jgthms.com/amis/new.json")
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
@ -120,5 +121,6 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
el.appendChild(img);
|
el.appendChild(img);
|
||||||
$amis.appendChild(el);
|
$amis.appendChild(el);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
File diff suppressed because it is too large
Load Diff
2
docs/css/bulma-docs.min.css
vendored
2
docs/css/bulma-docs.min.css
vendored
File diff suppressed because one or more lines are too long
@ -86,6 +86,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
|
|
||||||
var $amis = document.getElementById("amis");
|
var $amis = document.getElementById("amis");
|
||||||
|
|
||||||
|
if ($amis) {
|
||||||
fetch("https://jgthms.com/amis/new.json").then(function (response) {
|
fetch("https://jgthms.com/amis/new.json").then(function (response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("HTTP error! Status: " + response.status);
|
throw new Error("HTTP error! Status: " + response.status);
|
||||||
@ -107,5 +108,6 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
el.appendChild(img);
|
el.appendChild(img);
|
||||||
$amis.appendChild(el);
|
$amis.appendChild(el);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user