From 6d46b1ba8d2aa4f443c02266d0fd74884b6c29c0 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Thu, 23 Aug 2018 09:36:30 +0100 Subject: [PATCH] Added code formatting and better indentation. --- README.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 475e7db..04d0c5a 100644 --- a/README.md +++ b/README.md @@ -27,30 +27,30 @@ Also: ## Usage -``` +```html
    -
  1. Some content
  2. -
  3. -
    Some content
    -
      -
    1. Some sub-item content
    2. -
    3. Some sub-item content
    4. -
    -
  4. -
  5. Some content
  6. +
  7. Some content
  8. +
  9. +
    Some content
    +
      +
    1. Some sub-item content
    2. +
    3. Some sub-item content
    4. +
    +
  10. +
  11. Some content
``` -``` - $(document).ready(function(){ +```javascript +$(document).ready(function(){ - $('.sortable').nestedSortable({ - handle: 'div', - items: 'li', - toleranceElement: '> div' - }); + $('.sortable').nestedSortable({ + handle: 'div', + items: 'li', + toleranceElement: '> div' + }); - }); +}); ``` Please note: every `
  • ` must have either one or two direct children, the first one being a container element (such as `
    ` in the above example), and the (optional) second one being the nested list. The container element has to be set as the 'toleranceElement' in the options, and this, or one of its children, as the 'handle'.