Browse Source

Merge branch 'gh-pages' into dev

pull/141/head
RubaXa 10 years ago
parent
commit
fcb242b4fc
  1. 12
      .editorconfig
  2. 36
      index.html
  3. 7
      st/app.css

12
.editorconfig

@ -0,0 +1,12 @@
# editorconfig.org
root = true
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

36
index.html

@ -116,17 +116,17 @@
<div style="width: 25%; float: left; margin-top: 15px; margin-left: 10px" class="block__list block__list_words">
<div class="block__list-title">pull & put</div>
<ul id="advanced-1">
<li>Meet</li>
<li>Meat</li>
<li>Potato</li>
<li>Tea</li>
</ul>
</div>
<div style="width: 25%; float: left; margin-top: 15px; margin-left: 10px" class="block__list block__list_words">
<div class="block__list-title">only pull (clone)</div>
<div class="block__list-title">only pull (clone), no reordering</div>
<ul id="advanced-2">
<li>Sex</li>
<li>Drags</li>
<li>Drugs</li>
<li>Rock'n'roll</li>
</ul>
</div>
@ -145,6 +145,25 @@
</div>
<a name="h"></a>
<div class="container" style="margin-top: 100px;">
<div id="handle" style="margin-left: 30px;">
<div><div data-force="5" class="layer title title_xl">Drag handle and selectable text</div></div>
<div style="width: 30%; float: left; margin-top: 15px; margin-left: 10px" class="block__list_words">
<div class="block__list-title">Drag handles</div>
<ul id="handle-1">
<li><span class="drag-handle"></span>Select text freely</li>
<li><span class="drag-handle"></span>Drag my handle</li>
<li><span class="drag-handle"></span>Best of both worlds</li>
</ul>
</div>
<div style="clear: both"></div>
</div>
</div>
<a name="ng"></a>
<div id="todos" ng-app="todoApp" class="container" style="margin-top: 100px">
<div style="margin-left: 30px">
@ -339,13 +358,20 @@ var editableList = new Sortable(editable, {
name: 'advanced',
pull: false,
put: true
}].forEach(function (opts, i) {
}].forEach(function (groupOpts, i) {
new Sortable(document.getElementById('advanced-' + (i + 1)), {
group: opts,
sort: (i != 1),
group: groupOpts,
animation: 150
});
});
new Sortable(document.getElementById('handle-1'), {
handle: '.drag-handle',
animation: 150
});
angular.module('todoApp', ['ng-sortable'])
.controller('TodoController', ['$scope', function ($scope) {
$scope.todos = [

7
st/app.css

@ -216,7 +216,12 @@ img {
padding-bottom: 0;
}
.drag-handle {
margin-right: 0.25em;
color: blue;
cursor: move;
cursor: -webkit-grabbing; /* overrides 'move' */
}
#todos input {
padding: 5px;

Loading…
Cancel
Save