Clumsy implementation of Clappr video player for turbostream or awesome theater night.
- Follow instructions in html file.
- Remove the body{...} from css file.
- Fill in elements for 'vsrc' in js file.
- Somehow obscure sources, at the moment they are in plain view.
- Ping feature to select best video source on load. Simple Promise Implementation by Doug Turnbull is promising.
- Stuff...
regex explanation:
(?:^|\s) # match the start of the string, or any single whitespace character
MyClass # the literal text for the classname to remove
(?!\S) # negative lookahead to verify the above is the whole classname
# ensures there is no non-space character following
# (i.e. must be end of string or a space)
Solution by Peter Boughton at Change an element's class with JavaScript