compass-jquery-plugin 0.3.2.3 → 0.3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +54 -37
- data/VERSION.yml +1 -1
- data/lib/handle_attributes.rb +4 -4
- data/lib/handle_js_files.rb +5 -5
- data/lib/jqtouch_theme.rb +2 -2
- data/lib/jquery/dynatree.rb +2 -2
- data/lib/jquery/emulators.rb +1 -1
- data/lib/jquery/flash_messages.rb +6 -6
- data/lib/jquery/graphics.rb +5 -0
- data/lib/jquery/gridify/assertions.rb +1 -1
- data/lib/jquery/gridify/grid.rb +76 -59
- data/lib/jquery/gridify/grid_column.rb +73 -67
- data/lib/jquery/gridify/grid_finder.rb +79 -79
- data/lib/jquery/gridify/grid_options.rb +154 -149
- data/lib/jquery/gridify/grid_view.rb +143 -143
- data/lib/jquery/gridify.rb +25 -25
- data/lib/jquery/ical/calendar.rb +2 -2
- data/lib/jquery/ical/event.rb +48 -44
- data/lib/jquery/ical/helpers/ui_event_helper.rb +3 -3
- data/lib/jquery/jqgrid/jqgrid.rb +58 -58
- data/lib/jquery/jqgrid.rb +1 -1
- data/lib/jquery/jqtouch.rb +1 -1
- data/lib/jquery/jquery.rb +117 -117
- data/lib/jquery/jquery_auto_complete.rb +9 -9
- data/lib/jquery/jquery_json_response.rb +12 -12
- data/lib/jquery/jquery_selector_assertions.rb +55 -53
- data/lib/jquery/jstree.rb +2 -2
- data/lib/jquery/mobile.rb +1 -1
- data/lib/jquery/ribbon.rb +2 -2
- data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +5 -5
- data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +5 -5
- data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +1 -1
- data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +39 -39
- data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +74 -74
- data/lib/jquery/secret_sauce/model/find_for_grid.rb +21 -21
- data/lib/jquery/secret_sauce.rb +1 -1
- data/lib/jquery/tools.rb +1 -1
- data/lib/jquery_mobile_theme.rb +2 -2
- data/lib/jquery_ui_theme.rb +12 -12
- data/templates/dynatree/config/initializers/dynatree.rb +3 -3
- data/templates/dynatree/jquery/dynatree/aero.scss +16 -16
- data/templates/dynatree/jquery/dynatree/aqua.scss +16 -16
- data/templates/dynatree/jquery/dynatree/crystal.scss +16 -16
- data/templates/dynatree/jquery/dynatree/xp.scss +17 -17
- data/templates/dynatree/jquery.dynatree.js +2926 -2912
- data/templates/emulators/config/initializers/emulators.rb +6 -6
- data/templates/graphics/config/initializers/graphics.rb +5 -0
- data/templates/graphics/jquery/ganttView.scss +89 -0
- data/templates/graphics/jquery.ganttView.js +1669 -0
- data/templates/graphics/jquery.ganttView.min.js +70 -0
- data/templates/{jquery → graphics}/jquery.sparkline.js +466 -438
- data/templates/{jquery → graphics}/jquery.sparkline.min.js +0 -0
- data/templates/graphics/manifest.rb +9 -0
- data/templates/jqgrid/config/initializers/jqgrid.rb +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-ar.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +135 -131
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +135 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +137 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +138 -132
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +19 -16
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +8 -1
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +139 -136
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +4 -1
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +14 -1
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +130 -124
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +144 -138
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-sr.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +132 -126
- data/templates/jqgrid/jquery.jqGrid.js +12735 -10444
- data/templates/jqgrid/jquery.jqGrid.min.js +477 -469
- data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +12 -10
- data/templates/jqtouch/config/initializers/jqtouch.rb +3 -3
- data/templates/jqtouch/jquery/touch/jqtouch.scss +1 -1
- data/templates/jqtouch/jquery.jqtouch.js +10025 -10043
- data/templates/jquery/config/initializers/jquery.rb +2 -4
- data/templates/jquery/history.adapter.jquery.js +71 -0
- data/templates/jquery/history.adapter.jquery.min.js +4 -0
- data/templates/jquery/history.html4.js +690 -0
- data/templates/jquery/history.html4.min.js +21 -0
- data/templates/jquery/history.js +1297 -0
- data/templates/jquery/history.min.js +29 -0
- data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-az.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +8 -8
- data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-da.js +14 -14
- data/templates/jquery/i18n/jquery.ui/datepicker-de.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-el.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-es.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-et.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-eu.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fa.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +15 -15
- data/templates/jquery/i18n/jquery.ui/datepicker-fo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr.js +22 -22
- data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-he.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hu.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hu.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-id.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-is.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-it.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-no.js +16 -16
- data/templates/jquery/i18n/jquery.ui/datepicker-no.min.js +2 -2
- data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sq.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sv.js +14 -14
- data/templates/jquery/i18n/jquery.ui/datepicker-ta.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-th.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-tr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
- data/templates/jquery/{partials → jquery/ui}/_flash_messages.scss +0 -0
- data/templates/jquery/jquery/ui/_theme.scss +14 -13
- data/templates/jquery/jquery/ui/contextMenu/configure.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/copy.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/cut.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/delete.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/edit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/exit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/new.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/paste.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/rename.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/show.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/trash.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu.scss +16 -10
- data/templates/jquery/jquery-ui.js +11839 -23066
- data/templates/jquery/jquery-ui.min.js +401 -795
- data/templates/jquery/jquery.bgiframe.js +27 -25
- data/templates/jquery/jquery.contextMenu.js +209 -196
- data/templates/jquery/jquery.cookie.js +3 -1
- data/templates/jquery/jquery.dotimeout.js +236 -228
- data/templates/jquery/jquery.dst.js +154 -151
- data/templates/jquery/jquery.farbtastic.js +293 -293
- data/templates/jquery/jquery.flashMessages.js +26 -0
- data/templates/jquery/jquery.flashMessages.min.js +1 -0
- data/templates/jquery/jquery.form.js +803 -786
- data/templates/jquery/jquery.haml.js +248 -247
- data/templates/jquery/jquery.hotkeys.js +89 -89
- data/templates/jquery/jquery.js +8141 -8106
- data/templates/jquery/jquery.layout.js +2451 -2415
- data/templates/jquery/jquery.min.js +167 -166
- data/templates/jquery/jquery.mousewheel.js +62 -54
- data/templates/jquery/jquery.offline.js +171 -171
- data/templates/jquery/jquery.pngFix.js +76 -76
- data/templates/jquery/jquery.replacetext.js +83 -83
- data/templates/jquery/jquery.themeswitchertool.js +202 -177
- data/templates/jquery/jquery.tmpl.js +478 -473
- data/templates/jquery/jquery.tmplPlus.js +82 -81
- data/templates/jquery/jrails.js +178 -175
- data/templates/jquery/json.js +77 -7
- data/templates/jquery/json2.js +480 -0
- data/templates/jquery/json2.min.js +7 -0
- data/templates/jquery/lib/tasks/haml.rake +2 -2
- data/templates/jquery/manifest.rb +21 -17
- data/templates/jstree/jquery.jstree.js +5967 -4536
- data/templates/mobile/config/initializers/mobile.rb +1 -1
- data/templates/mobile/jquery/mobile/_base.scss +944 -927
- data/templates/mobile/jquery/mobile/default.scss +61 -48
- data/templates/mobile/jquery/mobile/valencia.scss +56 -42
- data/templates/mobile/jquery.mobile.js +4461 -4347
- data/templates/mobile/jquery.mobile.min.js +11 -2
- data/templates/mobile/lib/tasks/jquery.mobile.rake +12 -12
- data/templates/ribbon/config/initializers/ribbon.rb +2 -2
- data/templates/ribbon/jquery.ribbon.js +50 -29
- data/templates/secret_sauce/secret_sauce.js +8 -8
- data/templates/tools/flowplayer.js +945 -1
- data/templates/tools/jquery.tools.js +4645 -4335
- data/templates/tools/jquery.tools.min.js +37 -37
- data/templates/tools/lib/tasks/jquery.tools.rake +4 -4
- data/templates/tools/swfobject.js +813 -773
- metadata +33 -21
- data/templates/jquery/haml.js +0 -506
- data/templates/jquery/haml.min.js +0 -5
- data/templates/jquery/jquery/ui/contextMenu/door.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_copy.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_delete.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_edit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_new.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_paste.png +0 -0
- data/templates/jquery/jquery.compat-1.3.js +0 -291
- data/templates/jquery/jquery.compat-1.3.min.js +0 -6
- data/templates/jquery/jquery.flash_messages.js +0 -5
- data/templates/jquery/jquery.flash_messages.min.js +0 -1
- data/templates/jquery/jquery.history.js +0 -194
- data/templates/jquery/jquery.history.min.js +0 -5
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
|
2
|
+
|
3
3
|
jQuery Tools @VERSION Dateinput - <input type="date" /> for humans
|
4
4
|
|
5
5
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -7,8 +7,8 @@
|
|
7
7
|
http://flowplayer.org/tools/form/dateinput/
|
8
8
|
|
9
9
|
Since: Mar 2010
|
10
|
-
Date: @DATE
|
11
|
-
|
10
|
+
Date: @DATE
|
11
|
+
|
12
12
|
jQuery Tools @VERSION Overlay - Overlay base. Extend it.
|
13
13
|
|
14
14
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -16,17 +16,17 @@
|
|
16
16
|
http://flowplayer.org/tools/overlay/
|
17
17
|
|
18
18
|
Since: March 2008
|
19
|
-
Date: @DATE
|
20
|
-
|
21
|
-
jQuery Tools @VERSION / Overlay Apple effect.
|
19
|
+
Date: @DATE
|
20
|
+
|
21
|
+
jQuery Tools @VERSION / Overlay Apple effect.
|
22
22
|
|
23
23
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
24
24
|
|
25
25
|
http://flowplayer.org/tools/overlay/apple.html
|
26
26
|
|
27
27
|
Since: July 2009
|
28
|
-
Date: @DATE
|
29
|
-
|
28
|
+
Date: @DATE
|
29
|
+
|
30
30
|
jQuery Tools @VERSION Rangeinput - HTML5 <input type="range" /> for humans
|
31
31
|
|
32
32
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -34,8 +34,8 @@
|
|
34
34
|
http://flowplayer.org/tools/rangeinput/
|
35
35
|
|
36
36
|
Since: Mar 2010
|
37
|
-
Date: @DATE
|
38
|
-
|
37
|
+
Date: @DATE
|
38
|
+
|
39
39
|
jQuery Tools @VERSION Scrollable - New wave UI design
|
40
40
|
|
41
41
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -43,8 +43,8 @@
|
|
43
43
|
http://flowplayer.org/tools/scrollable.html
|
44
44
|
|
45
45
|
Since: March 2008
|
46
|
-
Date: @DATE
|
47
|
-
|
46
|
+
Date: @DATE
|
47
|
+
|
48
48
|
jQuery Tools @VERSION / Scrollable Autoscroll
|
49
49
|
|
50
50
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -52,8 +52,8 @@
|
|
52
52
|
http://flowplayer.org/tools/scrollable/autoscroll.html
|
53
53
|
|
54
54
|
Since: September 2009
|
55
|
-
Date: @DATE
|
56
|
-
|
55
|
+
Date: @DATE
|
56
|
+
|
57
57
|
jQuery Tools @VERSION / Scrollable Navigator
|
58
58
|
|
59
59
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -61,8 +61,8 @@
|
|
61
61
|
http://flowplayer.org/tools/scrollable/navigator.html
|
62
62
|
|
63
63
|
Since: September 2009
|
64
|
-
Date: @DATE
|
65
|
-
|
64
|
+
Date: @DATE
|
65
|
+
|
66
66
|
jQuery Tools @VERSION Tabs- The basics of UI design.
|
67
67
|
|
68
68
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -70,8 +70,8 @@
|
|
70
70
|
http://flowplayer.org/tools/tabs/
|
71
71
|
|
72
72
|
Since: November 2008
|
73
|
-
Date: @DATE
|
74
|
-
|
73
|
+
Date: @DATE
|
74
|
+
|
75
75
|
jQuery Tools @VERSION Slideshow - Extend it.
|
76
76
|
|
77
77
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -79,8 +79,8 @@
|
|
79
79
|
http://flowplayer.org/tools/tabs/slideshow.html
|
80
80
|
|
81
81
|
Since: September 2009
|
82
|
-
Date: @DATE
|
83
|
-
|
82
|
+
Date: @DATE
|
83
|
+
|
84
84
|
jQuery Tools @VERSION / Expose - Dim the lights
|
85
85
|
|
86
86
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -88,8 +88,8 @@
|
|
88
88
|
http://flowplayer.org/tools/toolbox/expose.html
|
89
89
|
|
90
90
|
Since: Mar 2010
|
91
|
-
Date: @DATE
|
92
|
-
|
91
|
+
Date: @DATE
|
92
|
+
|
93
93
|
jQuery Tools @VERSION / Flashembed - New wave Flash embedding
|
94
94
|
|
95
95
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -97,8 +97,8 @@
|
|
97
97
|
http://flowplayer.org/tools/toolbox/flashembed.html
|
98
98
|
|
99
99
|
Since : March 2008
|
100
|
-
Date : @DATE
|
101
|
-
|
100
|
+
Date : @DATE
|
101
|
+
|
102
102
|
jQuery Tools @VERSION History "Back button for AJAX apps"
|
103
103
|
|
104
104
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -106,21 +106,21 @@
|
|
106
106
|
http://flowplayer.org/tools/toolbox/history.html
|
107
107
|
|
108
108
|
Since: Mar 2010
|
109
|
-
Date: @DATE
|
110
|
-
|
109
|
+
Date: @DATE
|
110
|
+
|
111
111
|
jQuery Tools @VERSION Mousewheel
|
112
112
|
|
113
113
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
114
114
|
|
115
115
|
http://flowplayer.org/tools/toolbox/mousewheel.html
|
116
116
|
|
117
|
-
based on jquery.event.wheel.js ~ rev 1 ~
|
117
|
+
based on jquery.event.wheel.js ~ rev 1 ~
|
118
118
|
Copyright (c) 2008, Three Dub Media
|
119
|
-
http://threedubmedia.com
|
119
|
+
http://threedubmedia.com
|
120
120
|
|
121
121
|
Since: Mar 2010
|
122
|
-
Date: @DATE
|
123
|
-
|
122
|
+
Date: @DATE
|
123
|
+
|
124
124
|
jQuery Tools @VERSION Tooltip - UI essentials
|
125
125
|
|
126
126
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -128,8 +128,8 @@
|
|
128
128
|
http://flowplayer.org/tools/tooltip/
|
129
129
|
|
130
130
|
Since: November 2008
|
131
|
-
Date: @DATE
|
132
|
-
|
131
|
+
Date: @DATE
|
132
|
+
|
133
133
|
jQuery Tools @VERSION / Tooltip Dynamic Positioning
|
134
134
|
|
135
135
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -137,8 +137,8 @@
|
|
137
137
|
http://flowplayer.org/tools/tooltip/dynamic.html
|
138
138
|
|
139
139
|
Since: July 2009
|
140
|
-
Date: @DATE
|
141
|
-
|
140
|
+
Date: @DATE
|
141
|
+
|
142
142
|
jQuery Tools @VERSION / Tooltip Slide Effect
|
143
143
|
|
144
144
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -146,8 +146,8 @@
|
|
146
146
|
http://flowplayer.org/tools/tooltip/slide.html
|
147
147
|
|
148
148
|
Since: September 2009
|
149
|
-
Date: @DATE
|
150
|
-
|
149
|
+
Date: @DATE
|
150
|
+
|
151
151
|
jQuery Tools Validator @VERSION - HTML5 is here. Now use it.
|
152
152
|
|
153
153
|
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
|
@@ -155,7 +155,7 @@
|
|
155
155
|
http://flowplayer.org/tools/form/validator/
|
156
156
|
|
157
157
|
Since: Mar 2010
|
158
|
-
Date: @DATE
|
158
|
+
Date: @DATE
|
159
159
|
*/
|
160
160
|
(function(a){function y(c,d){c=""+c;for(d=d||2;c.length<d;)c="0"+c;return c}function t(c,d,k){var o=c.getDate(),i=c.getDay(),r=c.getMonth();c=c.getFullYear();var s={d:o,dd:y(o),ddd:g[k].shortDays[i],dddd:g[k].days[i],m:r+1,mm:y(r+1),mmm:g[k].shortMonths[r],mmmm:g[k].months[r],yy:String(c).slice(2),yyyy:c};d=d.replace(h,function(p){return p in s?s[p]:p.slice(1,p.length-1)});return l.html(d).html()}function n(c,d){return c.getFullYear()===d.getFullYear()&&c.getMonth()==d.getMonth()&&c.getDate()==d.getDate()}
|
161
161
|
function e(c){if(c){if(c.constructor==Date)return c;if(typeof c=="string"){var d=c.split("-");if(d.length==3)return new Date(parseInt(d[0],10),parseInt(d[1],10)-1,parseInt(d[2],10));if(!/^-?\d+$/.test(c))return;c=parseInt(c,10)}d=new Date;d.setDate(d.getDate()+c);return d}}function f(c,d){function k(u,x,z){G=u;N=u.getFullYear();H=u.getMonth();K=u.getDate();z=z||a.Event("api");z.type="change";L.trigger(z,[u]);if(!z.isDefaultPrevented()){c.val(t(u,x.format,x.lang));c.data("date",u);i.hide(z)}}function o(u){u.type=
|
@@ -17,19 +17,19 @@ end
|
|
17
17
|
|
18
18
|
namespace :jquery do
|
19
19
|
namespace :tools do
|
20
|
-
|
20
|
+
|
21
21
|
namespace :haml do
|
22
22
|
desc 'Cleanup directory'
|
23
|
-
task :cleanup, :dir do |
|
23
|
+
task :cleanup, :dir do |t, args|
|
24
24
|
cleanup(args[:dir])
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
namespace :convert do
|
29
29
|
desc 'Convert /test files to haml'
|
30
30
|
task :test do
|
31
31
|
puts "Haml conversion started for /test files:"
|
32
|
-
|
32
|
+
|
33
33
|
path = File.join(JQ_TOOLS_SRC, 'test')
|
34
34
|
cleanup("#{path}/**/*.html.haml")
|
35
35
|
Dir["#{path}/**/*.htm"].each do |src|
|
@@ -1,777 +1,817 @@
|
|
1
1
|
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
|
2
|
-
|
3
|
-
*/
|
2
|
+
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
|
3
|
+
*/
|
4
4
|
|
5
5
|
var swfobject = function() {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
6
|
+
|
7
|
+
var UNDEF = "undefined",
|
8
|
+
OBJECT = "object",
|
9
|
+
SHOCKWAVE_FLASH = "Shockwave Flash",
|
10
|
+
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
|
11
|
+
FLASH_MIME_TYPE = "application/x-shockwave-flash",
|
12
|
+
EXPRESS_INSTALL_ID = "SWFObjectExprInst",
|
13
|
+
ON_READY_STATE_CHANGE = "onreadystatechange",
|
14
|
+
|
15
|
+
win = window,
|
16
|
+
doc = document,
|
17
|
+
nav = navigator,
|
18
|
+
|
19
|
+
plugin = false,
|
20
|
+
domLoadFnArr = [main],
|
21
|
+
regObjArr = [],
|
22
|
+
objIdArr = [],
|
23
|
+
listenersArr = [],
|
24
|
+
storedAltContent,
|
25
|
+
storedAltContentId,
|
26
|
+
storedCallbackFn,
|
27
|
+
storedCallbackObj,
|
28
|
+
isDomLoaded = false,
|
29
|
+
isExpressInstallActive = false,
|
30
|
+
dynamicStylesheet,
|
31
|
+
dynamicStylesheetMedia,
|
32
|
+
autoHideShow = true,
|
33
|
+
|
34
|
+
/* Centralized function for browser feature detection
|
35
|
+
- User agent string detection is only used when no good alternative is possible
|
36
|
+
- Is executed directly for optimal performance
|
37
|
+
*/
|
38
|
+
ua = function() {
|
39
|
+
var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF,
|
40
|
+
u = nav.userAgent.toLowerCase(),
|
41
|
+
p = nav.platform.toLowerCase(),
|
42
|
+
windows = p ? /win/.test(p) : /win/.test(u),
|
43
|
+
mac = p ? /mac/.test(p) : /mac/.test(u),
|
44
|
+
webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
|
45
|
+
ie = !+"\v1", // feature detection based on Andrea Giammarchi's solution: http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html
|
46
|
+
playerVersion = [0,0,0],
|
47
|
+
d = null;
|
48
|
+
if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
|
49
|
+
d = nav.plugins[SHOCKWAVE_FLASH].description;
|
50
|
+
if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { // navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+
|
51
|
+
plugin = true;
|
52
|
+
ie = false; // cascaded feature detection for Internet Explorer
|
53
|
+
d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
|
54
|
+
playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
|
55
|
+
playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
|
56
|
+
playerVersion[2] = /[a-zA-Z]/.test(d) ? parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
else if (typeof win.ActiveXObject != UNDEF) {
|
60
|
+
try {
|
61
|
+
var a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
|
62
|
+
if (a) { // a will return null when ActiveX is disabled
|
63
|
+
d = a.GetVariable("$version");
|
64
|
+
if (d) {
|
65
|
+
ie = true; // cascaded feature detection for Internet Explorer
|
66
|
+
d = d.split(" ")[1].split(",");
|
67
|
+
playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
catch(e) {
|
72
|
+
}
|
73
|
+
}
|
74
|
+
return { w3:w3cdom, pv:playerVersion, wk:webkit, ie:ie, win:windows, mac:mac };
|
75
|
+
}(),
|
76
|
+
|
77
|
+
/* Cross-browser onDomLoad
|
78
|
+
- Will fire an event as soon as the DOM of a web page is loaded
|
79
|
+
- Internet Explorer workaround based on Diego Perini's solution: http://javascript.nwbox.com/IEContentLoaded/
|
80
|
+
- Regular onload serves as fallback
|
81
|
+
*/
|
82
|
+
onDomLoad = function() {
|
83
|
+
if (!ua.w3) {
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
if ((typeof doc.readyState != UNDEF && doc.readyState == "complete") || (typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { // function is fired after onload, e.g. when script is inserted dynamically
|
87
|
+
callDomLoadFunctions();
|
88
|
+
}
|
89
|
+
if (!isDomLoaded) {
|
90
|
+
if (typeof doc.addEventListener != UNDEF) {
|
91
|
+
doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false);
|
92
|
+
}
|
93
|
+
if (ua.ie && ua.win) {
|
94
|
+
doc.attachEvent(ON_READY_STATE_CHANGE, function() {
|
95
|
+
if (doc.readyState == "complete") {
|
96
|
+
doc.detachEvent(ON_READY_STATE_CHANGE, arguments.callee);
|
97
|
+
callDomLoadFunctions();
|
98
|
+
}
|
99
|
+
});
|
100
|
+
if (win == top) { // if not inside an iframe
|
101
|
+
(function() {
|
102
|
+
if (isDomLoaded) {
|
103
|
+
return;
|
104
|
+
}
|
105
|
+
try {
|
106
|
+
doc.documentElement.doScroll("left");
|
107
|
+
}
|
108
|
+
catch(e) {
|
109
|
+
setTimeout(arguments.callee, 0);
|
110
|
+
return;
|
111
|
+
}
|
112
|
+
callDomLoadFunctions();
|
113
|
+
})();
|
114
|
+
}
|
115
|
+
}
|
116
|
+
if (ua.wk) {
|
117
|
+
(function() {
|
118
|
+
if (isDomLoaded) {
|
119
|
+
return;
|
120
|
+
}
|
121
|
+
if (!/loaded|complete/.test(doc.readyState)) {
|
122
|
+
setTimeout(arguments.callee, 0);
|
123
|
+
return;
|
124
|
+
}
|
125
|
+
callDomLoadFunctions();
|
126
|
+
})();
|
127
|
+
}
|
128
|
+
addLoadEvent(callDomLoadFunctions);
|
129
|
+
}
|
130
|
+
}();
|
131
|
+
|
132
|
+
function callDomLoadFunctions() {
|
133
|
+
if (isDomLoaded) {
|
134
|
+
return;
|
135
|
+
}
|
136
|
+
try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early
|
137
|
+
var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span"));
|
138
|
+
t.parentNode.removeChild(t);
|
139
|
+
}
|
140
|
+
catch (e) {
|
141
|
+
return;
|
142
|
+
}
|
143
|
+
isDomLoaded = true;
|
144
|
+
var dl = domLoadFnArr.length;
|
145
|
+
for (var i = 0; i < dl; i++) {
|
146
|
+
domLoadFnArr[i]();
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
function addDomLoadEvent(fn) {
|
151
|
+
if (isDomLoaded) {
|
152
|
+
fn();
|
153
|
+
}
|
154
|
+
else {
|
155
|
+
domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
/* Cross-browser onload
|
160
|
+
- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
|
161
|
+
- Will fire an event as soon as a web page including all of its assets are loaded
|
162
|
+
*/
|
163
|
+
function addLoadEvent(fn) {
|
164
|
+
if (typeof win.addEventListener != UNDEF) {
|
165
|
+
win.addEventListener("load", fn, false);
|
166
|
+
}
|
167
|
+
else if (typeof doc.addEventListener != UNDEF) {
|
168
|
+
doc.addEventListener("load", fn, false);
|
169
|
+
}
|
170
|
+
else if (typeof win.attachEvent != UNDEF) {
|
171
|
+
addListener(win, "onload", fn);
|
172
|
+
}
|
173
|
+
else if (typeof win.onload == "function") {
|
174
|
+
var fnOld = win.onload;
|
175
|
+
win.onload = function() {
|
176
|
+
fnOld();
|
177
|
+
fn();
|
178
|
+
};
|
179
|
+
}
|
180
|
+
else {
|
181
|
+
win.onload = fn;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
/* Main function
|
186
|
+
- Will preferably execute onDomLoad, otherwise onload (as a fallback)
|
187
|
+
*/
|
188
|
+
function main() {
|
189
|
+
if (plugin) {
|
190
|
+
testPlayerVersion();
|
191
|
+
}
|
192
|
+
else {
|
193
|
+
matchVersions();
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
/* Detect the Flash Player version for non-Internet Explorer browsers
|
198
|
+
- Detecting the plug-in version via the object element is more precise than using the plugins collection item's description:
|
199
|
+
a. Both release and build numbers can be detected
|
200
|
+
b. Avoid wrong descriptions by corrupt installers provided by Adobe
|
201
|
+
c. Avoid wrong descriptions by multiple Flash Player entries in the plugin Array, caused by incorrect browser imports
|
202
|
+
- Disadvantage of this method is that it depends on the availability of the DOM, while the plugins collection is immediately available
|
203
|
+
*/
|
204
|
+
function testPlayerVersion() {
|
205
|
+
var b = doc.getElementsByTagName("body")[0];
|
206
|
+
var o = createElement(OBJECT);
|
207
|
+
o.setAttribute("type", FLASH_MIME_TYPE);
|
208
|
+
var t = b.appendChild(o);
|
209
|
+
if (t) {
|
210
|
+
var counter = 0;
|
211
|
+
(function() {
|
212
|
+
if (typeof t.GetVariable != UNDEF) {
|
213
|
+
var d = t.GetVariable("$version");
|
214
|
+
if (d) {
|
215
|
+
d = d.split(" ")[1].split(",");
|
216
|
+
ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
|
217
|
+
}
|
218
|
+
}
|
219
|
+
else if (counter < 10) {
|
220
|
+
counter++;
|
221
|
+
setTimeout(arguments.callee, 10);
|
222
|
+
return;
|
223
|
+
}
|
224
|
+
b.removeChild(o);
|
225
|
+
t = null;
|
226
|
+
matchVersions();
|
227
|
+
})();
|
228
|
+
}
|
229
|
+
else {
|
230
|
+
matchVersions();
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
/* Perform Flash Player and SWF version matching; static publishing only
|
235
|
+
*/
|
236
|
+
function matchVersions() {
|
237
|
+
var rl = regObjArr.length;
|
238
|
+
if (rl > 0) {
|
239
|
+
for (var i = 0; i < rl; i++) { // for each registered object element
|
240
|
+
var id = regObjArr[i].id;
|
241
|
+
var cb = regObjArr[i].callbackFn;
|
242
|
+
var cbObj = {success:false, id:id};
|
243
|
+
if (ua.pv[0] > 0) {
|
244
|
+
var obj = getElementById(id);
|
245
|
+
if (obj) {
|
246
|
+
if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { // Flash Player version >= published SWF version: Houston, we have a match!
|
247
|
+
setVisibility(id, true);
|
248
|
+
if (cb) {
|
249
|
+
cbObj.success = true;
|
250
|
+
cbObj.ref = getObjectById(id);
|
251
|
+
cb(cbObj);
|
252
|
+
}
|
253
|
+
}
|
254
|
+
else if (regObjArr[i].expressInstall && canExpressInstall()) { // show the Adobe Express Install dialog if set by the web page author and if supported
|
255
|
+
var att = {};
|
256
|
+
att.data = regObjArr[i].expressInstall;
|
257
|
+
att.width = obj.getAttribute("width") || "0";
|
258
|
+
att.height = obj.getAttribute("height") || "0";
|
259
|
+
if (obj.getAttribute("class")) {
|
260
|
+
att.styleclass = obj.getAttribute("class");
|
261
|
+
}
|
262
|
+
if (obj.getAttribute("align")) {
|
263
|
+
att.align = obj.getAttribute("align");
|
264
|
+
}
|
265
|
+
// parse HTML object param element's name-value pairs
|
266
|
+
var par = {};
|
267
|
+
var p = obj.getElementsByTagName("param");
|
268
|
+
var pl = p.length;
|
269
|
+
for (var j = 0; j < pl; j++) {
|
270
|
+
if (p[j].getAttribute("name").toLowerCase() != "movie") {
|
271
|
+
par[p[j].getAttribute("name")] = p[j].getAttribute("value");
|
272
|
+
}
|
273
|
+
}
|
274
|
+
showExpressInstall(att, par, id, cb);
|
275
|
+
}
|
276
|
+
else { // Flash Player and SWF version mismatch or an older Webkit engine that ignores the HTML object element's nested param elements: display alternative content instead of SWF
|
277
|
+
displayAltContent(obj);
|
278
|
+
if (cb) {
|
279
|
+
cb(cbObj);
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
else { // if no Flash Player is installed or the fp version cannot be detected we let the HTML object element do its job (either show a SWF or alternative content)
|
285
|
+
setVisibility(id, true);
|
286
|
+
if (cb) {
|
287
|
+
var o = getObjectById(id); // test whether there is an HTML object element or not
|
288
|
+
if (o && typeof o.SetVariable != UNDEF) {
|
289
|
+
cbObj.success = true;
|
290
|
+
cbObj.ref = o;
|
291
|
+
}
|
292
|
+
cb(cbObj);
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}
|
298
|
+
|
299
|
+
function getObjectById(objectIdStr) {
|
300
|
+
var r = null;
|
301
|
+
var o = getElementById(objectIdStr);
|
302
|
+
if (o && o.nodeName == "OBJECT") {
|
303
|
+
if (typeof o.SetVariable != UNDEF) {
|
304
|
+
r = o;
|
305
|
+
}
|
306
|
+
else {
|
307
|
+
var n = o.getElementsByTagName(OBJECT)[0];
|
308
|
+
if (n) {
|
309
|
+
r = n;
|
310
|
+
}
|
311
|
+
}
|
312
|
+
}
|
313
|
+
return r;
|
314
|
+
}
|
315
|
+
|
316
|
+
/* Requirements for Adobe Express Install
|
317
|
+
- only one instance can be active at a time
|
318
|
+
- fp 6.0.65 or higher
|
319
|
+
- Win/Mac OS only
|
320
|
+
- no Webkit engines older than version 312
|
321
|
+
*/
|
322
|
+
function canExpressInstall() {
|
323
|
+
return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312);
|
324
|
+
}
|
325
|
+
|
326
|
+
/* Show the Adobe Express Install dialog
|
327
|
+
- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
|
328
|
+
*/
|
329
|
+
function showExpressInstall(att, par, replaceElemIdStr, callbackFn) {
|
330
|
+
isExpressInstallActive = true;
|
331
|
+
storedCallbackFn = callbackFn || null;
|
332
|
+
storedCallbackObj = {success:false, id:replaceElemIdStr};
|
333
|
+
var obj = getElementById(replaceElemIdStr);
|
334
|
+
if (obj) {
|
335
|
+
if (obj.nodeName == "OBJECT") { // static publishing
|
336
|
+
storedAltContent = abstractAltContent(obj);
|
337
|
+
storedAltContentId = null;
|
338
|
+
}
|
339
|
+
else { // dynamic publishing
|
340
|
+
storedAltContent = obj;
|
341
|
+
storedAltContentId = replaceElemIdStr;
|
342
|
+
}
|
343
|
+
att.id = EXPRESS_INSTALL_ID;
|
344
|
+
if (typeof att.width == UNDEF || (!/%$/.test(att.width) && parseInt(att.width, 10) < 310)) {
|
345
|
+
att.width = "310";
|
346
|
+
}
|
347
|
+
if (typeof att.height == UNDEF || (!/%$/.test(att.height) && parseInt(att.height, 10) < 137)) {
|
348
|
+
att.height = "137";
|
349
|
+
}
|
350
|
+
doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
|
351
|
+
var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
|
352
|
+
fv = "MMredirectURL=" + win.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title;
|
353
|
+
if (typeof par.flashvars != UNDEF) {
|
354
|
+
par.flashvars += "&" + fv;
|
355
|
+
}
|
356
|
+
else {
|
357
|
+
par.flashvars = fv;
|
358
|
+
}
|
359
|
+
// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
|
360
|
+
// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
|
361
|
+
if (ua.ie && ua.win && obj.readyState != 4) {
|
362
|
+
var newObj = createElement("div");
|
363
|
+
replaceElemIdStr += "SWFObjectNew";
|
364
|
+
newObj.setAttribute("id", replaceElemIdStr);
|
365
|
+
obj.parentNode.insertBefore(newObj, obj); // insert placeholder div that will be replaced by the object element that loads expressinstall.swf
|
366
|
+
obj.style.display = "none";
|
367
|
+
(function() {
|
368
|
+
if (obj.readyState == 4) {
|
369
|
+
obj.parentNode.removeChild(obj);
|
370
|
+
}
|
371
|
+
else {
|
372
|
+
setTimeout(arguments.callee, 10);
|
373
|
+
}
|
374
|
+
})();
|
375
|
+
}
|
376
|
+
createSWF(att, par, replaceElemIdStr);
|
377
|
+
}
|
378
|
+
}
|
379
|
+
|
380
|
+
/* Functions to abstract and display alternative content
|
381
|
+
*/
|
382
|
+
function displayAltContent(obj) {
|
383
|
+
if (ua.ie && ua.win && obj.readyState != 4) {
|
384
|
+
// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
|
385
|
+
// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
|
386
|
+
var el = createElement("div");
|
387
|
+
obj.parentNode.insertBefore(el, obj); // insert placeholder div that will be replaced by the alternative content
|
388
|
+
el.parentNode.replaceChild(abstractAltContent(obj), el);
|
389
|
+
obj.style.display = "none";
|
390
|
+
(function() {
|
391
|
+
if (obj.readyState == 4) {
|
392
|
+
obj.parentNode.removeChild(obj);
|
393
|
+
}
|
394
|
+
else {
|
395
|
+
setTimeout(arguments.callee, 10);
|
396
|
+
}
|
397
|
+
})();
|
398
|
+
}
|
399
|
+
else {
|
400
|
+
obj.parentNode.replaceChild(abstractAltContent(obj), obj);
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
function abstractAltContent(obj) {
|
405
|
+
var ac = createElement("div");
|
406
|
+
if (ua.win && ua.ie) {
|
407
|
+
ac.innerHTML = obj.innerHTML;
|
408
|
+
}
|
409
|
+
else {
|
410
|
+
var nestedObj = obj.getElementsByTagName(OBJECT)[0];
|
411
|
+
if (nestedObj) {
|
412
|
+
var c = nestedObj.childNodes;
|
413
|
+
if (c) {
|
414
|
+
var cl = c.length;
|
415
|
+
for (var i = 0; i < cl; i++) {
|
416
|
+
if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) {
|
417
|
+
ac.appendChild(c[i].cloneNode(true));
|
418
|
+
}
|
419
|
+
}
|
420
|
+
}
|
421
|
+
}
|
422
|
+
}
|
423
|
+
return ac;
|
424
|
+
}
|
425
|
+
|
426
|
+
/* Cross-browser dynamic SWF creation
|
427
|
+
*/
|
428
|
+
function createSWF(attObj, parObj, id) {
|
429
|
+
var r, el = getElementById(id);
|
430
|
+
if (ua.wk && ua.wk < 312) {
|
431
|
+
return r;
|
432
|
+
}
|
433
|
+
if (el) {
|
434
|
+
if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
|
435
|
+
attObj.id = id;
|
436
|
+
}
|
437
|
+
if (ua.ie && ua.win) { // Internet Explorer + the HTML object element + W3C DOM methods do not combine: fall back to outerHTML
|
438
|
+
var att = "";
|
439
|
+
for (var i in attObj) {
|
440
|
+
if (attObj[i] != Object.prototype[i]) { // filter out prototype additions from other potential libraries
|
441
|
+
if (i.toLowerCase() == "data") {
|
442
|
+
parObj.movie = attObj[i];
|
443
|
+
}
|
444
|
+
else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
|
445
|
+
att += ' class="' + attObj[i] + '"';
|
446
|
+
}
|
447
|
+
else if (i.toLowerCase() != "classid") {
|
448
|
+
att += ' ' + i + '="' + attObj[i] + '"';
|
449
|
+
}
|
450
|
+
}
|
451
|
+
}
|
452
|
+
var par = "";
|
453
|
+
for (var j in parObj) {
|
454
|
+
if (parObj[j] != Object.prototype[j]) { // filter out prototype additions from other potential libraries
|
455
|
+
par += '<param name="' + j + '" value="' + parObj[j] + '" />';
|
456
|
+
}
|
457
|
+
}
|
458
|
+
el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
|
459
|
+
objIdArr[objIdArr.length] = attObj.id; // stored to fix object 'leaks' on unload (dynamic publishing only)
|
460
|
+
r = getElementById(attObj.id);
|
461
|
+
}
|
462
|
+
else { // well-behaving browsers
|
463
|
+
var o = createElement(OBJECT);
|
464
|
+
o.setAttribute("type", FLASH_MIME_TYPE);
|
465
|
+
for (var m in attObj) {
|
466
|
+
if (attObj[m] != Object.prototype[m]) { // filter out prototype additions from other potential libraries
|
467
|
+
if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
|
468
|
+
o.setAttribute("class", attObj[m]);
|
469
|
+
}
|
470
|
+
else if (m.toLowerCase() != "classid") { // filter out IE specific attribute
|
471
|
+
o.setAttribute(m, attObj[m]);
|
472
|
+
}
|
473
|
+
}
|
474
|
+
}
|
475
|
+
for (var n in parObj) {
|
476
|
+
if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { // filter out prototype additions from other potential libraries and IE specific param element
|
477
|
+
createObjParam(o, n, parObj[n]);
|
478
|
+
}
|
479
|
+
}
|
480
|
+
el.parentNode.replaceChild(o, el);
|
481
|
+
r = o;
|
482
|
+
}
|
483
|
+
}
|
484
|
+
return r;
|
485
|
+
}
|
486
|
+
|
487
|
+
function createObjParam(el, pName, pValue) {
|
488
|
+
var p = createElement("param");
|
489
|
+
p.setAttribute("name", pName);
|
490
|
+
p.setAttribute("value", pValue);
|
491
|
+
el.appendChild(p);
|
492
|
+
}
|
493
|
+
|
494
|
+
/* Cross-browser SWF removal
|
495
|
+
- Especially needed to safely and completely remove a SWF in Internet Explorer
|
496
|
+
*/
|
497
|
+
function removeSWF(id) {
|
498
|
+
var obj = getElementById(id);
|
499
|
+
if (obj && obj.nodeName == "OBJECT") {
|
500
|
+
if (ua.ie && ua.win) {
|
501
|
+
obj.style.display = "none";
|
502
|
+
(function() {
|
503
|
+
if (obj.readyState == 4) {
|
504
|
+
removeObjectInIE(id);
|
505
|
+
}
|
506
|
+
else {
|
507
|
+
setTimeout(arguments.callee, 10);
|
508
|
+
}
|
509
|
+
})();
|
510
|
+
}
|
511
|
+
else {
|
512
|
+
obj.parentNode.removeChild(obj);
|
513
|
+
}
|
514
|
+
}
|
515
|
+
}
|
516
|
+
|
517
|
+
function removeObjectInIE(id) {
|
518
|
+
var obj = getElementById(id);
|
519
|
+
if (obj) {
|
520
|
+
for (var i in obj) {
|
521
|
+
if (typeof obj[i] == "function") {
|
522
|
+
obj[i] = null;
|
523
|
+
}
|
524
|
+
}
|
525
|
+
obj.parentNode.removeChild(obj);
|
526
|
+
}
|
527
|
+
}
|
528
|
+
|
529
|
+
/* Functions to optimize JavaScript compression
|
530
|
+
*/
|
531
|
+
function getElementById(id) {
|
532
|
+
var el = null;
|
533
|
+
try {
|
534
|
+
el = doc.getElementById(id);
|
535
|
+
}
|
536
|
+
catch (e) {
|
537
|
+
}
|
538
|
+
return el;
|
539
|
+
}
|
540
|
+
|
541
|
+
function createElement(el) {
|
542
|
+
return doc.createElement(el);
|
543
|
+
}
|
544
|
+
|
545
|
+
/* Updated attachEvent function for Internet Explorer
|
546
|
+
- Stores attachEvent information in an Array, so on unload the detachEvent functions can be called to avoid memory leaks
|
547
|
+
*/
|
548
|
+
function addListener(target, eventType, fn) {
|
549
|
+
target.attachEvent(eventType, fn);
|
550
|
+
listenersArr[listenersArr.length] = [target, eventType, fn];
|
551
|
+
}
|
552
|
+
|
553
|
+
/* Flash Player and SWF content version matching
|
554
|
+
*/
|
555
|
+
function hasPlayerVersion(rv) {
|
556
|
+
var pv = ua.pv, v = rv.split(".");
|
557
|
+
v[0] = parseInt(v[0], 10);
|
558
|
+
v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
|
559
|
+
v[2] = parseInt(v[2], 10) || 0;
|
560
|
+
return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
|
561
|
+
}
|
562
|
+
|
563
|
+
/* Cross-browser dynamic CSS creation
|
564
|
+
- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
|
565
|
+
*/
|
566
|
+
function createCSS(sel, decl, media, newStyle) {
|
567
|
+
if (ua.ie && ua.mac) {
|
568
|
+
return;
|
569
|
+
}
|
570
|
+
var h = doc.getElementsByTagName("head")[0];
|
571
|
+
if (!h) {
|
572
|
+
return;
|
573
|
+
} // to also support badly authored HTML pages that lack a head element
|
574
|
+
var m = (media && typeof media == "string") ? media : "screen";
|
575
|
+
if (newStyle) {
|
576
|
+
dynamicStylesheet = null;
|
577
|
+
dynamicStylesheetMedia = null;
|
578
|
+
}
|
579
|
+
if (!dynamicStylesheet || dynamicStylesheetMedia != m) {
|
580
|
+
// create dynamic stylesheet + get a global reference to it
|
581
|
+
var s = createElement("style");
|
582
|
+
s.setAttribute("type", "text/css");
|
583
|
+
s.setAttribute("media", m);
|
584
|
+
dynamicStylesheet = h.appendChild(s);
|
585
|
+
if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
|
586
|
+
dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1];
|
587
|
+
}
|
588
|
+
dynamicStylesheetMedia = m;
|
589
|
+
}
|
590
|
+
// add style rule
|
591
|
+
if (ua.ie && ua.win) {
|
592
|
+
if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) {
|
593
|
+
dynamicStylesheet.addRule(sel, decl);
|
594
|
+
}
|
595
|
+
}
|
596
|
+
else {
|
597
|
+
if (dynamicStylesheet && typeof doc.createTextNode != UNDEF) {
|
598
|
+
dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
|
599
|
+
}
|
600
|
+
}
|
601
|
+
}
|
602
|
+
|
603
|
+
function setVisibility(id, isVisible) {
|
604
|
+
if (!autoHideShow) {
|
605
|
+
return;
|
606
|
+
}
|
607
|
+
var v = isVisible ? "visible" : "hidden";
|
608
|
+
if (isDomLoaded && getElementById(id)) {
|
609
|
+
getElementById(id).style.visibility = v;
|
610
|
+
}
|
611
|
+
else {
|
612
|
+
createCSS("#" + id, "visibility:" + v);
|
613
|
+
}
|
614
|
+
}
|
615
|
+
|
616
|
+
/* Filter to avoid XSS attacks
|
617
|
+
*/
|
618
|
+
function urlEncodeIfNecessary(s) {
|
619
|
+
var regex = /[\\\"<>\.;]/;
|
620
|
+
var hasBadChars = regex.exec(s) != null;
|
621
|
+
return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;
|
622
|
+
}
|
623
|
+
|
624
|
+
/* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only)
|
625
|
+
*/
|
626
|
+
var cleanup = function() {
|
627
|
+
if (ua.ie && ua.win) {
|
628
|
+
window.attachEvent("onunload", function() {
|
629
|
+
// remove listeners to avoid memory leaks
|
630
|
+
var ll = listenersArr.length;
|
631
|
+
for (var i = 0; i < ll; i++) {
|
632
|
+
listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]);
|
633
|
+
}
|
634
|
+
// cleanup dynamically embedded objects to fix audio/video threads and force open sockets and NetConnections to disconnect
|
635
|
+
var il = objIdArr.length;
|
636
|
+
for (var j = 0; j < il; j++) {
|
637
|
+
removeSWF(objIdArr[j]);
|
638
|
+
}
|
639
|
+
// cleanup library's main closures to avoid memory leaks
|
640
|
+
for (var k in ua) {
|
641
|
+
ua[k] = null;
|
642
|
+
}
|
643
|
+
ua = null;
|
644
|
+
for (var l in swfobject) {
|
645
|
+
swfobject[l] = null;
|
646
|
+
}
|
647
|
+
swfobject = null;
|
648
|
+
});
|
649
|
+
}
|
650
|
+
}();
|
651
|
+
|
652
|
+
return {
|
653
|
+
/* Public API
|
654
|
+
- Reference: http://code.google.com/p/swfobject/wiki/documentation
|
655
|
+
*/
|
656
|
+
registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) {
|
657
|
+
if (ua.w3 && objectIdStr && swfVersionStr) {
|
658
|
+
var regObj = {};
|
659
|
+
regObj.id = objectIdStr;
|
660
|
+
regObj.swfVersion = swfVersionStr;
|
661
|
+
regObj.expressInstall = xiSwfUrlStr;
|
662
|
+
regObj.callbackFn = callbackFn;
|
663
|
+
regObjArr[regObjArr.length] = regObj;
|
664
|
+
setVisibility(objectIdStr, false);
|
665
|
+
}
|
666
|
+
else if (callbackFn) {
|
667
|
+
callbackFn({success:false, id:objectIdStr});
|
668
|
+
}
|
669
|
+
},
|
670
|
+
|
671
|
+
getObjectById: function(objectIdStr) {
|
672
|
+
if (ua.w3) {
|
673
|
+
return getObjectById(objectIdStr);
|
674
|
+
}
|
675
|
+
},
|
676
|
+
|
677
|
+
embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn) {
|
678
|
+
var callbackObj = {success:false, id:replaceElemIdStr};
|
679
|
+
if (ua.w3 && !(ua.wk && ua.wk < 312) && swfUrlStr && replaceElemIdStr && widthStr && heightStr && swfVersionStr) {
|
680
|
+
setVisibility(replaceElemIdStr, false);
|
681
|
+
addDomLoadEvent(function() {
|
682
|
+
widthStr += ""; // auto-convert to string
|
683
|
+
heightStr += "";
|
684
|
+
var att = {};
|
685
|
+
if (attObj && typeof attObj === OBJECT) {
|
686
|
+
for (var i in attObj) { // copy object to avoid the use of references, because web authors often reuse attObj for multiple SWFs
|
687
|
+
att[i] = attObj[i];
|
688
|
+
}
|
689
|
+
}
|
690
|
+
att.data = swfUrlStr;
|
691
|
+
att.width = widthStr;
|
692
|
+
att.height = heightStr;
|
693
|
+
var par = {};
|
694
|
+
if (parObj && typeof parObj === OBJECT) {
|
695
|
+
for (var j in parObj) { // copy object to avoid the use of references, because web authors often reuse parObj for multiple SWFs
|
696
|
+
par[j] = parObj[j];
|
697
|
+
}
|
698
|
+
}
|
699
|
+
if (flashvarsObj && typeof flashvarsObj === OBJECT) {
|
700
|
+
for (var k in flashvarsObj) { // copy object to avoid the use of references, because web authors often reuse flashvarsObj for multiple SWFs
|
701
|
+
if (typeof par.flashvars != UNDEF) {
|
702
|
+
par.flashvars += "&" + k + "=" + flashvarsObj[k];
|
703
|
+
}
|
704
|
+
else {
|
705
|
+
par.flashvars = k + "=" + flashvarsObj[k];
|
706
|
+
}
|
707
|
+
}
|
708
|
+
}
|
709
|
+
if (hasPlayerVersion(swfVersionStr)) { // create SWF
|
710
|
+
var obj = createSWF(att, par, replaceElemIdStr);
|
711
|
+
if (att.id == replaceElemIdStr) {
|
712
|
+
setVisibility(replaceElemIdStr, true);
|
713
|
+
}
|
714
|
+
callbackObj.success = true;
|
715
|
+
callbackObj.ref = obj;
|
716
|
+
}
|
717
|
+
else if (xiSwfUrlStr && canExpressInstall()) { // show Adobe Express Install
|
718
|
+
att.data = xiSwfUrlStr;
|
719
|
+
showExpressInstall(att, par, replaceElemIdStr, callbackFn);
|
720
|
+
return;
|
721
|
+
}
|
722
|
+
else { // show alternative content
|
723
|
+
setVisibility(replaceElemIdStr, true);
|
724
|
+
}
|
725
|
+
if (callbackFn) {
|
726
|
+
callbackFn(callbackObj);
|
727
|
+
}
|
728
|
+
});
|
729
|
+
}
|
730
|
+
else if (callbackFn) {
|
731
|
+
callbackFn(callbackObj);
|
732
|
+
}
|
733
|
+
},
|
734
|
+
|
735
|
+
switchOffAutoHideShow: function() {
|
736
|
+
autoHideShow = false;
|
737
|
+
},
|
738
|
+
|
739
|
+
ua: ua,
|
740
|
+
|
741
|
+
getFlashPlayerVersion: function() {
|
742
|
+
return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
|
743
|
+
},
|
744
|
+
|
745
|
+
hasFlashPlayerVersion: hasPlayerVersion,
|
746
|
+
|
747
|
+
createSWF: function(attObj, parObj, replaceElemIdStr) {
|
748
|
+
if (ua.w3) {
|
749
|
+
return createSWF(attObj, parObj, replaceElemIdStr);
|
750
|
+
}
|
751
|
+
else {
|
752
|
+
return undefined;
|
753
|
+
}
|
754
|
+
},
|
755
|
+
|
756
|
+
showExpressInstall: function(att, par, replaceElemIdStr, callbackFn) {
|
757
|
+
if (ua.w3 && canExpressInstall()) {
|
758
|
+
showExpressInstall(att, par, replaceElemIdStr, callbackFn);
|
759
|
+
}
|
760
|
+
},
|
761
|
+
|
762
|
+
removeSWF: function(objElemIdStr) {
|
763
|
+
if (ua.w3) {
|
764
|
+
removeSWF(objElemIdStr);
|
765
|
+
}
|
766
|
+
},
|
767
|
+
|
768
|
+
createCSS: function(selStr, declStr, mediaStr, newStyleBoolean) {
|
769
|
+
if (ua.w3) {
|
770
|
+
createCSS(selStr, declStr, mediaStr, newStyleBoolean);
|
771
|
+
}
|
772
|
+
},
|
773
|
+
|
774
|
+
addDomLoadEvent: addDomLoadEvent,
|
775
|
+
|
776
|
+
addLoadEvent: addLoadEvent,
|
777
|
+
|
778
|
+
getQueryParamValue: function(param) {
|
779
|
+
var q = doc.location.search || doc.location.hash;
|
780
|
+
if (q) {
|
781
|
+
if (/\?/.test(q)) {
|
782
|
+
q = q.split("?")[1];
|
783
|
+
} // strip question mark
|
784
|
+
if (param == null) {
|
785
|
+
return urlEncodeIfNecessary(q);
|
786
|
+
}
|
787
|
+
var pairs = q.split("&");
|
788
|
+
for (var i = 0; i < pairs.length; i++) {
|
789
|
+
if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
|
790
|
+
return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1)));
|
791
|
+
}
|
792
|
+
}
|
793
|
+
}
|
794
|
+
return "";
|
795
|
+
},
|
796
|
+
|
797
|
+
// For internal usage only
|
798
|
+
expressInstallCallback: function() {
|
799
|
+
if (isExpressInstallActive) {
|
800
|
+
var obj = getElementById(EXPRESS_INSTALL_ID);
|
801
|
+
if (obj && storedAltContent) {
|
802
|
+
obj.parentNode.replaceChild(storedAltContent, obj);
|
803
|
+
if (storedAltContentId) {
|
804
|
+
setVisibility(storedAltContentId, true);
|
805
|
+
if (ua.ie && ua.win) {
|
806
|
+
storedAltContent.style.display = "block";
|
807
|
+
}
|
808
|
+
}
|
809
|
+
if (storedCallbackFn) {
|
810
|
+
storedCallbackFn(storedCallbackObj);
|
811
|
+
}
|
812
|
+
}
|
813
|
+
isExpressInstallActive = false;
|
814
|
+
}
|
815
|
+
}
|
816
|
+
};
|
777
817
|
}();
|