Skip to content

ReedyChen/SortableWithTies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

SortableWithTies

Objective

A simple plugin to create a list that is sortable with ties.

How to use it

Follow the formats:

<div class="div-container">

    <!-- tier1 -->
    <div>
        <ul class="ul-list">
            <span class="tier"> 1 </span>  <!-- tier handle -->
            <li class="list-element">a</li>
            <li class="list-element">b</li>
        </ul>
    </div>

    <!-- tier2 -->
    <div>
        <ul class="ul-list">
            <span class="tier"> 2 </span>  <!-- tier handle -->
            <li class="list-element">c</li>
            <li class="list-element">d</li>
        </ul>
    </div>
</div>

And include the JS files:

<script src="../assets/js/jquery-2.2.4.min.js"></script>
<script src="../assets/js/jquery-ui.min.js"></script>
<script src="../assets/js/voting.js"></script>

Future Update

Right now the plugin only supports specific format to sort. A variety of formats will be supported in the future

About

A simple sortable plugin with funcationality to sort with ties

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published