zh Kooboo Logo Documents

Device

 

Display different content based on whether the client accessing the website is on a desktop or mobile device
 
Code 
 
<div>
    <h2 k-device="desktop">This is content for Desktop</h2>
     <h2 k-device="mobile">This is content for Mobile</h2>
</div>
 
Desktop client result
 
<div>
    <h2>This is content for Desktop</h2>
     
</div>
 
Mobile client result
 
<div>
    
     <h2>This is content for Mobile</h2>
</div>