Ich benutze Foundation Joyride Plugin, aber ich brauche es zu starten (und neu starten), sobald ein Benutzer auf eine bestimmte Schaltfläche auf meiner Benutzeroberfläche klickt, aber ich bin nicht dazu in der Lage sein. Indem ich dem auf der Seite von Zurb dargestellten Code folge, kann ich ihn nur ausführen, wenn die Site zum ersten Mal ausgeführt wird.Zurbs Foundation 'Joyride': Wie starte ich/programmatisch
Die Dokumentation für Joyride sind hier:
http://foundation.zurb.com/docs/components/joyride.html
und mein init-Code ist hier
$(document).foundation().foundation('joyride', 'start', {template : { // HTML segments for tip layout
link : '<a href="#close" class="joyride-close-tip " style="background: url(../img/bp_sprite.png) no-repeat 0px -940px; margin-top: -4px; "> </a>',
timer : '<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',
tip : '<div class="joyride-tip-guide" style="background: white; color: black; margin-top: -27px; margin-left: 2px; border-top: 1px dashed #c1c1c1; width: 100%; max-width: 457px;"></div>',
wrapper : '<div class="joyride-content-wrapper" style="background-color: white; color: black; padding: 4px; "></div>',
button : '<a href="#" class="small button joyride-next-tip" style="display: none;"></a>'
}});
Danke, du hast mich gerettet! Dies sollte wirklich in das Dokument der Stiftung aufgenommen werden. – taglia