Updated JS stuffs.
This commit is contained in:
parent
1363bf5bca
commit
452eeb22d6
21 changed files with 267 additions and 412 deletions
|
@ -1,9 +1,8 @@
|
|||
#include utility.js
|
||||
#include np/client.js
|
||||
#include np/element.jsx
|
||||
|
||||
const MakaiNowPlayingInit = siteHeader => {
|
||||
const target = $q('.js-np-target');
|
||||
const target = $query('.js-np-target');
|
||||
if(!(target instanceof Element))
|
||||
return;
|
||||
|
||||
|
@ -13,7 +12,7 @@ const MakaiNowPlayingInit = siteHeader => {
|
|||
|
||||
const client = new MakaiNowPlaying(userName);
|
||||
const element = new MakaiNowPlayingElement;
|
||||
$rp(target, element.element);
|
||||
target.replaceWith(element.element);
|
||||
|
||||
const update = () => {
|
||||
client.fetch().then(result => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue