{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Staron Solid surfaces",
"url": "https://www.staron.com",
"logo": "https://www.staron.com/theme/webs03/images/logo.png"
}
var site_code = "";
var lang_code = "kr";
var cont_url = "/main";
var site_code_array = ["staron","radianz","locelain"] ||
[];
var has_sample_order = "" === "1";
if(/*@cc_on!@*/false){document.documentElement.className+=' unsupported-ie ie10';}
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-TJTCD11ZBF');
Staron | Staron Solid surfaces
Go to main
var $heroSlider = $('.hero-slider');
var heroTimelines = [];
var heroTimelineDefault = {
paused: true,
defaults: {
autoAlpha: 0,
duration: 1.2,
ease: "power4.out"
}
};
var heroEffectConfig = {
default: {
vars: {
inherit: true
},
position: "+=0"
},
title: {
vars: {
y: "2rem",
skewX: 30,
duration: 2,
},
position: "+=0.4"
},
text: {
vars: {
y: "1rem",
skewX: 15,
},
position: "-=1.4"
},
subtitle: {
vars: {
y: "1.5rem",
duration: 2,
},
position: "-=1"
},
btn: {
vars: {
y: "0.5rem",
},
position: "-=1.5"
}
};
var heroSlider = new Swiper($heroSlider[0], {
init: false,
loop: true,
effect: 'fade',
speed: 1500, // 800
autoplay: {
delay: 10000, // 6000
disableOnInteraction: false,
},
pagination: {
el: ".swiper-pagination",
clickable: true,
renderBullet: function (index, className) {
var zero = index < 10 ? '0' : '';
return '' +zero+ (index + 1) + ' ';
},
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
on: {
init: function() {
var _self = this;
$('.js__gsap-section').each(function(index) {
var sectionTimeline = gsap.timeline(heroTimelineDefault);
$(this).find('.js__gsap-animation').each(function() {
var effect = $(this).data('gsapEffect');
var effectConfig = heroEffectConfig[effect] || heroEffectConfig['default'];
sectionTimeline.from(this, effectConfig.vars, effectConfig.position);
});
heroTimelines[index] = sectionTimeline;
});
setTimeout(function() {
$heroSlider.addClass('is-initialized');
$heroSlider.find('.js__toggle-autoplay').on('click', function() {
var isAutoplay = _self.autoplay.running;
isAutoplay ? _self.autoplay.stop() : _self.autoplay.start();
$(this).toggleClass('is-stop', isAutoplay);
});
heroTimelines[_self.activeIndex] && heroTimelines[_self.activeIndex].restart();
}, 600); // 400
},
slideChange: function() {
heroTimelines[this.activeIndex] && heroTimelines[this.activeIndex].restart();
},
autoplayStart: function() {
console.log('autoplayStart');
$heroSlider.removeClass('is-stop-autoplay');
},
autoplayStop: function() {
console.log('autoplayStop');
console.log(this);
$heroSlider.addClass('is-stop-autoplay');
}
}
});
$(function() {
'use strict';
heroSlider.init();
});
$(function() {
'use strict';
// 특정 페이지에서는 바로 보여줌
if (site_code === '') {
var $modal = $('#mapModal');
var data = $modal.data();
//var isModal = fnGetCookie(data['cName']) !== data['cValue']; // 쿠키 체크 후 모달 오픈 유무 체크
$modal.length && $modal.modal('show');
}
})
if(!wcs_add) var wcs_add = {};
wcs_add["wa"] = "s_34e744b3458a";
if (!_nasa) var _nasa={};
if (window.wcs) {
wcs.inflow("staron.com");
wcs_do(_nasa);
}
(function(){
var sw = screen.width;
var sh = screen.height;
fetch('/staron/kr/main/accessLogUpdate', {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: 'sw='+sw+'&sh='+sh+'&log_idx=14107057',
keepalive: true
});
})();
x server