javascript - Why ascensor.js plugin doesn't work? -
i'm using plugin ascensor.js , i'm trying simple example, doesn't works, , can't see error.
the code in following fiddle: http://jsfiddle.net/c2vlh/2/
js
$(document).ready(function () { $('#ascensorbuilding').ascensor({ ascensorname: 'ascensor', childtype: 'section', ascensorfloorname: ['hello1', 'hello2', 'hello3', 'hello4'], time: 1000, windowson: 1, direction: "chocolate", ascensormap: [ [1, 0], [1, 1], [2, 1] ], easing: 'easeinoutquad', keynavigation: true, queued: false, queueddirection: "y", overflow: "hidden" }); });
html
<button class="ascensor ascensorlink0">hello1</button> <button class="ascensor ascensorlink1">hello2</button> <button class="ascensor ascensorlink2">hello3</button> <button class="ascensor ascensorlink3">hello4</button> <div id="ascensorbuilding"> <section>hello1</section> <section>hello2</section> <section>hello3</section> <section>hello4</section> </div>
in result see sections in same page, , when click buttons doesn't happens anything...
do know plugin similar effect?
any tip or advice appreciated. if need more info, let me know , i'll edit post.
there multiple problems , not simple (unless version of ascensor script outdated). first issue simple, , illustrates initial problem - of documentation doesn't match code. in particular, case doesn't match.
for example, have childtype: 'section'
(lowercase c) need childtype: 'section'
uppercase c. true of settings.
after fixing fun begins! various arrays specified follow documentation, ascensor script in jsfiddle attempting parse strings. "hello1 | hello2 |..."
versus ['hello1', 'hello2'...]
(similar issue ascensormap). perhaps ascensor script reference refers outdated version, or plug-in has changed , docs haven't been updated.
Comments
Post a Comment