Guest User

Untitled

a guest
Jan 22nd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. $(function(){
  2. $('input').checkBox({addVisualElement: false});
  3.  
  4.  
  5. $('.slide').each(function(){
  6. var slide=this;
  7. var flag=false;
  8. $('.advance_form',slide).hide();
  9. $('input[type="radio"]',slide).change(function(){
  10. if (this.checked == true && !flag) {
  11. flag=true;
  12. $('.advance_form',slide).show().animate({
  13. left: '+=350',
  14. });
  15. }
  16. }
  17. );
  18. });
  19.  
  20.  
  21. $('#form_wrapper').cycle({
  22. fx: 'scrollHorz',
  23. autostop: 1,
  24. autostopCount: 1,
  25. startingSlide: 0,
  26. height: '545px',
  27. slideExpr:'.slide',
  28. activePagerClass: 'activeSlide',
  29. delay: -5000,
  30. speed: 700,
  31. next: '.advance_form',
  32. pager: '#nav',
  33. pagerAnchorBuilder: function(idx, slide) {
  34. return '#nav a:eq(' + (idx) + ')'
  35. }
  36. });
  37. $('#nav a').click(function() {
  38. $('#form_wrapper').cycle('pause');
  39. });
  40.  
  41. /* $.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) {
  42. $(pager).find('#nav a').removeClass('.activeSlide')
  43. .filter('li:eq('+currSlideIndex+')').addClass('.activeSlide');
  44. };
  45. */
  46.  
  47. });
Add Comment
Please, Sign In to add comment