Interhaptics Interhaptics
  • Tech 
    • Haptic Composer 
    • Interhaptics Engine & SDK 
    • How Interhaptics works 
    • Haptics 
  • Devkit 
  • Ecosystem 
  • Company 
  • Documentation 
  • Contact 
  • Blog 
  • Discord 
Download
Interhaptics Interhaptics
Download
Interhaptics
  • Tech 
    • Haptic Composer 
    • Interhaptics Engine & SDK 
    • How Interhaptics works 
    • Haptics 
  • Devkit 
  • Ecosystem 
  • Company 
  • Documentation 
  • Contact 
  • Blog 
  • Discord 
Interhaptics
Keymaster
1 year, 3 months ago
Best Answer

Use <pre> tag for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add.

                            
                        <br />
<strong>JavaScript Code</strong><br />
[code lang="js"]<br />
function general() {<br />
$('.collapse-btn').on('click', function (e) {<br />
e.preventDefault();<br />
$(this).toggleClass('active')<br />
$(".collapse-wrap").slideToggle(500);<br />
});</p>
<p>$('.short-by a').click(function () {<br />
$(this).toggleClass('active-short').siblings().removeClass('active-short');<br />
});<br />
}<br />
                    
                            

  • This reply was modified 1 year, 3 months ago by Interhaptics.
Leaf Illustration

Interhaptics. Copyright © 2022 Go Touch VR SAS. All rights reserved.