1/*------------------------------------------------------------------------ 2# mod_featcats - Featured Categories 3# ------------------------------------------------------------------------ 4# author Jesús Vargas Garita 5# Copyright (C) 2010 www.joomlahill.com. All Rights Reserved. 6# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL 7# Websites: http://www.joomlahill.com 8# Technical Support: Forum - http://www.joomlahill.com/forum 9-------------------------------------------------------------------------*/ 10 11function fc_paginate(start,catid,mid,Itemid) { 12 13 var currentURL = window.location; 14 var live_site = currentURL.protocol+'//'+currentURL.host+sfolder; 15 16 var column = document.getElementById('fc_ajax-'+mid+'-'+catid); 17 var items = document.getElementById('fc_items-'+mid+'-'+catid); 18 19 var height = items.offsetHeight-parseInt(getStyle(column,'padding-top'))-parseInt(getStyle(column,'padding-bottom')); 20 var imgtop = height/2-33; 21 items.style.height = height+'px'; 22 items.style.opacity = .5; 23 column.innerHTML=column.innerHTML+'<div class="fc_loading" style="line-height:'+height+'px"><img src="'+live_site+'/modules/mod_featcats/assets/loading.gif" border="0" style="margin-top:'+imgtop+'px" /></div>'; 24 25 var ajax = new XMLHttpRequest; 26 ajax.onreadystatechange=function() 27 { 28 if (ajax.readyState==4 && ajax.status==200) 29 { 30 column.innerHTML = ajax.responseText; 31 } 32 } 33 ajax.open("GET",live_site+"/index.php?option=com_ajax&format=raw&module=featcats&fc_start="+start+"&catid="+catid+"&mid="+mid+"&Itemid="+Itemid,true); 34 ajax.send(); 35 36} 37 38function getStyle(el,styleProp) 39{ 40 if (el.currentStyle) 41 var y = el.currentStyle[styleProp]; 42 else if (window.getComputedStyle) 43 var y = document.defaultView.getComputedStyle(el,null).getPropertyValue(styleProp); 44 return y; 45}
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.