jQuery Sortable Columns

Drag and drop the blocks around to rearrange them


PHP/HTML Source:
<!DOCTYPE html>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Sortable Columns</title>
        <link href="raxan/ui/css/master.css" rel="stylesheet" type="text/css" />
        <!--[if lt IE 8]><link rel="stylesheet" href="raxan/ui/css/master.ie.css" type="text/css"><![endif]-->
        <link href="raxan/ui/css/default/theme.css" rel="stylesheet" type="text/css" />
        <script src="raxan/startup.js" type="text/javascript"></script>
        <script type="text/javascript" src="views/scripts/css-sortable-columns.js"></script>
        <style type="text/css">
            /* css class used for placeholder */
            .place {height:20px; background:#ffcc00; margin: 10px}
            /* center div text */
            .column div {text-align:center; line-height:100px; font-size:1.3em}
        </style>
    </head>

    <body>

        <div class="container c39 pad">
            <div class="column c11 border">
                <h3>Column 1</h3>
                <div class="rax-box round c9 r5  margin">S</div>
                <div class="rax-box alert round c9 r5  margin">T</div>
                <div class="rax-box info round c9 r5  margin">L</div>
            </div>
            <div class="column c11  border">
                <h3>Column 2</h3>
                <div class="rax-box success round c9 r5  margin">O</div>
                <div class="rax-box notice round c9 r5  margin">A</div>
                <div class="rax-box alert round c9 r5  margin">E</div>
            </div>
            <div class="column c11 last border">
                <h3>Column 3</h3>
                <div class="rax-box info round c9 r5  margin">R</div>
                <div class="rax-box round c9 r5  margin">B</div>
                <div class="rax-box success round c9 r5  margin"></div>
            </div>
        </div>
    </body>

</html>

Plugin Source:

HTML/JavaScript Source (views/scripts/css-sortable-columns.js):
/**
 * Sortable Columns Code behind file
 */

Raxan.include('jquery');
Raxan.include('jquery-ui-interactions');

Raxan.ready(function(){
    $('.container .column').sortable({
        connectWith:['.column'],
        placeholder: 'place',
        items:'div'
    });
})

Data Source: