Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-html5accordion 0.1.7

    Download button

    No screenshots available
    Downloads: 140  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jonny Gerig Meyer | More programs
    BSD License / FREE
    November 20th, 2011, 19:10 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-html5accordion description

    JS support to expand/collapse content, like HTML5 details/summary elements

    django-html5accordion is a Django app that adds JS support to expand/collapse any content, like HTML5 details/summary elements. It can be called on any element, and takes as an argument a selector for the summary contents that should always remain visible (and act as the link to expand/collapse the hidden content).
    Dependencies

     jQuery library (http://jquery.com/)

    Installation

    In your Django project settings, add "html5accordion" to your INSTALLED_APPS.

    Usage

    Linking the JS:

    < script src="{{ STATIC_URL }}html5accordion/jquery.html5accordion.js" >< /script >

    Sample HTML:

    < article class="details" >
     < header class="summary" >
     < p >This content will always be visible< /p >
     < /header >
     < div >
     < p >This content will expand/collapse when `.summary` is clicked< /p >
     < /div >
    < /article >


    Calling the plugin:

    $('.details').html5accordion('.summary');


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    JavaScript support | HTML5 details | Django | JavaScript | HTML5

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM