Skip to main content
Commonmark migration
Source Link

#JavaScript (ES6) + HTML, 77 74 bytes

JavaScript (ES6) + HTML, 77 74 bytes

f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c])
<input id=o

##Try It

Try It

(f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c]))()
<input id=o>

#JavaScript (ES6) + HTML, 77 74 bytes

f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c])
<input id=o

##Try It

(f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c]))()
<input id=o>

JavaScript (ES6) + HTML, 77 74 bytes

f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c])
<input id=o

Try It

(f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c]))()
<input id=o>

added 69 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#JavaScript (ES6) + HTML, 7777 74 bytes

f=(c=0)=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[c])
<input id=o>
f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c])
<input id=o

##Try It

(f=(c=0)=>setTimeoutf=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[c]\\"[~~c]))()
<input id=o>

#JavaScript (ES6) + HTML, 77 bytes

f=(c=0)=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[c])
<input id=o>

##Try It

(f=(c=0)=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[c]))()
<input id=o>

#JavaScript (ES6) + HTML, 77 74 bytes

f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c])
<input id=o

##Try It

(f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c]))()
<input id=o>

edited body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#JavaScript (ES6) + HTML, 77 bytes

f=(c=0)=>setTimeout(f,250,-~c%4,o.innerText="Loadingvalue="Loading... "+"|/-\\"[c])
<p<input id=o>

##Try It

(f=(c=0)=>setTimeout(f,250,-~c%4,o.innerText="Loadingvalue="Loading... "+"|/-\\"[c]))()
<p<input id=o>

#JavaScript (ES6) + HTML, 77 bytes

f=(c=0)=>setTimeout(f,250,-~c%4,o.innerText="Loading... "+"|/-\\"[c])
<p id=o>

##Try It

(f=(c=0)=>setTimeout(f,250,-~c%4,o.innerText="Loading... "+"|/-\\"[c]))()
<p id=o>

#JavaScript (ES6) + HTML, 77 bytes

f=(c=0)=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[c])
<input id=o>

##Try It

(f=(c=0)=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[c]))()
<input id=o>

Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading