Open TomRaas opened 10 years ago
You can use the secondary plugin to apply an alternative configuration when the step is active.
$("#jmpress").jmpress("apply", ".step", {
secondary: "self",
secondaryZ: 1000
});
If you want to change the configuration with a script:
$(".step").data("stepData").z += 1000;
$("#jmpress").jmpress("reapply", ".step")
Thanks for the kwnoledge but it is not working for me yet!
I tried to get the second code working, but I get the dollowing error in jmpress.js: TypeError: element.data is not a function ---> stepData: element.data("stepData")
The first option is only usable via template, but I dont use one. Can you tell me waht is best to do?
Gretting,
Tom
apply
applies a template (which is a javascript object, containing the values).$("#jmpress").jmpress("reapply", $(".step"))
I can make a kind of script where I can appand the attribute "data-z" to the active step by checking the hash in the link. But I'm wondering if there is a function in jmpress.js for this!
Hope somebody can help!
Thanks in advance!
Greetings, tom