zurb-joyride

Dependency error while installing the gem “joyride-rails”

◇◆丶佛笑我妖孽 提交于 2020-01-07 07:51:17
问题 My rails version is 3.2.12 . I am trying to implement gem "joyride-rails", "~> 0.0.14" in my application, but it clashes with some of my other gems. Already in my Gemfile: gem "haml-rails", ">= 0.4" gem 'activeadmin-mongoid', github: 'elia/activeadmin-mongoid', branch: 'active-admin-spec-suite' When I run the bundle command, I get this error: Bundler could not find compatible versions for gem "haml": In Gemfile: joyride-rails (~> 0.0.14) ruby depends on haml (~> 3.1) ruby haml-rails (>= 0.4)

how to configure foundation joyride plugin callbacks

不想你离开。 提交于 2019-12-24 01:44:57
问题 I'm using foundation 4.3.1. This is my code: $(document).foundation('joyride', { postRideCallback: function () { alert('test') } }); $(document).foundation('joyride','start'); I can't seem to get it to alert('test') It goes through the ride, but then nothing. Not sure what I'm doing wrong here. The docs aren't clear at all on how or where to put the config options, they only provide a list of what they are. Why won't the postRideCallback trigger? 回答1: Okay, so I had to bang my head against

Foundation joyride start only on first load

走远了吗. 提交于 2019-12-18 07:22:05
问题 I'm using Foundation Joyride and every time I load the webpage the tour starts, but how do I only start the tour for the first time the webpage is loaded? My settings are ... $(window).load(function() { //Foundation Joyride (Tour) $("#tour").joyride({ 'cookieMonster': true, 'cookieName': 'JoyRide', 'cookieDomain': 'mydomain.co.uk/', 'postRideCallback' : function () { $(this).joyride('destroy'); }, cookieMonster: false }); }); 回答1: Got it working at last and it turned out to be the order in

Foundation Joyride issue in IE9

与世无争的帅哥 提交于 2019-12-12 04:55:05
问题 I am using foundation's joyride plugin, everything is working fine in Chrome and FF, but in ie9 the highlighted element is clickable. Ex. I am highlighting a form's submit button like "When you are done, Click this Button to Register" when I click the highlighted button the submit action takes place in IE9 browser. But it is working fine in Chrome and FF, when in click the highlighted Submit button nothing happens. Is there any way to fix this. Thank you 来源: https://stackoverflow.com

Cannot get joyride to work - it displays a list

半世苍凉 提交于 2019-12-11 19:19:10
问题 I am sure this is something really silly, regarding where to put the files, but here goes: I am trying Foundation 4 using the gem (zurb-foundation), rails 3, ruby 1.9.3 and I am trying to get the joyride feature to work. Here is what I have so far: <body> <h1>Listing products</h1> <div id="firstStop" class="panel">Some awesome part of your site!</div> <table> <tr> <th> <h2 id="numero1" class="so-awesome">Name</h2></th> <th><h3 id="numero2">Price</h3></th> <th></th> <th></th> <th></th> </tr> <

Zurb Joyride not following defined order

瘦欲@ 提交于 2019-12-11 01:48:59
问题 Please review my Sample Fiddle... When it initiates, it starts with the First Stop, and moves onto the Second and Third Stops. When it's ready to move onto the Fourth Stop, it skips and immediately jumps to a modal. Everything is setup the way the documentation states. This is the script to call the function... $(window).load(function() { $('#joyRideTipContent').joyride({ autoStart : true, postStepCallback : function (index, tip) { if (index == 2) { $(this).joyride('set_li', false, 1); } },