CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121
首页 » 源代码 » » bootstrap.js

bootstrap.js ( 文件浏览 )

文件源自:
源码简介:...
  • DevPython12 发布于2018-03-07
  • 浏览次数:0
  • 下载次数:0
  • 下载需 1 积分
  • 侵权举报
			/*!
 * Bootstrap v3.3.2 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

if (typeof jQuery === 'undefined') {

  throw new Error('Bootstrap\'s JavaScript requires jQuery')

}

+function ($) {

  'use strict';
  var version = $.fn.jquery.split(' ')[0].split('.')
  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {

    throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')
  
}

}(jQuery);

/* ========================================================================
 * Bootstrap: transition.js v3.3.2
 * http://getbootstrap.com/javascript/#transitions
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */


+function ($) {

  'use strict';

  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
  // ============================================================

  function transitionEnd() {

    var el = document.createElement('bootstrap')

    var transEndEventNames = {

      WebkitTransition : 'webkitTransitionEnd',
      MozTransition    : 'transitionend',
      OTransition      : 'oTransitionEnd otransitionend',
      transition       : 'transitionend'
    
}

    for (var name in transEndEventNames) {

      if (el.style[name] !== undefined) {

        return {
 end: transEndEventNames[name] 
}
      
}
    
}

    return false // explicit for ie8 (  ._.)
  
}

  // http://blog.alexmaccaw.com/css-transitions
  $.fn.emulateTransitionEnd = function (duration) {

    var called = false
    var $el = this
    $(this).one('bsTransitionEnd', function () {
 called = true 
})
    var callback = function () {
 if (!called) $($el).trigger($.support.transition.end) 
}
    setTimeout(callback, duration)
    return this
  
}

  $(function () {

    $.support.transition = transitionEnd()

    if (!$.support.transition) return

    $.event.special.bsTransitionEnd = {

      bindType: $.support.transition.end,
      delegateType: $.support.transition.end,
      handle: function (e) {

        if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
      
}
    
}
  
})


}(jQuery);

/* ========================================================================
 * Bootstrap: alert.js v3.3.2
 * http://getbootstrap.com/javascript/#alerts
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */


+function ($) {

  'use strict';

  // ALERT CLASS DEFINITION
  // ======================

  var dismiss = '[data-dismiss="alert"]'
  var Alert   = function (el) {

    $(el).on('click', dismiss, this.close)
  
}

  Alert.VERSION = '3.3.2'

  Alert.TRANSITION_DURATION = 150

  Alert.prototype.close = function (e) {

    var $this    = $(this)
    var selector = $this.attr('data-target')

    if (!selector) {

      selector = $this.attr('href')
      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
    
}

    var $parent = $(selector)

    if (e) e.preventDefault()

    if (!$parent.length) {

      $parent = $this.closest('.alert')
    
}

    $parent.trigger(e = $.Event('close.bs.alert'))

    if (e.isDefaultPrevented()) return

    $parent.removeClass('in')

    function removeElement() {

      // detach from parent, fire event then clean up data
      $parent.detach().trigger('closed.bs.alert').remove()
    
}

    $.support.transition && $parent.hasClass('fade') ?
      $parent
        .one('bsTransitionEnd', removeElement)
        .emulateTransitionEnd(Alert.TRANSITION_DURATION) :
      removeElement()
  
}


  // ALERT PLUGIN DEFINITION
  // =======================

  function Plugin(option) {

    return this.each(function () {

      var $this = $(this)
      var data  = $this.data('bs.alert')

      if (!data) $this.data('bs.alert', (data = new Alert(this)))
      if (typeof option == 'string') data[option].call($this)
    
})
  
}

  var old = $.fn.alert

  $.fn.alert             = Plugin
  $.fn.alert.Constructor = Alert


  // ALERT NO CONFLICT
  // =================

  $.fn.alert.noConflict = function () {

    $.fn.alert = old
    return this
  
}


  // ALERT DATA-API
  // ==============

  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)


}(jQuery);

/* ========================================================================
 * Bootstrap: button.js v3.3.2
 * http://getbootstrap.com/javascript/#buttons
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */


+function ($) {

  'use strict';

  // BUTTON PUBLIC CLASS DEFINITION
  // ==============================

  var Button = function (element, options) {

    this.$element  = $(element)
    this.options   = $.extend({

}, Button.DEFAULTS, options)
    this.isLoading = false
  
}

  Button.VERSION  = '3.3.2'

  Button.DEFAULTS = {

    loadingText: 'loading...'
  
}

  Button.prototype.setState = function (state) {

    var d    = 'disabled'
    var $el  = this.$element
    var val  = $el.is('input') ? 'val' : 'html'
    var data = $el.data()

    state = state + 'Text'

    if (data.resetText == null) $el.data('resetText', $el[val]())

    // push to event loop to allow forms to submit
    setTimeout($.proxy(function () {

      $el[val](data[state] == null ? this.options[state] : data[state])

      if (state == 'loadingText') {

        this.isLoading = true
        $el.addClass(d).attr(d, d)
      
} else if (this.isLoading) {

        this.isLoading = false
        $el.removeClass(d).removeAttr(d)
      
}
    
}, this), 0)
  
}

  Button.prototype.toggle = function () {

    var changed = true
    var $parent = this.$element.closest('[data-toggle="buttons"]')

    if ($parent.length) {

      var $input = this.$element.find('input')
      if ($input.prop('type') == 'radio') {

        if ($input.prop('checked') && this.$element.hasClass('active')) changed = false
        else $parent.find('.active').removeClass('active')
      
}
      if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
    
} else {

      this.$element.attr('aria-pressed', !this.$element.hasClass('active'))
    
}

    if (changed) this.$element.toggleClass('active')
  
}


  // BUTTON PLUGIN DEFINITION
  // ========================

  function Plugin(option) {

    return this.each(function () {

      var $this   = $(this)
      var data    = $this.data('bs.button')
      var options = typeof option == 'object' && option

      if (!data) $this.data('bs.button', (data = new Button(this, options)))

      if (option == 'toggle') data.toggle()
      else if (option) data.setState(option)
    
})
  
}

  var old = $.fn.button

  $.fn.button             = Plugin
  $.fn.button.Constructor = Button


  // BUTTON NO CONFLICT
  // ==================

  $.fn.button.noConflict = function () {

    $.fn.button = old
    return this
  
}


  // BUTTON DATA-API
  // ===============

  $(document)
    .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {

      var $btn = $(e.target)
      if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
      Plugin.call($btn, 'toggle')
      e.preventDefault()
    
})
    .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {

      $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
    
})


}(jQuery);

/* ========================================================================
 * Bootstrap: carousel.js v3.3.2
 * http://getbootstrap.com/javascript/#carousel
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */


+function ($) {

  'use strict';

  // CAROUSEL CLASS DEFINITION
  // =========================

  var Carousel = function (element, options) {

    this.$element    = $(element)
    this.$indicators = this.$element.find('.carousel-indicators')
    this.options     = options
    this.paused      =
    this.sliding     =
    this.interval    =
    this.$active     =
    this.$items      = null

    this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))

    this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
      .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
      .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
  
}

  Carousel.VERSION  = '3.3.2'

  Carousel.TRANSITION_DURATION = 600

  Carousel.DEFAULTS = {

    interval: 5000,
    pause: 'hover',
    wrap: true,
    keyboard: true
  
}

  Carousel.prototype.keydown = function (e) {

    if (/input|textarea/i.test(e.target.tagName)) return
    switch (e.which) {

      case 37: this.prev(); break
      case 39: this.next(); break
      default: return
    
}

    e.preventDefault()
  
}

  Carousel.prototype.cycle = function (e) {

    e || (this.paused = false)

    this.interval && clearInterval(this.interval)

    this.options.interval
      && !this.paused
      && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))

    return this
  
}

  Carousel.prototype.getItemIndex = function (item) {

    this.$items = item.parent().children('.item')
    return this.$items.index(item || this.$active)
  
}

  Carousel.prototype.getItemForDirection = function (direction, active) {

    var activeIndex = this.getItemIndex(active)
    var willWrap = (direction == 'prev' && activeIndex === 0)
                || (direction == 'next' && activeIndex == (this.$items.length - 1))
    if (willWrap && 
...
...
(文件超长,未完全显示,请下载后阅读剩余部分)
			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
云测速

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
CraftVGames.iml281.00 B11-09-17|21:51
modules.xml274.00 B11-09-17|21:51
workspace.xml12.77 kB11-09-17|21:56
bootstrap-theme.css22.08 kB19-01-15|09:03
bootstrap-theme.css.map42.32 kB19-01-15|08:32
bootstrap-theme.min.css19.50 kB19-01-15|09:03
bootstrap.css138.10 kB19-01-15|09:03
bootstrap.css.map370.81 kB19-01-15|08:32
bootstrap.min.css114.40 kB19-01-15|09:03
sticky-footer-navbar.css693.00 B14-08-17|21:30
style.css63.00 B11-02-15|09:16
glyphicons-halflings-regular.eot19.66 kB18-01-15|13:38
glyphicons-halflings-regular.svg106.19 kB18-01-15|13:38
glyphicons-halflings-regular.ttf44.34 kB18-01-15|13:38
glyphicons-halflings-regular.woff22.88 kB18-01-15|13:38
glyphicons-halflings-regular.woff217.61 kB18-01-15|13:38
jquery-1.12.4.js297.30 kB26-07-17|23:28
jquery-3.2.1.min.js84.63 kB22-06-17|23:47
bootstrap.js65.17 kB19-01-15|09:03
bootstrap.min.js34.62 kB19-01-15|09:03
ini.js151.00 B11-02-15|08:46
Thumbs.db20.00 kB06-08-17|14:52
ui-bg_diagonals-thick_18_b81900_40x40.png418.00 B11-02-15|05:40
ui-bg_diagonals-thick_20_666666_40x40.png312.00 B11-02-15|05:40
ui-bg_flat_10_000000_40x100.png205.00 B11-02-15|05:40
ui-bg_glass_100_f6f6f6_1x400.png262.00 B11-02-15|05:40
ui-bg_glass_100_fdf5ce_1x400.png348.00 B11-02-15|05:40
ui-bg_glass_65_ffffff_1x400.png207.00 B11-02-15|05:40
ui-bg_gloss-wave_35_f6a828_500x100.png5.68 kB11-02-15|05:40
ui-bg_highlight-soft_100_eeeeee_1x100.png278.00 B11-02-15|05:40
ui-bg_highlight-soft_75_ffe45c_1x100.png328.00 B11-02-15|05:40
ui-icons_222222_256x240.png6.76 kB11-02-15|05:40
ui-icons_228ef1_256x240.png4.44 kB11-02-15|05:40
ui-icons_ef8c08_256x240.png4.44 kB11-02-15|05:40
ui-icons_ffd27a_256x240.png4.44 kB11-02-15|05:40
ui-icons_ffffff_256x240.png6.15 kB11-02-15|05:40
index.html30.97 kB11-02-15|05:40
jquery-ui.css34.52 kB11-02-15|05:40
jquery-ui.js458.36 kB11-02-15|05:40
jquery-ui.min.css29.46 kB11-02-15|05:40
jquery-ui.min.js233.95 kB11-02-15|05:40
jquery-ui.structure.css17.60 kB11-02-15|05:40
jquery-ui.structure.min.css14.42 kB11-02-15|05:40
jquery-ui.theme.css17.01 kB11-02-15|05:40
jquery-ui.theme.min.css13.54 kB11-02-15|05:40
jquery.anexsoft-validator.js11.27 kB11-02-15|09:00
npm.js484.00 B19-01-15|08:32
bd_clase.php233.00 B07-08-17|22:08
companias_controlador.php1.56 kB15-08-17|01:27
generos_controlador.php1.27 kB15-08-17|02:19
modos_juegos_controlador.php1.39 kB15-08-17|10:05
modos_perspectiva_controlador.php1.45 kB15-08-17|10:18
index.php352.00 B08-08-17|01:08
index_genero.php349.00 B15-08-17|01:56
index_modo_juego.php360.00 B15-08-17|02:26
companias_modelo.php1.76 kB14-08-17|23:54
generos_modelo.php1.44 kB15-08-17|01:28
modos_juegos_modelo.php1.59 kB15-08-17|02:47
modos_perspectiva_modelo.php1.82 kB15-08-17|11:00
companias.php1.47 kB14-08-17|23:18
companias_form.php2.61 kB15-08-17|00:13
footer.php213.00 B14-08-17|21:30
generos.php1.18 kB15-08-17|01:59
generos_form.php1.44 kB15-08-17|11:06
header.php5.75 kB15-08-17|02:32
modos_juego.php1.25 kB15-08-17|02:52
modos_juego_form.php1.48 kB15-08-17|02:34
images0.00 B28-02-18|20:27
jquery-ui0.00 B28-02-18|20:27
css0.00 B28-02-18|20:26
fonts0.00 B28-02-18|20:26
jquery0.00 B28-02-18|20:26
js0.00 B28-02-18|20:26
companias0.00 B28-02-18|20:27
generos0.00 B28-02-18|20:27
modos_juego0.00 B28-02-18|20:27
.idea0.00 B28-02-18|20:26
assets0.00 B28-02-18|20:26
bd0.00 B28-02-18|20:27
controllers0.00 B28-02-18|20:27
libs0.00 B06-08-17|15:44
models0.00 B28-02-18|20:27
uploads0.00 B06-08-17|15:44
views0.00 B28-02-18|20:27
CraftVGames0.00 B28-02-18|20:27
云测速

bootstrap.js (588.44 kB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多

您的积分不足

支付宝优惠套餐快速获取 30 积分

订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。

更多付款方式:网银PayPal

上传代码,免费获取

您本次下载所消耗的积分将转交上传作者。

同一源码,30天内重复下载,只扣除一次积分。

登录 CodeForge

还没有CodeForge账号? 立即注册
关注微博
联系客服

Switch to the English version?

Yes
CodeForge 英文版
No
CodeForge 中文版

完善个人资料,获价值¥30元积分奖励!

^_^"呃 ...

Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧
好的