jquery progressbar不会在登录和退出时移动

时间:2015-06-30 23:54:50

标签: jquery twitter-bootstrap progress-bar

( function($) {
    $.fn.link2progress = function(seconds, callback){
            this.each(function(){
                var $this = jQuery(this);
                progreso = 100;
                timeprogress = seconds*1000;
                seconds2 = 0;
                $this.animate({
                    width: progreso+'%'
                }, {
                    duration: timeprogress, 
                    complete: function(scope, i, elem){
                      if (callback) {
                        callback.call(this, i, elem );
                      };
                    }
                });
            });
    }
    $.fn.link2pause = function(){
            this.clearQueue();
            this.stop();
    }
    $.fn.link2continue = function(){
                this.clearQueue();
    }
})(jQuery)

我有这个作为代码,但由于某种原因它没有在bootstrap中加载任何想法为什么我已经尝试了几个小时,无法在任何地方找到答案。

由于

1 个答案:

答案 0 :(得分:0)

在https网址下托管您的link2progress.js(并将脚本网址更改为https)