User:N0one/Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 2: Line 2:


''Sandbux''.
''Sandbux''.
<!--
// Adds a custom toggle button that collapses/expands a target element,
// using the 'data-collapsetarget' attribute to identify the element by id.
$(function () {
    $('.mw-collapsible-toggle[data-collapsetarget]').on('click', function () {
        var target = $(this).data('collapsetarget');
        var $target = $(target);


        if (!$target.length) return;
[[File:Hl2 icon.png|link=User:N0one/Sandbox|User:N0one/Sandbox|16px]]
 
        $target.toggleClass('mw-collapsed');
        $target.find('> :not(.mw-collapsible-toggle)').toggle();
    });
});
-->
 
<div class="mw-collapsible mw-collapsed" id="myTestBox"><p>This is the hidden content.</p></div>
 
<span class="mw-collapsible-toggle" data-collapsetarget="#myTestBox" style="cursor: pointer;">Toggle Box</span>

Revision as of 09:32, 21 April 2025

To User:N0one/Sandbox/template for template testing.

Sandbux.

User:N0one/Sandbox