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'; --- .../jquery-ui/demos/tooltip/ajax/content1.html | 1 + .../jquery-ui/demos/tooltip/ajax/content2.html | 1 + .../jquery-ui/demos/tooltip/custom-animation.html | 54 ++++++++++ .../jquery-ui/demos/tooltip/custom-content.html | 83 +++++++++++++++ .../jquery-ui/demos/tooltip/custom-style.html | 95 +++++++++++++++++ .../plugins/jquery-ui/demos/tooltip/default.html | 40 +++++++ .../plugins/jquery-ui/demos/tooltip/forms.html | 65 ++++++++++++ .../jquery-ui/demos/tooltip/images/st-stephens.jpg | Bin 0 -> 17724 bytes .../demos/tooltip/images/tower-bridge.jpg | Bin 0 -> 15764 bytes .../plugins/jquery-ui/demos/tooltip/index.html | 20 ++++ .../plugins/jquery-ui/demos/tooltip/tracking.html | 42 ++++++++ .../jquery-ui/demos/tooltip/video-player.html | 117 +++++++++++++++++++++ 12 files changed, 518 insertions(+) create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/ajax/content1.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/ajax/content2.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-animation.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-content.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-style.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/default.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/forms.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/images/st-stephens.jpg create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/images/tower-bridge.jpg create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/index.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/tracking.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/video-player.html (limited to '97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip') diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/ajax/content1.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/ajax/content1.html new file mode 100644 index 0000000..a1401b2 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/ajax/content1.html @@ -0,0 +1 @@ +

This content was loaded via ajax.

\ No newline at end of file diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/ajax/content2.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/ajax/content2.html new file mode 100644 index 0000000..f4132d7 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/ajax/content2.html @@ -0,0 +1 @@ +

This other content was loaded via ajax.

\ No newline at end of file diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-animation.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-animation.html new file mode 100644 index 0000000..46126d5 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-animation.html @@ -0,0 +1,54 @@ + + + + + jQuery UI Tooltip - Custom animation demo + + + + + + + + + + + + + +

There are various ways to customize the animation of a tooltip.

+

You can use the show and +hide options.

+

You can also use the open event.

+ +
+

This demo shows how to customize animations using the show and hide options, +as well as the open event.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-content.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-content.html new file mode 100644 index 0000000..c24a939 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-content.html @@ -0,0 +1,83 @@ + + + + + jQuery UI Tooltip - Custom content + + + + + + + + + + + + +
+
+

St. Stephen's Cathedral

+

Vienna, Austria

+
+ + St. Stephen's Cathedral + +
+ +
+
+

Tower Bridge

+

London, England

+
+ + Tower Bridge + +
+ +

All images are part of Wikimedia Commons +and are licensed under CC BY-SA 3.0 by the copyright holder.

+ +
+

Shows how to combine different event delegated tooltips into a single instance, by customizing the items and content options.

+

We realize you may want to interact with the map tooltips. This is a planned feature for a future version.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-style.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-style.html new file mode 100644 index 0000000..3e2a56a --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/custom-style.html @@ -0,0 +1,95 @@ + + + + + jQuery UI Tooltip - Custom Styling + + + + + + + + + + + + +

Tooltips can be attached to any element. When you hover +the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.

+

But as it's not a native tooltip, it can be styled. Any themes built with +ThemeRoller +will also style tooltips accordingly.

+

Tooltips are also useful for form elements, to show some additional information in the context of each field.

+

+

Hover the field to see the tooltip.

+ +
+

Hover the links above or use the tab key to cycle the focus on each element.

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

Tooltips can be attached to any element. When you hover +the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.

+

But as it's not a native tooltip, it can be styled. Any themes built with +ThemeRoller +will also style tooltips accordingly.

+

Tooltips are also useful for form elements, to show some additional information in the context of each field.

+

+

Hover the field to see the tooltip.

+ +
+

Hover the links above or use the tab key to cycle the focus on each element.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/forms.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/forms.html new file mode 100644 index 0000000..a5ce77f --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/forms.html @@ -0,0 +1,65 @@ + + + + + jQuery UI Tooltip - Forms + + + + + + + + + + + + + +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+

Use the button below to display the help texts, or just focus or mouseover the indivdual inputs.

+

A fixed width is defined in CSS to make the tooltips look consistent when displayed all at once.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/images/st-stephens.jpg b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/images/st-stephens.jpg new file mode 100644 index 0000000..30fc36d Binary files /dev/null and b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/images/st-stephens.jpg differ diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/images/tower-bridge.jpg b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/images/tower-bridge.jpg new file mode 100644 index 0000000..d1e14d6 Binary files /dev/null and b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/images/tower-bridge.jpg differ diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/index.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/index.html new file mode 100644 index 0000000..cebedd0 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/index.html @@ -0,0 +1,20 @@ + + + + + jQuery UI Tooltip Demos + + + + + + + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/tracking.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/tracking.html new file mode 100644 index 0000000..48e683e --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/tracking.html @@ -0,0 +1,42 @@ + + + + + jQuery UI Tooltip - Track the mouse + + + + + + + + + + + + +

Tooltips can be attached to any element. When you hover +the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.

+

But as it's not a native tooltip, it can be styled. Any themes built with +ThemeRoller +will also style tooltips accordingly.

+

Tooltips are also useful for form elements, to show some additional information in the context of each field.

+

+

Hover the field to see the tooltip.

+ +
+

Here the tooltips are positioned relative to the mouse, and follow the mouse while it moves above the element.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/video-player.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/video-player.html new file mode 100644 index 0000000..15db946 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/tooltip/video-player.html @@ -0,0 +1,117 @@ + + + + + jQuery UI Tooltip - Video Player demo + + + + + + + + + + + + + + + + +
Here Be Video (HTML5?)
+
+ + + + +
+ + +
+ + +
+ +
+

A fake video player with like/share/stats button, each with a custom-styled tooltip.

+
+ + -- cgit v1.2.2