cookie_toggle_class Short code - simple usage

cookie_toggle_class

cookie_toggle_class - m-framework.com

Applies specified class if present a special cookie




  • <div class="block test-cookie-block">
    If this block disappears, remove the cookie 'test_cookie'.
    <button class="btn btn-small" data-m-action="cookie_toggle_class" data-m-cookie="test_cookie" data-m-class="hidden" data-m-context=".test-cookie-block">Set cookie, apply a class</button>
    </div>

Users comments


Sorry you cant to leave a comment. Try to authorize yourself via login and password or use a one of social networks below: