PageSourceSearch

https://theumbrellaarts.org/sites/all/themes/umbrella_zen/js/bottom.js?tlvjje

js theumbrellaarts.org collected 2026-09-24 21:15:13 UTC 1,350 bytes, 43 lines download raw bytes

1/**
2 * @file
3 * Fix a minor bug where bottom council logo & social don't stay on one line
4 * Also wrap blog title on homepage in a link
5 */
6
7// JavaScript should be made compatible with libraries other than jQuery by
8// wrapping it with an "anonymous closure". See:
9// - https://drupal.org/node/1446420
10// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
11(function ($, Drupal, window, document, undefined) {
12
13
14// To understand behaviors, see https://drupal.org/node/756722#behaviors
15Drupal.behaviors.bottomSocialFix = {
16  attach: function(context, settings) {
17		var ipadLandscape = 980;
18		
19		$(document).ready(function() {
20			var $blogTitle = $('#block-views-featured-blog-post-block h2.block-title');
21			$blogTitle.html('<a href="/blog">' + $blogTitle.html() + '</a>');
22		});
23		
24		$(window).resize(fixSocial);
25		
26		function fixSocial() {
27			var $block = $('#block-umbrella-custom-umbrella-footer-social');
28			
29			if ($(window).width() >= ipadLandscape) {
30				var imgWidth = $block.find(' > a').width();
31				var addthisWidth = $block.find('.addthis-wrapper').width();
32				var addthisMargin = parseInt($block.find('.addthis-wrapper').css('margin-left'));
33				$block.css('width', imgWidth + addthisWidth + addthisMargin);
34			} else {
35				$block.css('width', 'auto');
36			}
37		}
38
39  }
40};
41
42
43})(jq1111, Drupal, this, this.document);

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.