first commit
This commit is contained in:
27
resources/assets/js/demos/demo-cleaning-services.js
Normal file
27
resources/assets/js/demos/demo-cleaning-services.js
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
Name: Cleaning Services
|
||||
Written by: Okler Themes - (http://www.okler.net)
|
||||
Theme Version: 12.1.0
|
||||
*/
|
||||
|
||||
(($ => {
|
||||
/*
|
||||
* SVG Aspect Ratio
|
||||
*/
|
||||
function aspectRatioSVG() {
|
||||
if( $(window).width() < 2000 ) {
|
||||
$('svg[preserveAspectRatio]').each(function(){
|
||||
$(this).attr('preserveAspectRatio', 'xMinYMin');
|
||||
});
|
||||
} else {
|
||||
$('svg[preserveAspectRatio]').each(function(){
|
||||
$(this).attr('preserveAspectRatio', 'none');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
aspectRatioSVG();
|
||||
$(window).on('resize', () => {
|
||||
aspectRatioSVG();
|
||||
});
|
||||
})).apply( this, [ jQuery ]);
|
Reference in New Issue
Block a user