From 02afd8a32edb13ea7fc2266ac80092ea15c0930c Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Wed, 9 Oct 2013 15:52:53 +0800 Subject: * treat 'apps/utils' as regular django app; which used to store general tools for used in other apps * moved 'templatetags' from 'apps/indicator' to 'apps/utils' * '.gitignore' to ignore 'fixtures_bak' * moved js plugins from 'apps/indicator/static/plugins' to 'staticfiles/plugins' apps/recommend: * updated 'recommend.models'; o commented 'recommend.models.ResearchCombination' (not used) * implemented views 'add_edit_blog_info' and 'ajax_add_edit_configs'; * added pages 'templates/recommend/add_edit_blog_info.html', 'add_edit_blog_info_error.html'; o related css and javascripts files * added 'tools.py'; * added 'utils/tools.py' for placing generic functions; * deleted 'initial_data.json' (mv 'fixtures' to 'fixtures_bak'); * small fixes to 'indicator.models', 'sciblog.models' and 'sfaccount.views' * fixed automatically show 'proper_nouns' annotation in blog: recovered the line 'import signals' in 'sciblog.models' * added 'is_ok()' method for 'recommend.models.ResearchConfig'; --- .../plugins/jquery-ui/demos/resizable/animate.html | 36 +++++++++++++++++ .../jquery-ui/demos/resizable/aspect-ratio.html | 35 +++++++++++++++++ .../jquery-ui/demos/resizable/constrain-area.html | 40 +++++++++++++++++++ .../plugins/jquery-ui/demos/resizable/default.html | 33 ++++++++++++++++ .../jquery-ui/demos/resizable/delay-start.html | 45 ++++++++++++++++++++++ .../plugins/jquery-ui/demos/resizable/helper.html | 36 +++++++++++++++++ .../plugins/jquery-ui/demos/resizable/index.html | 24 ++++++++++++ .../plugins/jquery-ui/demos/resizable/max-min.html | 38 ++++++++++++++++++ .../jquery-ui/demos/resizable/snap-to-grid.html | 35 +++++++++++++++++ .../demos/resizable/synchronous-resize.html | 42 ++++++++++++++++++++ .../jquery-ui/demos/resizable/textarea.html | 34 ++++++++++++++++ .../jquery-ui/demos/resizable/visual-feedback.html | 36 +++++++++++++++++ 12 files changed, 434 insertions(+) create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/animate.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/aspect-ratio.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/constrain-area.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/default.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/delay-start.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/helper.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/index.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/max-min.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/snap-to-grid.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/synchronous-resize.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/textarea.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/visual-feedback.html (limited to '97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable') diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/animate.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/animate.html new file mode 100644 index 0000000..c066be7 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/animate.html @@ -0,0 +1,36 @@ + + + + + jQuery UI Resizable - Animate + + + + + + + + + + + + +
+

Animate

+
+ +
+

Animate the resize action using the animate option (boolean). When this option is set to true, drag the outline to the desired location; the element animates to that size on drag stop.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/aspect-ratio.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/aspect-ratio.html new file mode 100644 index 0000000..f3f3501 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/aspect-ratio.html @@ -0,0 +1,35 @@ + + + + + jQuery UI Resizable - Preserve aspect ratio + + + + + + + + + + + + +
+

Preserve aspect ratio

+
+ +
+

Maintain the existing aspect ratio or set a new one to constrain the proportions on resize. Set the aspectRatio option to true, and optionally pass in a new ratio (i.e., 4/3)

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/constrain-area.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/constrain-area.html new file mode 100644 index 0000000..a91c89b --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/constrain-area.html @@ -0,0 +1,40 @@ + + + + + jQuery UI Resizable - Constrain resize area + + + + + + + + + + + + +
+

Containment

+
+

Resizable

+
+
+ +
+

Define the boundaries of the resizable area. Use the containment option to specify a parent DOM element or a jQuery selector, like 'document.'

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/default.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/default.html new file mode 100644 index 0000000..c6875ee --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/default.html @@ -0,0 +1,33 @@ + + + + + jQuery UI Resizable - Default functionality + + + + + + + + + + + + +
+

Resizable

+
+ +
+

Enable any DOM element to be resizable. With the cursor grab the right or bottom border and drag to the desired width or height.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/delay-start.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/delay-start.html new file mode 100644 index 0000000..a04cdd0 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/delay-start.html @@ -0,0 +1,45 @@ + + + + + jQuery UI Resizable - Delay start + + + + + + + + + + + + +

Time delay (ms):

+
+

Time

+
+ +

Distance delay (px):

+
+

Distance

+
+ +
+

Delay the start of resizng for a number of milliseconds with the delay option; prevent resizing until the cursor is held down and dragged a specifed number of pixels with the distance option.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/helper.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/helper.html new file mode 100644 index 0000000..24f4ad3 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/helper.html @@ -0,0 +1,36 @@ + + + + + jQuery UI Resizable - Helper + + + + + + + + + + + + +
+

Helper

+
+ +
+

Display only an outline of the element while resizing by setting the helper option to a CSS class.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/index.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/index.html new file mode 100644 index 0000000..7c626e2 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/index.html @@ -0,0 +1,24 @@ + + + + + jQuery UI Resizable Demos + + + + + + + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/max-min.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/max-min.html new file mode 100644 index 0000000..1f30421 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/max-min.html @@ -0,0 +1,38 @@ + + + + + jQuery UI Resizable - Maximum / minimum size + + + + + + + + + + + + +
+

Resize larger / smaller

+
+ +
+

Limit the resizable element to a maximum or minimum height or width using the maxHeight, maxWidth, minHeight, and minWidth options.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/snap-to-grid.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/snap-to-grid.html new file mode 100644 index 0000000..5d11ae7 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/snap-to-grid.html @@ -0,0 +1,35 @@ + + + + + jQuery UI Resizable - Snap to grid + + + + + + + + + + + + +
+

Grid

+
+ +
+

Snap the resizable element to a grid. Set the dimensions of grid cells (height and width in pixels) with the grid option.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/synchronous-resize.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/synchronous-resize.html new file mode 100644 index 0000000..4f7f418 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/synchronous-resize.html @@ -0,0 +1,42 @@ + + + + + jQuery UI Resizable - Synchronous resize + + + + + + + + + + + + +
+

Resize

+
+ +
+

will also resize

+
+ +
+

Resize multiple elements simultaneously by clicking and dragging the sides of one. Pass a shared selector into the alsoResize option.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/textarea.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/textarea.html new file mode 100644 index 0000000..8924450 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/textarea.html @@ -0,0 +1,34 @@ + + + + + jQuery UI Resizable - Textarea + + + + + + + + + + + + + + +
+

Display only an outline of the element while resizing by setting the helper option to a CSS class.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/visual-feedback.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/visual-feedback.html new file mode 100644 index 0000000..ee182b2 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/resizable/visual-feedback.html @@ -0,0 +1,36 @@ + + + + + jQuery UI Resizable - Visual feedback + + + + + + + + + + + + +
+

Ghost

+
+ +
+

Instead of showing the actual element during resize, set the ghost option to true to show a semi-transparent part of the element.

+
+ + -- cgit v1.2.2