/*$id*/ function getComputedHeight(theElt){ var browserName = navigator.appName; if (browserName == "Microsoft Internet Explorer") { var is_ie = true; } else { var is_ie = false; } if (is_ie) { tmphght = document.getElementById(theElt).offsetHeight; } else { docObj = document.getElementById(theElt); var tmphght1 = document.defaultView.getComputedStyle(docObj, "").getPropertyValue("height"); tmphght = tmphght1.split('px'); tmphght = tmphght[0]; tmphght = tmphght - 116; } return tmphght; } $(document).ready(function(){ var RightHeight = getComputedHeight('right'); $("#content_area").css("min-height", RightHeight + "px"); //$(".collapsiblock a").click(function(){ //alert($(this).html()); //alert($(".collapsiblock-processed .content").attr('aria-hidden')); //}); }); Drupal.behaviors.crusti = function (context) { var slidespeed = parseInt(Drupal.settings.collapsiblock.slide_speed); /* $('.collapsiblock').each(function () { if (!$(this).is('.collapsiblockCollapsed')) { $(this).addClass('collapsiblockCollapsed'); $(this.target).slideUp(slidespeed).attr('aria-hidden', true); } });*/ $(".collapsiblock").click(function(e){ var st = Drupal.Collapsiblock.getCookieData(); cur = $(this).parent().attr('id'); st[cur] = 1; $('.collapsiblock').each(function () { if (!$(this).is('.collapsiblockCollapsed') && $(this).parent().attr('id') != cur) { $(this).addClass('collapsiblockCollapsed'); $(this.target).slideUp(slidespeed).attr('aria-hidden', true); st[$(this).parent().attr('id')] = 0; } }); var cookieString = '{ '; var cookieParts = []; $.each(st, function (id, setting) { cookieParts[cookieParts.length] = ' "' + id + '": ' + setting; }); cookieString += cookieParts.join(', ') + ' }'; $.cookie('collapsiblock', cookieString, { path: Drupal.settings.basePath }); e.preventDefault(); }); } /* playback timings (ms): LoadShardBlock: 357.458 (3) esindex: 0.007 captures_list: 422.019 CDXLines.iter: 15.439 (3) PetaboxLoader3.datanode: 141.185 (4) exclusion.robots.fetch: 43.699 (4) exclusion.robots: 44.37 exclusion.robots.policy: 0.295 RedisCDXSource: 0.857 PetaboxLoader3.resolve: 97.318 load_resource: 151.279 */