Top Left Text cha

Web & App Development

HTML:

   <div class="drawerWrapper">
        <div class="topDrawer closed">
            <jdoc:include type="modules" name="drawer" />
            <div class="toggleOpen closed">
                <h4>Open/Close Control Panel</h4>
            </div>
        </div>
    </div>

jQuery:

<script>
        jQuery(document).on('click', '.toggleOpen.closed', function () {
            jQuery('.topDrawer').addClass('open').removeClass('closed');
            jQuery('.toggleOpen').addClass('open').removeClass('closed');
        });
        jQuery(document).on('click', '.toggleOpen.open', function() {
            jQuery('.topDrawer').addClass('closed').removeClass('open');
            jQuery('.toggleOpen').addClass('closed').removeClass('open');
        });
</script>

 

Add comment


Security code
Refresh

  • No comments found

Leave your comments

Post comment as a guest

0
Your comments are subjected to administrator's moderation.
X