Skip to content
Lifestyle Tech
2025年11月4日
Popular posts
Lifestyle Tech
2025年11月4日
Lifestyle Tech
2025年11月4日
Lifestyle Tech
2025年11月4日
BuyLifestyle
11月 4th, 2025
BuyLifestyle
11月 4th, 2025
BuyLifestyle
11月 4th, 2025
BuyLifestyle
11月 4th, 2025
(function(){
function initNestProcess(root){
if(!root) return;
// Main tabs
root.querySelectorAll('.nest-tab').forEach(function(btn){
btn.addEventListener('click', function(){
root.querySelectorAll('.nest-tab').forEach(function(b){
b.classList.remove('active');
});
root.querySelectorAll('.nest-panel').forEach(function(p){
p.classList.remove('active');
});
btn.classList.add('active');
var panel = root.querySelector('#' + btn.getAttribute('data-tab'));
if(panel) panel.classList.add('active');
});
});
// Sub tabs (loan / cash)
root.querySelectorAll('.nest-subtab').forEach(function(btn){
btn.addEventListener('click', function(){
root.querySelectorAll('.nest-subtab').forEach(function(b){
b.classList.remove('active');
});
root.querySelectorAll('.nest-timeline').forEach(function(t){
t.classList.remove('active');
});
btn.classList.add('active');
var type = btn.getAttribute('data-type');
var tl = root.querySelector('.nest-timeline.' + type);
if(tl) tl.classList.add('active');
});
});
}
document.addEventListener('DOMContentLoaded', function(){
document.querySelectorAll('.nest-process-wrap').forEach(function(root){
initNestProcess(root);
});
});
})();