Inserito il tema direttamente nel codice invece che come sottomodulo
This commit is contained in:
386
themes/hugo-universal-theme/static/js/front.js
Normal file
386
themes/hugo-universal-theme/static/js/front.js
Normal 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
|
||||
}
|
||||
})
|
||||
71
themes/hugo-universal-theme/static/js/gmaps.init.js
Normal file
71
themes/hugo-universal-theme/static/js/gmaps.init.js
Normal 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>'
|
||||
} */
|
||||
})
|
||||
}
|
||||
}
|
||||
2132
themes/hugo-universal-theme/static/js/hpneo.gmaps.js
Normal file
2132
themes/hugo-universal-theme/static/js/hpneo.gmaps.js
Normal file
File diff suppressed because it is too large
Load Diff
1
themes/hugo-universal-theme/static/js/owl.carousel.min.js
vendored
Normal file
1
themes/hugo-universal-theme/static/js/owl.carousel.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
themes/hugo-universal-theme/static/js/respond.min.js
vendored
Normal file
6
themes/hugo-universal-theme/static/js/respond.min.js
vendored
Normal 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='­<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);
|
||||
Reference in New Issue
Block a user