guiders.js

Putting JavaScript code in a separate file does not work

*爱你&永不变心* 提交于 2020-01-31 19:16:39
问题 I am working with Optimizely guiders.js example code: http://jeffpickhardt.com/guiders/ Though if I extract the JavaScript code and place it in a separate file, the guiders do not load. Here is the edited HTML: <html> <head> <!-- guider.js requires jQuery as a prerequisite. Be sure to load guider.js AFTER jQuery. --> <script type="text/javascript" src="jquery-1.5.1.min.js"></script> <script type="text/javascript" src="guider.js"></script> <script type="text/javascript" src="guidedTour.js"><

Putting JavaScript code in a separate file does not work

五迷三道 提交于 2020-01-31 19:12:25
问题 I am working with Optimizely guiders.js example code: http://jeffpickhardt.com/guiders/ Though if I extract the JavaScript code and place it in a separate file, the guiders do not load. Here is the edited HTML: <html> <head> <!-- guider.js requires jQuery as a prerequisite. Be sure to load guider.js AFTER jQuery. --> <script type="text/javascript" src="jquery-1.5.1.min.js"></script> <script type="text/javascript" src="guider.js"></script> <script type="text/javascript" src="guidedTour.js"><

How to create a jquery cookie?

余生长醉 提交于 2019-12-11 07:55:02
问题 So, If you go to my staging server you'll see a mini tutorial I've added using this tool. However, if you click on sign-up or any other page for that matter, the tutorial will keep popping up. So, how can I create a cookie so it only displays once per user? I've tried jquery cookie, albeit, couldn't figure out how to get it working. This is what I did: 1. Copied jquery.cookie.js into assets/javascript/jquery.cookie.js 2. Created a new file called cookie.js 3. Added this arbitrary code: $