Inserito il tema direttamente nel codice invece che come sottomodulo

This commit is contained in:
2026-02-13 01:06:04 +01:00
parent 25f7d8cb2e
commit 3033ef8a21
202 changed files with 48267 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
.box-image-text .image {
min-height: 190px;
max-height: 190px;
}
.box-image-text .image img {
max-height: 190px;
margin: auto;
}
.box-simple {
min-height: 230px;
}

View File

@ -0,0 +1,70 @@
/*
* Core Owl Carousel CSS File
* v1.3.2
*/
/* clearfix */
.owl-carousel .owl-wrapper:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
/* display none until init */
.owl-carousel{
display: none;
position: relative;
width: 100%;
-ms-touch-action: pan-y;
}
.owl-carousel .owl-wrapper{
display: none;
position: relative;
-webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-wrapper-outer{
overflow: hidden;
position: relative;
width: 100%;
}
.owl-carousel .owl-wrapper-outer.autoHeight{
-webkit-transition: height 500ms ease-in-out;
-moz-transition: height 500ms ease-in-out;
-ms-transition: height 500ms ease-in-out;
-o-transition: height 500ms ease-in-out;
transition: height 500ms ease-in-out;
}
.owl-carousel .owl-item{
float: left;
}
.owl-controls .owl-page,
.owl-controls .owl-buttons div{
cursor: pointer;
}
.owl-controls {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* mouse grab icon */
.grabbing {
cursor:url(/img/grabbing.png) 8 8, move;
}
/* fix */
.owl-carousel .owl-wrapper,
.owl-carousel .owl-item{
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
}

View File

@ -0,0 +1,69 @@
/*
* Owl Carousel Owl Demo Theme
* v1.3.2
*/
.owl-theme .owl-controls{
margin-top: 10px;
text-align: center;
}
/* Styling Next and Prev buttons */
.owl-theme .owl-controls .owl-buttons div{
display: inline-block;
zoom: 1;
*display: inline;/*IE7 life-saver */
}
/* Clickable class fix problem with hover on touch devices */
/* Use it for non-touch hover action */
.owl-theme .owl-controls.clickable .owl-buttons div:hover{
filter: Alpha(Opacity=100);/*IE7 fix*/
opacity: 1;
text-decoration: none;
}
/* Styling Pagination*/
.owl-theme .owl-controls .owl-page{
display: inline-block;
zoom: 1;
*display: inline;/*IE7 life-saver */
}
.owl-theme .owl-controls .owl-page span{
display: block;
width: 12px;
height: 12px;
margin: 5px 7px;
filter: Alpha(Opacity=50);/*IE7 fix*/
opacity: 0.5;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
background: #869791;
}
.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span{
filter: Alpha(Opacity=100);/*IE7 fix*/
opacity: 1;
}
/* If PaginationNumbers is true */
.owl-theme .owl-controls .owl-page span.owl-numbers{
height: auto;
width: auto;
color: #FFF;
padding: 2px 10px;
font-size: 12px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
}
/* preloading images */
.owl-item.loading{
min-height: 150px;
background: url(AjaxLoader.gif) no-repeat center center
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

View File

@ -0,0 +1,386 @@
/* global $this: true */
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "animationsSlider" }] */
if ($.cookie('themeCSSpath')) {
$('link#theme-stylesheet').attr('href', $.cookie('themeCSSpath'))
}
if ($.cookie('themeLayout')) {
$('body').addClass($.cookie('themeLayout'))
}
$(function () {
sliderHomepage()
sliders()
fullScreenContainer()
productDetailGallery(4000)
menuSliding()
menuMouseOver()
productDetailSizes()
utils()
animations()
counters()
demo()
contactFormAjax()
})
// Ajax contact
function contactFormAjax () {
const form = $('.contact-form-ajax')
if (typeof form === 'undefined') return false
form.submit(function () {
$this = $(this)
$.post($(this).attr('action'),
$this.serialize(),
function () {
$this[0].reset() // clear form
$('#contact-message')
.html('<div class="alert alert-success" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>Thank you for getting in touch. We will get back to you soon!</div>')
.fadeIn()
}
, 'json')
return false
})
}
/* for demo purpose only - can be deleted */
function demo () {
if ($.cookie('themeCSSpath')) {
$('link#theme-stylesheet').attr('href', $.cookie('themeCSSpath'))
}
$('#colour').change(function () {
if ($(this).val() !== '') {
const themeCSSpath = 'css/style.' + $(this).val() + '.css'
$('link#theme-stylesheet').attr('href', themeCSSpath)
$.cookie('themeCSSpath', themeCSSpath, { expires: 365, path: '/' })
}
return false
})
$('#layout').change(function () {
if ($(this).val() !== '') {
const themeLayout = $(this).val()
$('body').removeClass('wide')
$('body').removeClass('boxed')
$('body').addClass(themeLayout)
$.cookie('themeLayout', themeLayout, { expires: 365, path: '/' })
}
return false
})
}
/* slider homepage */
function sliderHomepage () {
if ($('#slider').length) {
// var owl = $('#slider')
$('#slider').owlCarousel({
autoPlay: 3000,
items: 4,
itemsDesktopSmall: [900, 3],
itemsTablet: [600, 3],
itemsMobile: [500, 2]
})
}
}
/* sliders */
function sliders () {
if ($('.owl-carousel').length) {
$('.customers').owlCarousel({
items: ($('.customers').attr('data-items') || 6),
slideSpeed: ($('.customers').attr('data-slide-speed') || 2000),
paginationSpeed: ($('.customers').attr('data-pagination-speed') || 1000),
autoPlay: $('.customers').attr('data-autoplay') === 'true',
itemsDesktopSmall: [990, 4],
itemsTablet: [768, 2],
itemsMobile: [480, 1]
})
$('.testimonials').owlCarousel({
items: ($('.testimonials').attr('data-items') || 4),
slideSpeed: ($('.testimonials').attr('data-slide-speed') || 2000),
paginationSpeed: ($('.testimonials').attr('data-pagination-speed') || 1000),
autoPlay: $('.testimonials').attr('data-autoplay') === 'true',
itemsDesktopSmall: [990, 3],
itemsTablet: [768, 2],
itemsMobile: [480, 1]
})
$('.homepage').owlCarousel({
navigation: false, // Show next and prev buttons
navigationText: ['<i class="fas fa-angle-left"></i>', '<i class="fas fa-angle-right"></i>'],
slideSpeed: ($('.homepage').attr('data-slide-speed') || 2000),
paginationSpeed: ($('.homepage').attr('data-pagination-speed') || 1000),
autoPlay: ($('.homepage').attr('data-autoplay') || 'true') === 'true',
stopOnHover: true,
singleItem: true,
lazyLoad: false,
addClassActive: true,
afterInit: function () {
// animationsSlider()
},
afterMove: function () {
// animationsSlider()
}
})
}
}
/* menu sliding */
function menuSliding () {
$('.dropdown').on('show.bs.dropdown', function () {
if ($(window).width() > 750) {
$(this).find('.dropdown-menu').first().stop(true, true).slideDown()
} else {
$(this).find('.dropdown-menu').first().stop(true, true).show()
}
})
$('.dropdown').on('hide.bs.dropdown', function () {
if ($(window).width() > 750) {
$(this).find('.dropdown-menu').first().stop(true, true).slideUp()
} else {
$(this).find('.dropdown-menu').first().stop(true, true).hide()
}
})
}
function menuMouseOver () {
$('.mouseover .dropdown').hover(function () {
$('.dropdown-toggle', this).trigger('click')
})
}
/* animations */
function animations () {
let delayTime = 0
$('[data-animate]').css({ opacity: '0' })
$('[data-animate]').waypoint(function () {
delayTime += 150
$(this).delay(delayTime).queue(function (next) {
$(this).toggleClass('animated')
$(this).toggleClass($(this).data('animate'))
delayTime = 0
next()
// $(this).removeClass('animated')
// $(this).toggleClass($(this).data('animate'))
})
}, {
offset: '90%',
triggerOnce: true
})
$('[data-animate-hover]').hover(function () {
$(this).css({ opacity: 1 })
$(this).addClass('animated')
$(this).removeClass($(this).data('animate'))
$(this).addClass($(this).data('animate-hover'))
}, function () {
$(this).removeClass('animated')
$(this).removeClass($(this).data('animate-hover'))
})
}
function animationsSlider () {
let delayTimeSlider = 400
$('.owl-item:not(.active) [data-animate-always]').each(function () {
$(this).removeClass('animated')
$(this).removeClass($(this).data('animate-always'))
$(this).stop(true, true, true).css({ opacity: 0 })
})
$('.owl-item.active [data-animate-always]').each(function () {
delayTimeSlider += 500
$(this).delay(delayTimeSlider).queue(function () {
$(this).addClass('animated')
$(this).addClass($(this).data('animate-always'))
console.log($(this).data('animate-always'))
})
})
}
/* counters */
function counters () {
$('.counter').counterUp({
delay: 10,
time: 1000
})
}
/* picture zoom */
function pictureZoom () {
$('.product .image, .post .image, .photostream div').each(function () {
const imgHeight = $(this).find('img').height()
if (imgHeight) {
$(this).height(imgHeight)
}
})
}
/* full screen intro */
function fullScreenContainer () {
const screenWidth = $(window).width() + 'px'
let screenHeight = '500px'
if ($(window).height() > 500) {
screenHeight = $(window).height() + 'px'
}
$('#intro, #intro .item').css({
width: screenWidth,
height: screenHeight
})
}
function utils () {
/* tooltips */
$('[data-toggle="tooltip"]').tooltip()
/* click on the box activates the radio */
$('#checkout').on('click', '.box.shipping-method, .box.payment-method', function () {
const radio = $(this).find(':radio')
radio.prop('checked', true)
})
/* click on the box activates the link in it */
$('.box.clickable').on('click', function () {
window.location = $(this).find('a').attr('href')
})
/* external links in new window */
$('.external').on('click', function (e) {
e.preventDefault()
window.open($(this).attr('href'))
})
/* animated scrolling */
$('.scroll-to, .scroll-to-top').click(function (event) {
const fullUrl = this.href
const parts = fullUrl.split('#')
if (parts.length > 1) {
scrollTo(fullUrl)
event.preventDefault()
}
})
function scrollTo (fullUrl) {
const parts = fullUrl.split('#')
const trgt = parts[1]
const targetOffset = $('#' + trgt).offset()
let targetTop = targetOffset.top - 100
if (targetTop < 0) {
targetTop = 0
}
$('html, body').animate({
scrollTop: targetTop
}, 1000)
}
}
/* product detail gallery */
function productDetailGallery (confDetailSwitch) {
$('.thumb:first').addClass('active')
let timer = setInterval(autoSwitch, confDetailSwitch)
$('.thumb').click(function (e) {
switchImage($(this))
clearInterval(timer)
timer = setInterval(autoSwitch, confDetailSwitch)
e.preventDefault()
})
$('#mainImage').hover(function () {
clearInterval(timer)
}, function () {
timer = setInterval(autoSwitch, confDetailSwitch)
})
function autoSwitch () {
let nextThumb = $('.thumb.active').closest('div').next('div').find('.thumb')
if (nextThumb.length === 0) {
nextThumb = $('.thumb:first')
}
switchImage(nextThumb)
}
function switchImage (thumb) {
$('.thumb').removeClass('active')
const bigUrl = thumb.attr('href')
thumb.addClass('active')
$('#mainImage img').attr('src', bigUrl)
}
}
/* product detail sizes */
function productDetailSizes () {
$('.sizes a').click(function (e) {
e.preventDefault()
$('.sizes a').removeClass('active')
$('.size-input').prop('checked', false)
$(this).addClass('active')
$(this).next('input').prop('checked', true)
})
}
$.fn.alignElementsSameHeight = function () {
$('.same-height-row').each(function () {
let maxHeight = 0
let children = $(this).find('.same-height')
children.height('auto')
if ($(window).width() > 768) {
children.each(function () {
if ($(this).innerHeight() > maxHeight) {
maxHeight = $(this).innerHeight()
}
})
children.innerHeight(maxHeight)
}
maxHeight = 0
children = $(this).find('.same-height-always')
children.height('auto')
children.each(function () {
if ($(this).height() > maxHeight) {
maxHeight = $(this).innerHeight()
}
})
children.innerHeight(maxHeight)
})
}
let windowWidth
$(function () {
windowWidth = $(window).width()
$(this).alignElementsSameHeight()
pictureZoom()
})
$(window).resize(function () {
const newWindowWidth = $(window).width()
if (windowWidth !== newWindowWidth) {
setTimeout(function () {
$(this).alignElementsSameHeight()
fullScreenContainer()
pictureZoom()
}, 205)
windowWidth = newWindowWidth
}
})

View File

@ -0,0 +1,71 @@
/* global GMaps: true */
$(document).ready(function () {
map()
})
function map () {
if ($('#map').length) {
const lat = $('#gmap-lat').val()
const lng = $('#gmap-lng').val()
const direction = $('#gmap-dir').val()
const image = $('#gmap-marker').val()
const styles =
[
{
'featureType': 'landscape', 'stylers': [{ 'saturation': -100 }, { 'lightness': 65 }, { 'visibility': 'on' }]
}, {
'featureType': 'poi', 'stylers': [{ 'saturation': -100 }, { 'lightness': 51 }, { 'visibility': 'simplified' }]
}, {
'featureType': 'road.highway', 'stylers': [{ 'saturation': -100 }, { 'visibility': 'simplified' }]
}, {
'featureType': 'road.arterial', 'stylers': [{ 'saturation': -100 }, { 'lightness': 30 }, { 'visibility': 'on' }]
}, {
'featureType': 'road.local', 'stylers': [{ 'saturation': -100 }, { 'lightness': 40 }, { 'visibility': 'on' }]
}, {
'featureType': 'transit', 'stylers': [{ 'saturation': -100 }, { 'visibility': 'simplified' }]
}, {
'featureType': 'administrative.province', 'stylers': [{ 'visibility': 'off' }]
}, {
'featureType': 'water', 'elementType': 'labels', 'stylers': [{ 'visibility': 'on' }, { 'lightness': -25 }, { 'saturation': -100 }]
}, {
'featureType': 'water', 'elementType': 'geometry', 'stylers': [{ 'hue': '#ffff00' }, { 'lightness': -25 }, { 'saturation': -97 }]
}
]
const map = new GMaps({
el: '#map',
lat,
lng,
zoomControl: true,
zoomControlOpt: {
style: 'SMALL',
position: 'TOP_LEFT'
},
panControl: false,
streetViewControl: false,
mapTypeControl: false,
overviewMapControl: false,
scrollwheel: false,
draggable: false,
styles
})
map.addMarker({
lat,
lng,
icon: image,
click: function (e) {
// when we get an address with spaces ...
const url = 'https://maps.google.com?daddr=' + direction.split('match').join('replace')
window.open(url, '_blank')
},
title: direction
/* ,
infoWindow: {
content: '<p>HTML Content</p>'
} */
})
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
/*! Respond.js v1.4.2: min/max-width media query polyfill
* Copyright 2014 Scott Jehl
* Licensed under MIT
* http://j.mp/respondjs */
!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){v(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q=30,r=k.getElementsByTagName("head")[0]||l,s=k.getElementsByTagName("base")[0],t=r.getElementsByTagName("link"),u=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},v=function(b){var c="clientWidth",d=l[c],e="CSS1Compat"===k.compatMode&&d||k.body[c]||d,f={},g=t[t.length-1],p=(new Date).getTime();if(b&&h&&q>p-h)return a.clearTimeout(i),i=a.setTimeout(v,q),void 0;h=p;for(var s in m)if(m.hasOwnProperty(s)){var w=m[s],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?j||u():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?j||u():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(n[w.rules]))}for(var C in o)o.hasOwnProperty(C)&&o[C]&&o[C].parentNode===r&&r.removeChild(o[C]);o.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=k.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,r.insertBefore(E,g.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(k.createTextNode(F)),o.push(E)}},w=function(a,b,d){var e=a.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},i=!f&&d;b.length&&(b+="/"),i&&(f=1);for(var j=0;f>j;j++){var k,l,o,p;i?(k=d,n.push(h(a))):(k=e[j].match(c.regex.findStyles)&&RegExp.$1,n.push(RegExp.$2&&h(RegExp.$2))),o=k.split(","),p=o.length;for(var q=0;p>q;q++)l=o[q],g(l)||m.push({media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}v()},x=function(){if(d.length){var b=d.shift();f(b.href,function(c){w(c,b.href,b.media),p[b.href]=!0,a.setTimeout(function(){x()},0)})}},y=function(){for(var b=0;b<t.length;b++){var c=t[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!p[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(w(c.styleSheet.rawCssText,e,f),p[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!s||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}x()};y(),c.update=y,c.getEmValue=u,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);