PATH:
home
/
lab2454c
/
sothebankuab.com
/
wp-content
/
plugins
/
bdthemes-element-pack-lite
/
assets
/
vendor
/
js
/* * @Author: coderqiqin@aliyun.com * @Date: 2018-12-13 14:45:54 * @Last Modified by: CoderQiQin * @Last Modified time: 2018-12-13 14:48:11 */ if (typeof jQuery === 'undefined') { throw new Error('jquery') } (function($) { function Progress(el, options) { this.el = el this.options = options this._init() } Progress.prototype._init = function() { var docHeight = $('body').height() var sercHeight = $(window).height() var resHeight = docHeight - sercHeight var config = this.options var proConfig = { position: 'fixed', top: 0, left: 0, width: '100%', height: '2px', backgroundColor: '#eee', zIndex: 9999 } var innerConfig = { width: 0, backgroundColor: '#50bcb6', height: '100%', transitionProperty: 'width', transitionDuration: '.3s', transitionTimingFunction: 'linear' } var proMap = ['size', 'position', 'wapperBg', ] var innerMap = ['innerBg', 'duration', 'effect'] var setMap = proMap.concat(innerMap) for (var key in config) { if (!setMap.includes(key)) delete config[key] ; switch (key) { case 'size': proConfig.height = config.size; break; case 'position': if (config.position === 'bottom') { delete proConfig.top proConfig['bottom'] = 0 } break; case 'wapperBg': proConfig.backgroundColor = config.wapperBg break; case 'innerBg': innerConfig.backgroundColor = config.innerBg break; case 'duration': innerConfig.transitionDuration = config.duration break; case 'effect': innerConfig.transitionTimingFunction = config.effect break; default: break; } } this.el.empty().css(proConfig) $('<div class="inner"></div>').appendTo(this.el).css(innerConfig) $(window).on('scroll', function(e) { window.requestAnimationFrame(function() { var width = Math.max(0, Math.min(1, $(window).scrollTop() / resHeight)) $('.inner').show().css('width', width * 100 + '%') }) }) } $.fn.progress = function(options) { this.each(function(el) { new Progress($(this), options || null) }) return this } })(jQuery)
[-] prism.min.js
[edit]
[-] jquery.progressScroll.js
[edit]
[-] typed.min.js
[edit]
[-] jquery.appear.min.js
[edit]
[-] jquery.imagezoom.js
[edit]
[-] datatables.min.js
[edit]
[-] datatables.uikit.js
[edit]
[-] jquery.appear.js
[edit]
[+]
..
[-] popper.js
[edit]
[-] image-compare-viewer.min.js
[edit]
[-] calendly.js
[edit]
[-] tilt.jquery.js
[edit]
[-] jquery.progressHorizontal.min.js
[edit]
[-] tippy.all.min.js
[edit]
[-] calendly.min.js
[edit]
[-] jquery.newsTicker.min.js
[edit]
[-] jquery.newsTicker.js
[edit]
[-] jquery.jclock.min.js
[edit]
[-] jquery.mousewheel.js
[edit]
[-] vanilla-tilt.js
[edit]
[-] jquery.justifiedGallery.min.js
[edit]
[-] jquery.imagezoom.min.js
[edit]
[-] jquery.mousewheel.min.js
[edit]
[-] datatables.uikit.min.js
[edit]
[-] tippy.all.js
[edit]
[-] jquery.progressScroll.min.js
[edit]
[-] image-compare-viewer.js
[edit]
[-] recliner.js
[edit]
[-] jquery-asPieProgress.min.js
[edit]
[-] recliner.min.js
[edit]
[-] jquery.jclock.js
[edit]
[-] jquery-asPieProgress.js
[edit]
[-] jquery.justifiedGallery.js
[edit]
[-] datatables.js
[edit]
[-] leaflet.js
[edit]
[-] cookieconsent.min.js
[edit]
[-] leaflet.min.js
[edit]
[-] vanilla-tilt.min.js
[edit]
[-] typed.js
[edit]
[-] popper.min.js
[edit]
[-] jquery.progressHorizontal.js
[edit]
[-] tilt.jquery.min.js
[edit]
[-] cookieconsent.js
[edit]