Upload custom_nodes/comfyui-custom-scripts/web/js/common/spinner.js with huggingface_hub
Browse files
custom_nodes/comfyui-custom-scripts/web/js/common/spinner.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { addStylesheet } from "./utils.js";
|
| 2 |
+
|
| 3 |
+
addStylesheet(import.meta.url);
|
| 4 |
+
|
| 5 |
+
export function createSpinner() {
|
| 6 |
+
const div = document.createElement("div");
|
| 7 |
+
div.innerHTML = `<div class="pysssss-lds-ring"><div></div><div></div><div></div><div></div></div>`;
|
| 8 |
+
return div.firstElementChild;
|
| 9 |
+
}
|