/** *------------------------------------------------------------------------------ * @package T3 Framework for Joomla! *------------------------------------------------------------------------------ * @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @authors JoomlArt, JoomlaBamboo, (contribute to this project at github * & Google group to become co-author) * @Google group: https://groups.google.com/forum/#!forum/t3fw * @Link: http://t3-framework.org *------------------------------------------------------------------------------ */ !function($){ // legacy for $.browser to detect IE if ($.browser == undefined || $.browser.msie == undefined) { $.browser={msie:false,version:0}; if (match = navigator.userAgent.match (/MSIE ([0-9]{1,}[\.0-9]{0,})/) || navigator.userAgent.match (/Trident.*rv:([0-9]{1,}[\.0-9]{0,})/)) { $.browser.msie=true; $.browser.version=match[1]; } } // add ie version to html tag if ($.browser.msie) { $('html').addClass('ie'+ Math.floor($.browser.version)); } // Detect grid-float-breakpoint value and put to $(body) data $(document).ready(function(){ if (!window.getComputedStyle) { window.getComputedStyle = function(el, pseudo) { this.el = el; this.getPropertyValue = function(prop) { var re = /(\-([a-z]){1})/g; if (prop == 'float') prop = 'styleFloat'; if (re.test(prop)) { prop = prop.replace(re, function () { return arguments[2].toUpperCase(); }); } return el.currentStyle[prop] ? el.currentStyle[prop] : null; } return this; } } var fromClass = 'body-data-holder', prop = 'content', $inspector = $('
').css('display', 'none').addClass(fromClass).appendTo($('body')); try { var attrs = window.getComputedStyle( $inspector[0], ':before' ).getPropertyValue(prop); if(attrs){ var matches = attrs.match(/([\da-z\-]+)/gi), data = {}; if (matches && matches.length) { for (var i=0; i