MCPcopy Index your code
hub / github.com/Bistutu/FluentRead / createLoadingSpinner

Function createLoadingSpinner

userscripts.js:1606–1612  ·  view source on GitHub ↗
(node, isCache)

Source from the content-addressed store, hash-verified

1604
1605// 创建转圈动画并插入
1606function createLoadingSpinner(node, isCache) {
1607 const spinner = document.createElement('span');
1608 spinner.className = 'loading-spinner-fluentread';
1609 if (isCache) spinner.style.borderTop = '3px solid green'
1610 node.appendChild(spinner);
1611 return spinner;
1612}
1613
1614// 递归检查是否包含 spinner
1615function hasLoadingSpinner(node) {

Callers 2

handlerFunction · 0.85
translateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected