Home » Source Code » OPAC for Library » bootstrap.js

bootstrap.js ( File view )

  • By Xiaboh 2013-09-27
  • View(s):9
  • Download(s):2
  • Point(s): 1
			/* ===================================================
 * bootstrap-transition.js v2.0.4
 * http://twitter.github.com/bootstrap/javascript.html#transitions
 * ===================================================
 * Copyright 2012 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */


!function ($) {


  $(function () {


    "use strict"; // jshint ;_;


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

    $.support.transition = (function () {


      var transitionEnd = (function () {


        var el = document.createElement('bootstrap')
          , transEndEventNames = {

               'WebkitTransition' : 'webkitTransitionEnd'
            ,  'MozTransition'    : 'transitionend'
            ,  'OTransition'      : 'oTransitionEnd'
            ,  'msTransition'     : 'MSTransitionEnd'
            ,  'transition'       : 'transitionend'
            
}
          , name

        for (name in transEndEventNames){

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

            return transEndEventNames[name]
          
}
        
}

      
}())

      return transitionEnd && {

        end: transitionEnd
      
}

    
})()

  
})


}(window.jQuery);/* ==========================================================
 * bootstrap-alert.js v2.0.4
 * http://twitter.github.com/bootstrap/javascript.html#alerts
 * ==========================================================
 * Copyright 2012 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */


!function ($) {


  "use strict"; // jshint ;_;


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

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

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

  Alert.prototype.close = function (e) {

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

    if (!selector) {

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

    $parent = $(selector)

    e && e.preventDefault()

    $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())

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

    if (e.isDefaultPrevented()) return

    $parent.removeClass('in')

    function removeElement() {

      $parent
        .trigger('closed')
        .remove()
    
}

    $.support.transition && $parent.hasClass('fade') ?
      $parent.on($.support.transition.end, removeElement) :
      removeElement()
  
}


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

  $.fn.alert = function (option) {

    return this.each(function () {

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

  $.fn.alert.Constructor = Alert


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

  $(function () {

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


}(window.jQuery);/* ============================================================
 * bootstrap-button.js v2.0.4
 * http://twitter.github.com/bootstrap/javascript.html#buttons
 * ============================================================
 * Copyright 2012 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============================================================ */


!function ($) {


  "use strict"; // jshint ;_;


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

  var Button = function (element, options) {

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

}, $.fn.button.defaults, options)
  
}

  Button.prototype.setState = function (state) {

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

    state = state + 'Text'
    data.resetText || $el.data('resetText', $el[val]())

    $el[val](data[state] || this.options[state])

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

      state == 'loadingText' ?
        $el.addClass(d).attr(d, d) :
        $el.removeClass(d).removeAttr(d)
    
}, 0)
  
}

  Button.prototype.toggle = function () {

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

    $parent && $parent
      .find('.active')
      .removeClass('active')

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


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

  $.fn.button = function (option) {

    return this.each(function () {

      var $this = $(this)
        , data = $this.data('button')
        , options = typeof option == 'object' && option
      if (!data) $this.data('button', (data = new Button(this, options)))
      if (option == 'toggle') data.toggle()
      else if (option) data.setState(option)
    
})
  
}

  $.fn.button.defaults = {

    loadingText: 'loading...'
  
}

  $.fn.button.Constructor = Button


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

  $(function () {

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

      var $btn = $(e.target)
      if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
      $btn.button('toggle')
    
})
  
})


}(window.jQuery);/* ==========================================================
 * bootstrap-carousel.js v2.0.4
 * http://twitter.github.com/bootstrap/javascript.html#carousel
 * ==========================================================
 * Copyright 2012 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */


!function ($) {


  "use strict"; // jshint ;_;


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

  var Carousel = function (element, options) {

    this.$element = $(element)
    this.options = options
    this.options.slide && this.slide(this.options.slide)
    this.options.pause == 'hover' && this.$element
      .on('mouseenter', $.proxy(this.pause, this))
      .on('mouseleave', $.proxy(this.cycle, this))
  
}

  Carousel.prototype = {


    cycle: function (e) {

      if (!e) this.paused = false
      this.options.interval
        && !this.paused
        && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
      return this
    
}

  , to: function (pos) {

      var $active = this.$element.find('.active')
        , children = $active.parent().children()
        , activePos = children.index($active)
        , that = this

      if (pos > (children.length - 1) || pos < 0) return

      if (this.sliding) {

        return this.$element.one('slid', function () {

          that.to(pos)
        
})
      
}

      if (activePos == pos) {

        return this.pause().cycle()
      
}

      return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
    
}

  , pause: function (e) {

      if (!e) this.paused = true
      clearInterval(this.interval)
      this.interval = null
      return this
    
}

  , next: function () {

      if (this.sliding) return
      return this.slide('next')
    
}

  , prev: function () {

      if (this.sliding) return
      return this.slide('prev')
    
}

  , slide: function (type, next) {

      var $active = this.$element.find('.active')
        , $next = next || $active[type]()
        , isCycling = this.interval
        , direction = type == 'next' ? 'left' : 'right'
        , fallback  = type == 'next' ? 'first' : 'last'
        , that = this
        , e = $.Event('slide')

      this.sliding = true

      isCycling && this.pause()

      $next = $next.length ? $next : this.$element.find('.item')[fallback]()

      if ($next.hasClass('active')) return

      if ($.support.transition && this.$element.hasClass('slide')) {

        this.$element.trigger(e)
        if (e.isDefaultPrevented()) return
        $next.addClass(type)
        $next[0].offsetWidth // force reflow
        $active.addClass(direction)
        $next.addClass(direction)
        this.$element.one($.support.transition.end, function () {

          $next.removeClass([type, direct
...
...
(Not finished, please download and read the complete file)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
about.php3.55 kB24-08-12|14:25
add_book.php5.88 kB21-08-12|08:29
books_list.php4.81 kB31-08-12|09:51
config.php105.00 B20-08-12|21:03
bootstrap.css112.23 kB30-08-12|13:40
demo_page.css1.41 kB16-03-12|09:39
demo_table_jui.css6.99 kB30-07-12|22:25
back_disabled.jpg612.00 B16-03-12|09:40
back_enabled.jpg807.00 B16-03-12|09:40
favicon.ico894.00 B16-03-12|09:40
forward_disabled.jpg635.00 B16-03-12|09:40
forward_enabled.jpg852.00 B16-03-12|09:40
Sorting0.00 B19%|16-03-12
sort_asc.png263.00 B16-03-12|09:40
sort_asc_disabled.png252.00 B16-03-12|09:40
sort_both.png282.00 B16-03-12|09:40
sort_desc.png260.00 B16-03-12|09:40
sort_desc_disabled.png251.00 B16-03-12|09:40
ui-bg_diagonals-thick_18_b81900_40x40.png260.00 B16-03-12|09:40
ui-bg_diagonals-thick_20_666666_40x40.png251.00 B16-03-12|09:40
ui-bg_flat_0_aaaaaa_40x100.png180.00 B16-03-12|09:40
ui-bg_flat_10_000000_40x100.png178.00 B16-03-12|09:40
ui-bg_flat_75_ffffff_40x100.png178.00 B16-03-12|09:40
ui-bg_glass_100_f6f6f6_1x400.png104.00 B16-03-12|09:40
ui-bg_glass_100_fdf5ce_1x400.png125.00 B16-03-12|09:40
ui-bg_glass_55_fbf9ee_1x400.png120.00 B16-03-12|09:40
ui-bg_glass_65_ffffff_1x400.png105.00 B16-03-12|09:40
ui-bg_glass_75_dadada_1x400.png111.00 B16-03-12|09:40
ui-bg_glass_75_e6e6e6_1x400.png110.00 B16-03-12|09:40
ui-bg_glass_95_fef1ec_1x400.png119.00 B16-03-12|09:40
ui-bg_gloss-wave_35_f6a828_500x100.png3.67 kB16-03-12|09:40
ui-bg_highlight-soft_100_eeeeee_1x100.png90.00 B16-03-12|09:40
ui-bg_highlight-soft_75_cccccc_1x100.png101.00 B16-03-12|09:39
ui-bg_highlight-soft_75_ffe45c_1x100.png167.00 B16-03-12|09:39
ui-icons_222222_256x240.png4.27 kB16-03-12|09:39
ui-icons_228ef1_256x240.png4.27 kB16-03-12|09:39
ui-icons_2e83ff_256x240.png4.27 kB16-03-12|09:39
ui-icons_454545_256x240.png4.27 kB16-03-12|09:39
ui-icons_888888_256x240.png4.27 kB16-03-12|09:39
ui-icons_cd0a0a_256x240.png4.27 kB16-03-12|09:40
ui-icons_ef8c08_256x240.png4.27 kB16-03-12|09:39
ui-icons_ffd27a_256x240.png4.27 kB16-03-12|09:39
ui-icons_ffffff_256x240.png4.27 kB16-03-12|09:39
jquery-ui-1.8.4.custom.css33.72 kB16-03-12|09:39
fontawesome-webfont.eot37.80 kB16-06-12|09:37
fontawesome-webfont.svg127.10 kB16-06-12|09:37
fontawesome-webfont.ttf66.87 kB16-06-12|09:37
fontawesome-webfont.woff40.77 kB16-06-12|09:37
font-awesome.css14.42 kB19-08-12|21:09
style.css3.97 kB20-08-12|22:43
del_books.php114.00 B21-08-12|08:34
edit_books.php6.29 kB21-08-12|09:29
footer.php123.00 B20-08-12|22:41
head.php1.62 kB20-08-12|21:56
home.php2.15 kB23-08-12|11:44
glyphicons-halflings-white.png8.57 kB01-06-12|11:06
glyphicons-halflings.png13.50 kB01-06-12|11:06
school_logo.png34.41 kB15-08-12|17:38
index.php1.62 kB24-08-12|14:17
books.js3.68 kB21-08-12|11:14
bootstrap-transition.js1.76 kB07-06-12|10:31
bootstrap.js48.93 kB01-06-12|11:06
colResizable.min.js2.84 kB13-03-12|04:48
jquery-1.6.js241.26 kB07-02-12|18:01
jquery-1.7.2.min.js92.62 kB14-06-12|12:11
logout.php80.00 B23-08-12|11:40
save_book.php826.00 B21-08-12|08:22
session.php89.00 B20-08-12|21:07
American0.00 B30%|30-08-12
Archive0.00 B30%|30-08-12
Audio-Visual0.00 B30%|24-08-12
circulation0.00 B30%|30-08-12
config.php105.00 B20-08-12|21:03
Faculty0.00 B30%|30-08-12
Filipiniana.php3.91 kB24-08-12|13:14
fisheries_opac_db.sql2.35 kB21-08-12|18:59
footer.php123.00 B20-08-12|22:41
General0.00 B1194|30%
head.php1.09 kB23-08-12|12:32
mision.jpg71.88 kB24-08-12|12:20
mision.png173.07 kB24-08-12|12:20
PIC_0001.JPG504.19 kB09-01-12|00:59
PIC_0002.JPG437.65 kB09-01-12|00:59
PIC_0003.JPG344.67 kB09-01-12|00:59
PIC_0005.JPG579.22 kB09-01-12|01:00
PIC_0006.JPG517.27 kB09-01-12|01:01
PIC_0007.JPG523.00 kB09-01-12|01:01
PIC_0008.JPG404.63 kB09-01-12|01:01
PIC_0010.JPG393.56 kB09-01-12|01:16
PIC_0011.JPG522.64 kB09-01-12|01:16
PIC_0012.JPG409.69 kB09-01-12|01:17
PIC_0013.JPG598.21 kB09-01-12|01:17
PIC_0014.JPG490.47 kB09-01-12|01:17
PIC_0015.JPG472.67 kB09-01-12|01:21
PIC_0016.JPG439.34 kB09-01-12|01:21
PIC_0018.JPG524.12 kB09-01-12|01:21
PIC_0019.JPG432.17 kB09-01-12|01:22
PIC_0021.JPG564.66 kB09-01-12|01:22
PIC_0022.JPG514.29 kB09-01-12|01:23
PIC_0023.JPG533.99 kB09-01-12|01:23
PIC_0024.JPG497.87 kB09-01-12|01:23
PIC_0025.JPG528.22 kB09-01-12|01:23
PIC_0026.JPG499.51 kB09-01-12|01:24
section.png394.08 kB24-08-12|12:56
index.php4.26 kB30-08-12|13:54
Ladies0.00 B29%|30-08-12
Login.php1.64 kB23-08-12|10:33
logout.php80.00 B04-07-13|15:58
new.php4.18 kB31-08-12|09:36
Periodical0.00 B31%|30-08-12
add0.00 B48%|24-08-12
admin0.00 B50225|72%
home0.00 B70%|24-08-12
log-in0.00 B64%|24-08-12
Raphraph1816.jpg522.33 kB24-08-12|10:59
Raphraph1817.jpg502.73 kB24-08-12|10:59
Raphraph1818.jpg498.50 kB24-08-12|11:00
Raphraph1819.jpg366.98 kB24-08-12|11:01
Raphraph1820.jpg463.50 kB24-08-12|11:00
Raphraph1821.jpg396.95 kB24-08-12|11:00
Raphraph1822.jpg434.49 kB24-08-12|11:01
Raphraph1823.jpg438.83 kB24-08-12|11:01
Raphraph1824.jpg453.62 kB24-08-12|11:01
quicksearch.php2.30 kB22-08-12|10:19
style.css969.00 B24-08-12|12:51
update.php71.00 B21-08-12|11:18
What's0.00 B41%|30-08-12
images0.00 B31-08-12|09:56
datatable0.00 B31-08-12|09:56
font0.00 B31-08-12|09:56
dataTables0.00 B31-08-12|09:56
css0.00 B31-08-12|09:56
img0.00 B31-08-12|09:56
js0.00 B31-08-12|09:56
admin0.00 B31-08-12|09:56
image0.00 B31-08-12|09:56
Print0.00 B0%|31-08-12
Fisheries_OPAC_20.00 B31-08-12|09:55
...
Sponsored links

bootstrap.js (15.59 MB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D