listElements() {
return this.$('.level_selector ul a')
}
listElementByLevelId(levelId) {
return this.$('.level_selector ul a[data-level-selector-select='. levelId .']')
}
updateList() {
var playbackLevel = this.core.getCurrentPlayback().currentLevel;
this.listElements().removeClass('selected');
this.listElementByLevelId(playbackLevel).addClass('selected');
}
And put this.updateList() into render(), onLevelSelect(), stopLevelSwitch().
But i cannot build project by node v5.6.0npm v3.6.0 and webpack 1.12.14 (windows).
What are the latest compatible versions of node/npm/webpack for clappr-level-selector-plugin?
Thank you!
ERROR in (webpack)/package.json
Module parse failed: c:\node\webpack\ls\node_modules\webpack\package.json Line 2
: Unexpected token :
You may need an appropriate loader to handle this file type.
| {
| "_args": [
| [
| "webpack@^1.12.2",
@ (webpack)/lib/Stats.js 6:188-214
ERROR in (webpack)/lib/node/NodeMainTemplateAsync.runtime.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\webpack\lib\node
@ (webpack)/lib/node/NodeMainTemplateAsync.runtime.js 5:64-77 6:63-76
ERROR in (webpack)/~/uglify-js/tools/node.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\webpack\node_modules\uglify-js\tools
@ (webpack)/~/uglify-js/tools/node.js 1:45-58
ERROR in (webpack)/lib/node/OldNodeWatchFileSystem.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\webpack\lib\node
@ (webpack)/lib/node/OldNodeWatchFileSystem.js 4:22-35
ERROR in (webpack)/lib/node/NodeOutputFileSystem.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\webpack\lib\node
@ (webpack)/lib/node/NodeOutputFileSystem.js 4:22-35
ERROR in ./~/mkdirp/index.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\mkdirp
@ ./~/mkdirp/index.js 1:45-58
ERROR in ./~/graceful-fs/graceful-fs.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\graceful-fs
@ ./~/graceful-fs/graceful-fs.js 1:20-33
ERROR in ./~/graceful-fs/fs.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\graceful-fs
@ ./~/graceful-fs/fs.js 1:20-33
ERROR in ./~/constants-browserify/constants.json
Module parse failed: c:\node\webpack\ls\node_modules\constants-browserify\consta
nts.json Line 2: Unexpected token :
You may need an appropriate loader to handle this file type.
| {
| "O_RDONLY": 0,
| "O_WRONLY": 1,
| "O_RDWR": 2,
@ ./~/graceful-fs/polyfills.js 1:53-73
ERROR in ./~/chokidar/index.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\chokidar
@ ./~/chokidar/index.js 1:68-81
ERROR in ./~/chokidar/lib/nodefs-handler.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\chokidar\lib
@ ./~/chokidar/lib/nodefs-handler.js 1:20-33
ERROR in ./~/chokidar/lib/fsevents-handler.js
Module not found: Error: Cannot resolve module 'fs' in c:\node\webpack\ls\node_m
odules\chokidar\lib
@ ./~/chokidar/lib/fsevents-handler.js 1:20-33
Hi. I did extended main.js by this code.
And put
this.updateList()
intorender()
,onLevelSelect()
,stopLevelSwitch()
.But i cannot build project by
node v5.6.0
npm v3.6.0
andwebpack 1.12.14
(windows). What are the latest compatible versions of node/npm/webpack forclappr-level-selector-plugin
? Thank you!