function smToggleMenu(btn){
btn.classList.toggle('open');
document.querySelector('#sm-header .sm-nav-links').classList.toggle('open');
}
document.querySelectorAll('#sm-header .sm-nav-links a').forEach(function(link){
link.addEventListener('click',function(){
var nl=document.querySelector('#sm-header .sm-nav-links');
var tg=document.querySelector('#sm-header .sm-nav-toggle');
if(nl.classList.contains('open')){nl.classList.remove('open');tg.classList.remove('open');}
});
});
document.addEventListener('DOMContentLoaded', function () {
var origNav = document.querySelector('.sm-nav');
if (origNav) {
var bar = document.createElement('div');
bar.className = 'sm-nav-fixed';
bar.innerHTML = origNav.innerHTML;
bar.style.cssText = 'position:fixed;top:88px;left:0;right:0;z-index:300;display:none;justify-content:center;flex-wrap:wrap;gap:4px;padding:6px 4%;background:#fff;border-bottom:1px solid #ececec;box-shadow:0 2px 10px rgba(0,0,0,.06);';
document.body.appendChild(bar);
var links = bar.querySelectorAll('a[href^="#g"]');
var targets = [];
links.forEach(function (a) {
a.style.cssText = 'padding:6px 14px;font-size:14px;font-weight:600;color:#5a5a58;text-decoration:none;border-bottom:2px solid transparent;border-radius:4px;white-space:nowrap;transition:.15s;';
a.addEventListener('mouseenter', function(){ if(!a.classList.contains('on')) a.style.color='#d62828'; });
a.addEventListener('mouseleave', function(){ if(!a.classList.contains('on')) a.style.color='#5a5a58'; });
var el = document.querySelector(a.getAttribute('href'));
if (el) targets.push({ link: a, el: el });
});
links.forEach(function (a) {
a.addEventListener('click', function (e) {
var el = document.querySelector(a.getAttribute('href'));
if (el) { e.preventDefault(); window.scrollTo({ top: el.getBoundingClientRect().top + window.scrollY - 150, behavior: 'smooth' }); }
});
});
var firstSection = targets.length ? targets[0].el : null;
function onScroll() {
if (firstSection) {
var show = firstSection.getBoundingClientRect().top < 120; bar.style.display = show ? 'flex' : 'none'; } var pos = window.scrollY + 170, cur = null; targets.forEach(function (t) { if (t.el.offsetTop <= pos) cur = t.link; }); links.forEach(function (a) { a.classList.remove('on'); a.style.color = '#5a5a58'; a.style.borderBottomColor = 'transparent'; }); if (cur) { cur.classList.add('on'); cur.style.color = '#d62828'; cur.style.borderBottomColor = '#d62828'; } } window.addEventListener('scroll', onScroll, { passive: true }); onScroll(); } var wa = document.createElement('a'); wa.href = 'https://wa.me/8613854105019?text=Hello%20Sismar%20Laser%2C%20I%20am%20interested%20in%20your%20laser%20machines.'; wa.target = '_blank'; wa.rel = 'noopener'; wa.setAttribute('aria-label', 'Chat on WhatsApp'); wa.style.cssText = 'position:fixed;left:20px;bottom:20px;z-index:9998;width:54px;height:54px;border-radius:50%;background:#25d366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:transform .15s;'; wa.onmouseenter = function(){ wa.style.transform='scale(1.08)'; }; wa.onmouseleave = function(){ wa.style.transform='scale(1)'; }; wa.innerHTML = '';
document.body.appendChild(wa);
});
Découpe laser UV, gravure & marquage
Traitement laser UV froid pour coquillage & nacre, verre & agate, plastique et PCB — détail fin, pas de dommages thermiques. Pour bijoux en or et en argent dédiés, voir notre page consacrée à la découpe laser en bijouterie. Cliquez sur une vidéo pour la lire.
(function(){
function ytThumb(id){return "https://img.youtube.com/vi/"+id+"/hqdefault.jpg";}
const VIDEOS=[
// ---------- Seashell (贝壳) ----------
{sub:"seashell",tag:"Bijoux",title:"Découpe laser UV coquillage pour bijouterie — Précision démonstration",machine:"Coupe de séchelle de précision pour bijoux",yt:"cHoO14jI5M8"},
{sub:"seashell",tag:"fleur motif",title:"Découpe laser UV coquillage en fleur motif — 10W/15W",machine:"coquillage coupé en formes de fleurs",yt:"O_crykfamsE"},
{sub:"seashell",tag:"10W/15W",title:"Découpe laser UV coquillage — Démo automatique 10W & 15W",machine:"Real coquillage coupant de la démo",yt:"Oif_eETK7t8"},
{sub:"seashell",tag:"Précision",title:"Découpe laser UV coquillage avec précision extrême — 10W",machine:"Coupe de haute précision",yt:"XzMHzcSm8AA"},
{sub:"seashell",tag:"Gravure + Coupe",title:"Gravure laser UV < < Couper coquillage",machine:"Gravure sur mer",yt:"33Ma8pK47U4"},
// ---------- Glass & Crystal (玻璃/水晶/玛瑙) ----------
{sub:"glass",tag:"Agate",title:"Marquage laser UV sur Agate — Gravure de haute précision",machine:"Agate marquage & gravure",yt:"yBt7ESADII4"},
{sub:"glass",tag:"Démangeaison de verre",title:"Coupe de verre laser UV et gravure",machine:"Coupe en verre et gravure",yt:"0LSI923P_Uw"},
{sub:"glass",tag:"rotatif / Bouteille",title:"Attachement rotatif Laser UV pour bouteilles de verre",machine:"Marquage rotatif sur les bouteilles de verre",yt:"2RoyUcMFWZw"},
{sub:"glass",tag:"Verre/plastique",title:"machine de marquage laser UV Verre et plastique",machine:"marquage UV sur verre & plastique",yt:"PWYtdG5Zyhc"},
// ---------- Plastic (塑料/塑封) ----------
{sub:"plastic",tag:"Marquage blanc",title:"Marquage laser Couleur blanche sur le plastique — Technique UV",machine:"Marquage blanc en plastique",yt:"yljmeAtR1Eg"},
{sub:"plastic",tag:"Sceau plastique",title:"Marquage laser UV sur les joints en plastique — Précision",machine:"Marquage de précision",yt:"uAmYPj1OqMM"},
// ---------- PCB & Electronics (电路板) ----------
{sub:"pcb",tag:"Découpe de PCB",title:"Découpe laser PCB machine laser UV de 15W",machine:"Coupe PCB UV",yt:"30Z8ZQnCYqM"},
{sub:"pcb",tag:"Marquage de PCB",title:"Marquage laser PCB machine laser UV 5W/10W/15W",machine:"Signalisation du PCB UV",yt:"AA-VMaK04W0"},
];
VIDEOS.forEach(v=>{ if(!v.thumb) v.thumb=ytThumb(v.yt); });
const grid=document.getElementById('smv-grid'),empty=document.getElementById('smv-empty'),
chips=document.getElementById('smv-chips'),
modal=document.getElementById('smv-modal'),player=document.getElementById('smv-player'),
mTitle=document.getElementById('smv-title'),mSub=document.getElementById('smv-sub');
let filter='all';
function card(v,i){return '
+'
'
+'
';}
function render(){
const list=VIDEOS.map((v,i)=>({v,i})).filter(o=>filter==='all'||o.v.sub===filter);
grid.innerHTML=list.map(o=>card(o.v,o.i)).join('');
empty.style.display=list.length?'none':'block';
}
function counts(){
if(!chips)return;
const c=chips.querySelectorAll('.c');
if(c.length<5)return; c[0].textContent=VIDEOS.length; c[1].textContent=VIDEOS.filter(v=>v.sub==='seashell').length;
c[2].textContent=VIDEOS.filter(v=>v.sub==='glass').length;
c[3].textContent=VIDEOS.filter(v=>v.sub==='plastic').length;
c[4].textContent=VIDEOS.filter(v=>v.sub==='pcb').length;
}
if(chips){chips.addEventListener('click',function(e){var b=e.target.closest('.smv-chip');if(!b)return;chips.querySelectorAll('.smv-chip').forEach(t=>t.classList.remove('active'));b.classList.add('active');filter=b.dataset.f;render();});}
grid.addEventListener('click',function(e){
var c=e.target.closest('.smv-vid');if(!c)return;
var v=VIDEOS[+c.dataset.i];
mTitle.textContent=v.title;mSub.textContent=v.machine;
var ask="Hi Sismar Laser, I'm interested in the "+v.title+" ("+v.tag+"). Please send a price and more details.";
document.getElementById('smv-ask').textContent="Ask us about the "+v.title+".";
document.getElementById('smv-wa').href="https://wa.me/8613854105019?text="+encodeURIComponent(ask);
document.getElementById('smv-email').href="mailto:sales@sismarlaser.com?subject="+encodeURIComponent('Inquiry: '+v.title)+"&body="+encodeURIComponent(ask);
document.getElementById('smv-ytlink').href="https://youtu.be/"+v.yt;
var origin=encodeURIComponent(location.origin);
player.innerHTML='';
modal.classList.add('open');document.body.style.overflow='hidden';
});
function closeM(){modal.classList.remove('open');player.innerHTML='';document.body.style.overflow='';}
document.getElementById('smv-closebtn').addEventListener('click',closeM);
modal.addEventListener('click',function(e){if(e.target===modal)closeM();});
document.addEventListener('keydown',function(e){if(e.key==='Escape')closeM();});
counts();render();
})();
Paramètres des cookies et de la confidentialité
function smToggleMenu(btn){
btn.classList.toggle('open');
document.querySelector('#sm-header .sm-nav-links').classList.toggle('open');
}
document.querySelectorAll('#sm-header .sm-nav-links a').forEach(function(link){
link.addEventListener('click',function(){
var nl=document.querySelector('#sm-header .sm-nav-links');
var tg=document.querySelector('#sm-header .sm-nav-toggle');
if(nl.classList.contains('open')){nl.classList.remove('open');tg.classList.remove('open');}
});
});
document.addEventListener('DOMContentLoaded', function () {
var nav = document.querySelector('#sm-header .sm-nav');
if (!nav) return;
var navTop = nav.getBoundingClientRect().top + window.pageYOffset;
var navHeight = nav.offsetHeight;
var placeholder = null;
function onScroll() {
var adminBar = document.getElementById('wpadminbar');
var offset = adminBar ? adminBar.offsetHeight : 0;
if (window.pageYOffset > navTop - offset) {
if (!nav.classList.contains('sm-nav-stuck')) {
placeholder = document.createElement('div');
placeholder.style.height = navHeight + 'px';
nav.parentNode.insertBefore(placeholder, nav.nextSibling);
nav.classList.add('sm-nav-stuck');
nav.style.cssText += ';position:fixed!important;top:' + offset + 'px!important;left:0!important;right:0!important;width:100%!important;z-index:99999!important;box-shadow:0 2px 12px rgba(14,37,65,0.12)!important;';
} else {
nav.style.top = offset + 'px';
}
} else {
if (nav.classList.contains('sm-nav-stuck')) {
nav.classList.remove('sm-nav-stuck');
nav.style.position = '';
nav.style.top = '';
nav.style.boxShadow = '';
if (placeholder) { placeholder.remove(); placeholder = null; }
}
}
}
window.addEventListener('scroll', onScroll, { passive: true });
onScroll();
});
