1/** 2 * footer-reveal.js 3 * 4 * Licensed under the MIT license. 5 * http://www.opensource.org/licenses/mit-license.php 6 * 7 * Copyright 2014 Iain Andrew 8 * https://github.com/IainAndrew 9 */ 10 11(function($) { 12 13 $.fn.footerReveal = function(options) { 14 15 var $this = $(this), 16 $prev = $this.prev(), 17 $win = $(window), 18 19 defaults = $.extend ({ 20 shadow : true, 21 shadowOpacity: 0.8, 22 zIndex : -100 23 }, options ), 24 25 settings = $.extend(true, {}, defaults, options); 26 27 if ($this.outerHeight() <= $win.outerHeight() && $this.offset().top >= $win.outerHeight()) { 28 $this.css({ 29 'z-index' : defaults.zIndex, 30 position : 'fixed', 31 bottom : 0 32 }); 33 34 if (defaults.shadow) { 35 $prev.css ({ 36 '-moz-box-shadow' : '0 20px 30px -20px rgba(0,0,0,' + defaults.shadowOpacity + ')', 37 '-webkit-box-shadow' : '0 20px 30px -20px rgba(0,0,0,' + defaults.shadowOpacity +')', 38 'box-shadow' : '0 20px 30px -20px rgba(0,0,0,' + defaults.shadowOpacity + ')' 39 }); 40 } 41 42 $win.on('load resize footerRevealResize', function() { 43 $this.css({ 44 'width' : $prev.outerWidth() 45 }); 46 $prev.css({ 47 'margin-bottom' : $this.outerHeight() 48 }); 49 }); 50 } 51 52 return this; 53 54 }; 55 56}) (jQuery); 57 58(function($) { 59 'use strict'; 60 61 $(document).ready(function() { 62 63 if($('.bb-footer-reveal').length > 0) { 64 $('.bb-footer-reveal').footerReveal(); 65 $(window).trigger('resize'); 66 } 67 68 // Search 69 $('.bbfb-btn-search').on('click', function(){ 70 var $target = $($(this).attr('href')); 71 $target.addClass('bbfb-visible'); 72 return false; 73 }); 74 $('.bbfb-search-close').on('click', function(){ 75 var $self = $( this ); 76 var $target = $self.closest('.bbfb-search-box'); 77 $target.removeClass('bbfb-visible'); 78 return false; 79 }); 80 81 }); 82 83}(window.jQuery));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.