From: <var...@us...> - 2009-01-19 10:40:30
|
Revision: 6415 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6415&view=rev Author: vargenau Date: 2009-01-19 10:40:19 +0000 (Mon, 19 Jan 2009) Log Message: ----------- Add Id Modified Paths: -------------- trunk/themes/default/IEFixes.css trunk/themes/default/highlight.css Property Changed: ---------------- trunk/themes/default/IEFixes.css trunk/themes/default/highlight.css Modified: trunk/themes/default/IEFixes.css =================================================================== --- trunk/themes/default/IEFixes.css 2009-01-19 10:36:55 UTC (rev 6414) +++ trunk/themes/default/IEFixes.css 2009-01-19 10:40:19 UTC (rev 6415) @@ -1,3 +1,7 @@ +/** + * $Id$ + */ + /* ** IE Fixes (5.0, 5.5, 6.0) */ Property changes on: trunk/themes/default/IEFixes.css ___________________________________________________________________ Added: svn:keywords + Id Modified: trunk/themes/default/highlight.css =================================================================== --- trunk/themes/default/highlight.css 2009-01-19 10:36:55 UTC (rev 6414) +++ trunk/themes/default/highlight.css 2009-01-19 10:40:19 UTC (rev 6415) @@ -1,3 +1,7 @@ +/** + * $Id$ + */ + /* CSS definition file generated by highlight 2.0-22, http://www.andre-simon.de/ */ /* Highlighting theme definition: */ @@ -24,4 +28,4 @@ .com { color:#838183; font-style:italic; } .dir { color:#008200; } .sym { color:#000000; } - .line { color:#555555; } \ No newline at end of file + .line { color:#555555; } Property changes on: trunk/themes/default/highlight.css ___________________________________________________________________ Added: svn:keywords + Id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-01-31 14:33:56
|
Revision: 6472 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6472&view=rev Author: vargenau Date: 2009-01-31 14:33:53 +0000 (Sat, 31 Jan 2009) Log Message: ----------- Netscape 4 is dead Modified Paths: -------------- trunk/themes/default/phpwiki.css Removed Paths: ------------- trunk/themes/default/phpwiki-heavy.css Deleted: trunk/themes/default/phpwiki-heavy.css =================================================================== --- trunk/themes/default/phpwiki-heavy.css 2009-01-31 14:24:54 UTC (rev 6471) +++ trunk/themes/default/phpwiki-heavy.css 2009-01-31 14:33:53 UTC (rev 6472) @@ -1,157 +0,0 @@ -/** - * $Id$ - * - * This is stuff which should be in phpwiki.css, but which breaks Netscape 4. - * - * The use of these css functions are generally bad for NS4: - * <ol> - * <li> NS4 adds the equivalent of a <br> on inline elements with - * margins, padding and borders. - * <li> Background colors are not applied properly to inline elements with - * padding. The resulting effect is visually like an "internal margin" - * rather than a padding. - * <li> Specifying a color or background as "inherit" produces unpredictable - * results, often yielding a lime green color. - * <li> Image alignment and text-alignment in css gives seemingly random and - * unpredictable positioning of the element on the page. - * </ol> - */ - -/* Hide the elements we put in just to get around NS4 bugs. */ -div.br { display: none; } - -/* This makes spacings in NS4 too big. */ -.toolbar, div.toolbar { margin: 0.5ex 0ex; } - -/* This breaks NS4, but is necessary for IE4. */ -div.wikitext { width: auto; } - - -/** - * General - */ -/* for NS4 */ -img { vertical-align: baseline; } -input { margin: 0.1em; } -input.numeric { text-align: right; } - - -/** - * Wiki Forms - * - * The div inside the wikiadmin upload form does not - * have a class yet, so it must be referenced indirectly - */ -/* div.wikiaction, div.wikiadmin { */ -div.wikiaction, form.wikiadmin div { - border-bottom: 1px solid #d8d8e7; - border-right: 1px solid #d8d8e7; - border-top: 1px solid #96a2ae; - border-left: 1px solid #96a2ae; - - margin-top: 0.5ex; - margin-bottom: 0.5ex; - padding: 0.5ex 0.5em; - /* Emulate the display behaviour of a table, to shrink it's width. - * ie5.1Mac ignores this */ - display: table; -} - -/* Add space between the input field and following buttons, but not after the last button. */ -div.wikiaction input[type=text], div.wikiadmin input[type=text], form.wikiadmin input[type=file] { margin-right: 0.5em; } - - -/** - * Links - border-top: 1px solid #b2b2d1; - border-left: 1px solid #d2d2f1; - border-bottom: 1px solid #86929e; - border-right: 1px solid #86929e; - */ - -/* Make wikiaction links look like buttons */ -a.wikiaction, a.wikiadmin, a.wikiunsafe, -input.wikiaction, input.wikiadmin, input.wikiunsafe, input.button { - color: black; -/* - border-top: 1px solid #c6d2de; - border-left: 1px solid #c6d2de; - border-bottom: 1px solid #494f5d; - border-right: 1px solid #494f5d; - - padding-top: 0.15ex; - padding-bottom: 0.25ex; - padding-left: .5em; - padding-right: .5em; -*/ - border: 1px outset; - padding: 0.05ex 0.25em 0.1ex 0.25em; - height: auto; - width: auto; -/* These gecko-specific give CSS parse error: */ - -moz-appearance: none; - -moz-box-sizing: content-box; - -moz-border-radius: 1ex; - /* Prevent buttons from overlapping when the toolbar is wrapped. */ - line-height: 2.6ex; - /*margin: 2ex 0.2em;*/ -} - -div#navbuttons, div#signin, div#actionbuttons { line-height: 3.0ex; } - -/* QuestionMark */ -.wikiunknown a, .named-wikiunknown a { - border-top: 1px solid #c6d2de; - border-left: 1px solid #c6d2de; - border-bottom: 1px solid #a2a2a2; - border-right: 1px solid #a2a2a2; - padding-left: 1px; - padding-right: 1px; - padding-top: 1px; - margin-right: .15em; -} - -/* Link icons */ -img.linkicon { vertical-align: middle; } - - -/** - * Edit Page & View Source - */ -/* color: inherit; and background: inherit; display as lime in NS4 */ - -/* http://www.aboutus.org/UniversalWikiEditButton */ -div#actionbuttons a#btn-edit { - background: url('images/Edit-chalk-10g.png') bottom left no-repeat; - background-repeat: no-repeat; - padding-left: 20px !important; - padding-right: 0.5em !important; -} -/* image buttons */ -a.wikibutton, a.wikibutton:visited, input.wikibutton { - background-color: white; - border: 0; - -moz-appearance: none; - -moz-box-sizing: content-box; - -moz-border-radius: 0; -} - -/** - * Diff Output - */ -.diff .prefix { - position: relative; - left: -1em; -} -/* deleted & added words */ -.diff del, .diff ins { - padding-left: 1px; - padding-right: 1px; -} - -/** - * Other - */ -/* PHP Warnings */ -div.errors { font-size: smaller } - Modified: trunk/themes/default/phpwiki.css =================================================================== --- trunk/themes/default/phpwiki.css 2009-01-31 14:24:54 UTC (rev 6471) +++ trunk/themes/default/phpwiki.css 2009-01-31 14:33:53 UTC (rev 6472) @@ -10,13 +10,6 @@ */ /** - * NS4 doesn't grok @import. This allows us to put things which - * break NS4 in another file. - */ -@import url(phpwiki-heavy.css); - - -/** * General */ img { border: 0ex; } @@ -956,7 +949,143 @@ vertical-align: top; } +/* Hide the elements we put in just to get around NS4 bugs. */ +div.br { display: none; } + +/* This makes spacings in NS4 too big. */ +.toolbar, div.toolbar { margin: 0.5ex 0ex; } + +/* This breaks NS4, but is necessary for IE4. */ +div.wikitext { width: auto; } + +/** + * General + */ +/* for NS4 */ +img { vertical-align: baseline; } +input { margin: 0.1em; } +input.numeric { text-align: right; } + +/** + * Wiki Forms + * + * The div inside the wikiadmin upload form does not + * have a class yet, so it must be referenced indirectly + */ +/* div.wikiaction, div.wikiadmin { */ +div.wikiaction, form.wikiadmin div { + border-bottom: 1px solid #d8d8e7; + border-right: 1px solid #d8d8e7; + border-top: 1px solid #96a2ae; + border-left: 1px solid #96a2ae; + + margin-top: 0.5ex; + margin-bottom: 0.5ex; + padding: 0.5ex 0.5em; + /* Emulate the display behaviour of a table, to shrink it's width. + * ie5.1Mac ignores this */ + display: table; +} + +/* Add space between the input field and following buttons, but not after the last button. */ +div.wikiaction input[type=text], div.wikiadmin input[type=text], form.wikiadmin input[type=file] { margin-right: 0.5em; } + + +/** + * Links + border-top: 1px solid #b2b2d1; + border-left: 1px solid #d2d2f1; + border-bottom: 1px solid #86929e; + border-right: 1px solid #86929e; + */ + +/* Make wikiaction links look like buttons */ +a.wikiaction, a.wikiadmin, a.wikiunsafe, +input.wikiaction, input.wikiadmin, input.wikiunsafe, input.button { + color: black; /* + border-top: 1px solid #c6d2de; + border-left: 1px solid #c6d2de; + border-bottom: 1px solid #494f5d; + border-right: 1px solid #494f5d; + + padding-top: 0.15ex; + padding-bottom: 0.25ex; + padding-left: .5em; + padding-right: .5em; +*/ + border: 1px outset; + padding: 0.05ex 0.25em 0.1ex 0.25em; + height: auto; + width: auto; +/* These gecko-specific give CSS parse error: */ + -moz-appearance: none; + -moz-box-sizing: content-box; + -moz-border-radius: 1ex; + /* Prevent buttons from overlapping when the toolbar is wrapped. */ + line-height: 2.6ex; + /*margin: 2ex 0.2em;*/ +} + +div#navbuttons, div#signin, div#actionbuttons { line-height: 3.0ex; } + +/* QuestionMark */ +.wikiunknown a, .named-wikiunknown a { + border-top: 1px solid #c6d2de; + border-left: 1px solid #c6d2de; + border-bottom: 1px solid #a2a2a2; + border-right: 1px solid #a2a2a2; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + margin-right: .15em; +} + +/* Link icons */ +img.linkicon { vertical-align: middle; } + + +/** + * Edit Page & View Source + */ +/* color: inherit; and background: inherit; display as lime in NS4 */ + +/* http://www.aboutus.org/UniversalWikiEditButton */ +div#actionbuttons a#btn-edit { + background: url('images/Edit-chalk-10g.png') bottom left no-repeat; + background-repeat: no-repeat; + padding-left: 20px !important; + padding-right: 0.5em !important; +} +/* image buttons */ +a.wikibutton, a.wikibutton:visited, input.wikibutton { + background-color: white; + border: 0; + -moz-appearance: none; + -moz-box-sizing: content-box; + -moz-border-radius: 0; +} + +/** + * Diff Output + */ +.diff .prefix { + position: relative; + left: -1em; +} +/* deleted & added words */ +.diff del, .diff ins { + padding-left: 1px; + padding-right: 1px; +} + +/** + * Other + */ +/* PHP Warnings */ +div.errors { font-size: smaller } + +/* * table class="boxed" * will put a border around the table (but not around the cells) * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-01-31 14:45:03
|
Revision: 6474 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6474&view=rev Author: vargenau Date: 2009-01-31 14:44:58 +0000 (Sat, 31 Jan 2009) Log Message: ----------- Netscape 4 is dead Modified Paths: -------------- trunk/themes/default/phpwiki-modern.css Removed Paths: ------------- trunk/themes/default/phpwiki-modern-heavy.css Deleted: trunk/themes/default/phpwiki-modern-heavy.css =================================================================== --- trunk/themes/default/phpwiki-modern-heavy.css 2009-01-31 14:36:38 UTC (rev 6473) +++ trunk/themes/default/phpwiki-modern-heavy.css 2009-01-31 14:44:58 UTC (rev 6474) @@ -1,26 +0,0 @@ -/* - * $Id$ - * - * phpwiki-modern-heavy.css - * - * This is stuff which should be in phpwiki-modern.css, but which breaks NS4. - */ - -/* Hide the elements we put in just to get around NS4 bugs. */ -div.br { display: none; } - -/* This break NS4, but is necessary for IE4. */ -div.wikitext { width: auto; } - -/* Link icons */ -img.linkicon { vertical-align: middle; } -img.rssicon { vertical-align: baseline; } - -/**************************************************************** - ** - ** Diff Output - ** - *****************************************************************/ -.diff .block div { position: relative; padding-left: 1.5em; } -.diff .prefix { position: absolute; left: 0.5em; top: 0; } - Modified: trunk/themes/default/phpwiki-modern.css =================================================================== --- trunk/themes/default/phpwiki-modern.css 2009-01-31 14:36:38 UTC (rev 6473) +++ trunk/themes/default/phpwiki-modern.css 2009-01-31 14:44:58 UTC (rev 6474) @@ -7,7 +7,7 @@ * http://www.apache.org/ * * This incarnation of this stylesheet is a complete rewrite from the - * ground up. It has not yet been tested against NS4. + * ground up. * * Mozilla's "DOM Inspector" Sidebar was an invaluable troubleshooting * tool for mapping the more complex CSS node selectors, such as those @@ -449,7 +449,25 @@ padding: 0.5ex 0.5em; } +/* Hide the elements we put in just to get around NS4 bugs. */ +div.br { display: none; } +/* This break NS4, but is necessary for IE4. */ +div.wikitext { width: auto; } + +/* Link icons */ +img.linkicon { vertical-align: middle; } +img.rssicon { vertical-align: baseline; } + +/**************************************************************** + ** + ** Diff Output + ** + *****************************************************************/ +.diff .block div { position: relative; padding-left: 1.5em; } +.diff .prefix { position: absolute; left: 0.5em; top: 0; } + + /* For emacs users * * Local Variables: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-01-31 19:35:29
|
Revision: 6475 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6475&view=rev Author: vargenau Date: 2009-01-31 19:35:23 +0000 (Sat, 31 Jan 2009) Log Message: ----------- TinyMCE - 3.2.1.1 Added Paths: ----------- trunk/themes/default/tiny_mce/ trunk/themes/default/tiny_mce/langs/ trunk/themes/default/tiny_mce/langs/en.js trunk/themes/default/tiny_mce/license.txt trunk/themes/default/tiny_mce/plugins/ trunk/themes/default/tiny_mce/plugins/advhr/ trunk/themes/default/tiny_mce/plugins/advhr/css/ trunk/themes/default/tiny_mce/plugins/advhr/css/advhr.css trunk/themes/default/tiny_mce/plugins/advhr/editor_plugin.js trunk/themes/default/tiny_mce/plugins/advhr/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/advhr/js/ trunk/themes/default/tiny_mce/plugins/advhr/js/rule.js trunk/themes/default/tiny_mce/plugins/advhr/langs/ trunk/themes/default/tiny_mce/plugins/advhr/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/advhr/rule.htm trunk/themes/default/tiny_mce/plugins/advimage/ trunk/themes/default/tiny_mce/plugins/advimage/css/ trunk/themes/default/tiny_mce/plugins/advimage/css/advimage.css trunk/themes/default/tiny_mce/plugins/advimage/editor_plugin.js trunk/themes/default/tiny_mce/plugins/advimage/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/advimage/image.htm trunk/themes/default/tiny_mce/plugins/advimage/img/ trunk/themes/default/tiny_mce/plugins/advimage/img/sample.gif trunk/themes/default/tiny_mce/plugins/advimage/js/ trunk/themes/default/tiny_mce/plugins/advimage/js/image.js trunk/themes/default/tiny_mce/plugins/advimage/langs/ trunk/themes/default/tiny_mce/plugins/advimage/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/advlink/ trunk/themes/default/tiny_mce/plugins/advlink/css/ trunk/themes/default/tiny_mce/plugins/advlink/css/advlink.css trunk/themes/default/tiny_mce/plugins/advlink/editor_plugin.js trunk/themes/default/tiny_mce/plugins/advlink/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/advlink/js/ trunk/themes/default/tiny_mce/plugins/advlink/js/advlink.js trunk/themes/default/tiny_mce/plugins/advlink/langs/ trunk/themes/default/tiny_mce/plugins/advlink/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/advlink/link.htm trunk/themes/default/tiny_mce/plugins/autosave/ trunk/themes/default/tiny_mce/plugins/autosave/editor_plugin.js trunk/themes/default/tiny_mce/plugins/autosave/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/bbcode/ trunk/themes/default/tiny_mce/plugins/bbcode/editor_plugin.js trunk/themes/default/tiny_mce/plugins/bbcode/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/compat2x/ trunk/themes/default/tiny_mce/plugins/compat2x/editor_plugin.js trunk/themes/default/tiny_mce/plugins/compat2x/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/contextmenu/ trunk/themes/default/tiny_mce/plugins/contextmenu/editor_plugin.js trunk/themes/default/tiny_mce/plugins/contextmenu/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/directionality/ trunk/themes/default/tiny_mce/plugins/directionality/editor_plugin.js trunk/themes/default/tiny_mce/plugins/directionality/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/emotions/ trunk/themes/default/tiny_mce/plugins/emotions/editor_plugin.js trunk/themes/default/tiny_mce/plugins/emotions/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/emotions/emotions.htm trunk/themes/default/tiny_mce/plugins/emotions/img/ trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-cool.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-cry.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-embarassed.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-frown.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-innocent.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-kiss.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-laughing.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-sealed.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-smile.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-surprised.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-undecided.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-wink.gif trunk/themes/default/tiny_mce/plugins/emotions/img/smiley-yell.gif trunk/themes/default/tiny_mce/plugins/emotions/js/ trunk/themes/default/tiny_mce/plugins/emotions/js/emotions.js trunk/themes/default/tiny_mce/plugins/emotions/langs/ trunk/themes/default/tiny_mce/plugins/emotions/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/example/ trunk/themes/default/tiny_mce/plugins/example/dialog.htm trunk/themes/default/tiny_mce/plugins/example/editor_plugin.js trunk/themes/default/tiny_mce/plugins/example/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/example/img/ trunk/themes/default/tiny_mce/plugins/example/img/example.gif trunk/themes/default/tiny_mce/plugins/example/js/ trunk/themes/default/tiny_mce/plugins/example/js/dialog.js trunk/themes/default/tiny_mce/plugins/example/langs/ trunk/themes/default/tiny_mce/plugins/example/langs/en.js trunk/themes/default/tiny_mce/plugins/example/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/fullpage/ trunk/themes/default/tiny_mce/plugins/fullpage/css/ trunk/themes/default/tiny_mce/plugins/fullpage/css/fullpage.css trunk/themes/default/tiny_mce/plugins/fullpage/editor_plugin.js trunk/themes/default/tiny_mce/plugins/fullpage/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/fullpage/fullpage.htm trunk/themes/default/tiny_mce/plugins/fullpage/js/ trunk/themes/default/tiny_mce/plugins/fullpage/js/fullpage.js trunk/themes/default/tiny_mce/plugins/fullpage/langs/ trunk/themes/default/tiny_mce/plugins/fullpage/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/fullscreen/ trunk/themes/default/tiny_mce/plugins/fullscreen/editor_plugin.js trunk/themes/default/tiny_mce/plugins/fullscreen/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/fullscreen/fullscreen.htm trunk/themes/default/tiny_mce/plugins/iespell/ trunk/themes/default/tiny_mce/plugins/iespell/editor_plugin.js trunk/themes/default/tiny_mce/plugins/iespell/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/inlinepopups/ trunk/themes/default/tiny_mce/plugins/inlinepopups/editor_plugin.js trunk/themes/default/tiny_mce/plugins/inlinepopups/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/ trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/ trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/ trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif trunk/themes/default/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css trunk/themes/default/tiny_mce/plugins/inlinepopups/template.htm trunk/themes/default/tiny_mce/plugins/insertdatetime/ trunk/themes/default/tiny_mce/plugins/insertdatetime/editor_plugin.js trunk/themes/default/tiny_mce/plugins/insertdatetime/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/layer/ trunk/themes/default/tiny_mce/plugins/layer/editor_plugin.js trunk/themes/default/tiny_mce/plugins/layer/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/media/ trunk/themes/default/tiny_mce/plugins/media/css/ trunk/themes/default/tiny_mce/plugins/media/css/content.css trunk/themes/default/tiny_mce/plugins/media/css/media.css trunk/themes/default/tiny_mce/plugins/media/editor_plugin.js trunk/themes/default/tiny_mce/plugins/media/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/media/img/ trunk/themes/default/tiny_mce/plugins/media/img/flash.gif trunk/themes/default/tiny_mce/plugins/media/img/flv_player.swf trunk/themes/default/tiny_mce/plugins/media/img/quicktime.gif trunk/themes/default/tiny_mce/plugins/media/img/realmedia.gif trunk/themes/default/tiny_mce/plugins/media/img/shockwave.gif trunk/themes/default/tiny_mce/plugins/media/img/trans.gif trunk/themes/default/tiny_mce/plugins/media/img/windowsmedia.gif trunk/themes/default/tiny_mce/plugins/media/js/ trunk/themes/default/tiny_mce/plugins/media/js/embed.js trunk/themes/default/tiny_mce/plugins/media/js/media.js trunk/themes/default/tiny_mce/plugins/media/langs/ trunk/themes/default/tiny_mce/plugins/media/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/media/media.htm trunk/themes/default/tiny_mce/plugins/nonbreaking/ trunk/themes/default/tiny_mce/plugins/nonbreaking/editor_plugin.js trunk/themes/default/tiny_mce/plugins/nonbreaking/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/noneditable/ trunk/themes/default/tiny_mce/plugins/noneditable/editor_plugin.js trunk/themes/default/tiny_mce/plugins/noneditable/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/pagebreak/ trunk/themes/default/tiny_mce/plugins/pagebreak/css/ trunk/themes/default/tiny_mce/plugins/pagebreak/css/content.css trunk/themes/default/tiny_mce/plugins/pagebreak/editor_plugin.js trunk/themes/default/tiny_mce/plugins/pagebreak/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/pagebreak/img/ trunk/themes/default/tiny_mce/plugins/pagebreak/img/pagebreak.gif trunk/themes/default/tiny_mce/plugins/pagebreak/img/trans.gif trunk/themes/default/tiny_mce/plugins/paste/ trunk/themes/default/tiny_mce/plugins/paste/blank.htm trunk/themes/default/tiny_mce/plugins/paste/css/ trunk/themes/default/tiny_mce/plugins/paste/css/blank.css trunk/themes/default/tiny_mce/plugins/paste/css/pasteword.css trunk/themes/default/tiny_mce/plugins/paste/editor_plugin.js trunk/themes/default/tiny_mce/plugins/paste/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/paste/js/ trunk/themes/default/tiny_mce/plugins/paste/js/pastetext.js trunk/themes/default/tiny_mce/plugins/paste/js/pasteword.js trunk/themes/default/tiny_mce/plugins/paste/langs/ trunk/themes/default/tiny_mce/plugins/paste/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/paste/pastetext.htm trunk/themes/default/tiny_mce/plugins/paste/pasteword.htm trunk/themes/default/tiny_mce/plugins/preview/ trunk/themes/default/tiny_mce/plugins/preview/editor_plugin.js trunk/themes/default/tiny_mce/plugins/preview/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/preview/example.html trunk/themes/default/tiny_mce/plugins/preview/jscripts/ trunk/themes/default/tiny_mce/plugins/preview/jscripts/embed.js trunk/themes/default/tiny_mce/plugins/preview/preview.html trunk/themes/default/tiny_mce/plugins/print/ trunk/themes/default/tiny_mce/plugins/print/editor_plugin.js trunk/themes/default/tiny_mce/plugins/print/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/safari/ trunk/themes/default/tiny_mce/plugins/safari/blank.htm trunk/themes/default/tiny_mce/plugins/safari/editor_plugin.js trunk/themes/default/tiny_mce/plugins/safari/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/save/ trunk/themes/default/tiny_mce/plugins/save/editor_plugin.js trunk/themes/default/tiny_mce/plugins/save/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/searchreplace/ trunk/themes/default/tiny_mce/plugins/searchreplace/css/ trunk/themes/default/tiny_mce/plugins/searchreplace/css/searchreplace.css trunk/themes/default/tiny_mce/plugins/searchreplace/editor_plugin.js trunk/themes/default/tiny_mce/plugins/searchreplace/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/searchreplace/js/ trunk/themes/default/tiny_mce/plugins/searchreplace/js/searchreplace.js trunk/themes/default/tiny_mce/plugins/searchreplace/langs/ trunk/themes/default/tiny_mce/plugins/searchreplace/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/searchreplace/searchreplace.htm trunk/themes/default/tiny_mce/plugins/spellchecker/ trunk/themes/default/tiny_mce/plugins/spellchecker/css/ trunk/themes/default/tiny_mce/plugins/spellchecker/css/content.css trunk/themes/default/tiny_mce/plugins/spellchecker/editor_plugin.js trunk/themes/default/tiny_mce/plugins/spellchecker/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/spellchecker/img/ trunk/themes/default/tiny_mce/plugins/spellchecker/img/wline.gif trunk/themes/default/tiny_mce/plugins/style/ trunk/themes/default/tiny_mce/plugins/style/css/ trunk/themes/default/tiny_mce/plugins/style/css/props.css trunk/themes/default/tiny_mce/plugins/style/editor_plugin.js trunk/themes/default/tiny_mce/plugins/style/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/style/js/ trunk/themes/default/tiny_mce/plugins/style/js/props.js trunk/themes/default/tiny_mce/plugins/style/langs/ trunk/themes/default/tiny_mce/plugins/style/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/style/props.htm trunk/themes/default/tiny_mce/plugins/table/ trunk/themes/default/tiny_mce/plugins/table/cell.htm trunk/themes/default/tiny_mce/plugins/table/css/ trunk/themes/default/tiny_mce/plugins/table/css/cell.css trunk/themes/default/tiny_mce/plugins/table/css/row.css trunk/themes/default/tiny_mce/plugins/table/css/table.css trunk/themes/default/tiny_mce/plugins/table/editor_plugin.js trunk/themes/default/tiny_mce/plugins/table/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/table/js/ trunk/themes/default/tiny_mce/plugins/table/js/cell.js trunk/themes/default/tiny_mce/plugins/table/js/merge_cells.js trunk/themes/default/tiny_mce/plugins/table/js/row.js trunk/themes/default/tiny_mce/plugins/table/js/table.js trunk/themes/default/tiny_mce/plugins/table/langs/ trunk/themes/default/tiny_mce/plugins/table/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/table/merge_cells.htm trunk/themes/default/tiny_mce/plugins/table/row.htm trunk/themes/default/tiny_mce/plugins/table/table.htm trunk/themes/default/tiny_mce/plugins/template/ trunk/themes/default/tiny_mce/plugins/template/blank.htm trunk/themes/default/tiny_mce/plugins/template/css/ trunk/themes/default/tiny_mce/plugins/template/css/template.css trunk/themes/default/tiny_mce/plugins/template/editor_plugin.js trunk/themes/default/tiny_mce/plugins/template/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/template/js/ trunk/themes/default/tiny_mce/plugins/template/js/template.js trunk/themes/default/tiny_mce/plugins/template/langs/ trunk/themes/default/tiny_mce/plugins/template/langs/en_dlg.js trunk/themes/default/tiny_mce/plugins/template/template.htm trunk/themes/default/tiny_mce/plugins/visualchars/ trunk/themes/default/tiny_mce/plugins/visualchars/editor_plugin.js trunk/themes/default/tiny_mce/plugins/visualchars/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/ trunk/themes/default/tiny_mce/plugins/xhtmlxtras/abbr.htm trunk/themes/default/tiny_mce/plugins/xhtmlxtras/acronym.htm trunk/themes/default/tiny_mce/plugins/xhtmlxtras/attributes.htm trunk/themes/default/tiny_mce/plugins/xhtmlxtras/cite.htm trunk/themes/default/tiny_mce/plugins/xhtmlxtras/css/ trunk/themes/default/tiny_mce/plugins/xhtmlxtras/css/attributes.css trunk/themes/default/tiny_mce/plugins/xhtmlxtras/css/popup.css trunk/themes/default/tiny_mce/plugins/xhtmlxtras/del.htm trunk/themes/default/tiny_mce/plugins/xhtmlxtras/editor_plugin.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/ins.htm trunk/themes/default/tiny_mce/plugins/xhtmlxtras/js/ trunk/themes/default/tiny_mce/plugins/xhtmlxtras/js/abbr.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/js/acronym.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/js/attributes.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/js/cite.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/js/del.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/js/element_common.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/js/ins.js trunk/themes/default/tiny_mce/plugins/xhtmlxtras/langs/ trunk/themes/default/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js trunk/themes/default/tiny_mce/themes/ trunk/themes/default/tiny_mce/themes/advanced/ trunk/themes/default/tiny_mce/themes/advanced/about.htm trunk/themes/default/tiny_mce/themes/advanced/anchor.htm trunk/themes/default/tiny_mce/themes/advanced/charmap.htm trunk/themes/default/tiny_mce/themes/advanced/color_picker.htm trunk/themes/default/tiny_mce/themes/advanced/editor_template.js trunk/themes/default/tiny_mce/themes/advanced/editor_template_src.js trunk/themes/default/tiny_mce/themes/advanced/image.htm trunk/themes/default/tiny_mce/themes/advanced/img/ trunk/themes/default/tiny_mce/themes/advanced/img/colorpicker.jpg trunk/themes/default/tiny_mce/themes/advanced/img/icons.gif trunk/themes/default/tiny_mce/themes/advanced/js/ trunk/themes/default/tiny_mce/themes/advanced/js/about.js trunk/themes/default/tiny_mce/themes/advanced/js/anchor.js trunk/themes/default/tiny_mce/themes/advanced/js/charmap.js trunk/themes/default/tiny_mce/themes/advanced/js/color_picker.js trunk/themes/default/tiny_mce/themes/advanced/js/image.js trunk/themes/default/tiny_mce/themes/advanced/js/link.js trunk/themes/default/tiny_mce/themes/advanced/js/source_editor.js trunk/themes/default/tiny_mce/themes/advanced/langs/ trunk/themes/default/tiny_mce/themes/advanced/langs/en.js trunk/themes/default/tiny_mce/themes/advanced/langs/en_dlg.js trunk/themes/default/tiny_mce/themes/advanced/link.htm trunk/themes/default/tiny_mce/themes/advanced/skins/ trunk/themes/default/tiny_mce/themes/advanced/skins/default/ trunk/themes/default/tiny_mce/themes/advanced/skins/default/content.css trunk/themes/default/tiny_mce/themes/advanced/skins/default/dialog.css trunk/themes/default/tiny_mce/themes/advanced/skins/default/img/ trunk/themes/default/tiny_mce/themes/advanced/skins/default/img/buttons.png trunk/themes/default/tiny_mce/themes/advanced/skins/default/img/items.gif trunk/themes/default/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif trunk/themes/default/tiny_mce/themes/advanced/skins/default/img/menu_check.gif trunk/themes/default/tiny_mce/themes/advanced/skins/default/img/progress.gif trunk/themes/default/tiny_mce/themes/advanced/skins/default/img/tabs.gif trunk/themes/default/tiny_mce/themes/advanced/skins/default/ui.css trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/ trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/content.css trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/dialog.css trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/img/ trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/ui.css trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/ui_black.css trunk/themes/default/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css trunk/themes/default/tiny_mce/themes/advanced/source_editor.htm trunk/themes/default/tiny_mce/themes/simple/ trunk/themes/default/tiny_mce/themes/simple/editor_template.js trunk/themes/default/tiny_mce/themes/simple/editor_template_src.js trunk/themes/default/tiny_mce/themes/simple/img/ trunk/themes/default/tiny_mce/themes/simple/img/icons.gif trunk/themes/default/tiny_mce/themes/simple/langs/ trunk/themes/default/tiny_mce/themes/simple/langs/en.js trunk/themes/default/tiny_mce/themes/simple/skins/ trunk/themes/default/tiny_mce/themes/simple/skins/default/ trunk/themes/default/tiny_mce/themes/simple/skins/default/content.css trunk/themes/default/tiny_mce/themes/simple/skins/default/ui.css trunk/themes/default/tiny_mce/themes/simple/skins/o2k7/ trunk/themes/default/tiny_mce/themes/simple/skins/o2k7/content.css trunk/themes/default/tiny_mce/themes/simple/skins/o2k7/img/ trunk/themes/default/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png trunk/themes/default/tiny_mce/themes/simple/skins/o2k7/ui.css trunk/themes/default/tiny_mce/tiny_mce.js trunk/themes/default/tiny_mce/tiny_mce_popup.js trunk/themes/default/tiny_mce/tiny_mce_src.js trunk/themes/default/tiny_mce/utils/ trunk/themes/default/tiny_mce/utils/editable_selects.js trunk/themes/default/tiny_mce/utils/form_utils.js trunk/themes/default/tiny_mce/utils/mctabs.js trunk/themes/default/tiny_mce/utils/validate.js Added: trunk/themes/default/tiny_mce/langs/en.js =================================================================== --- trunk/themes/default/tiny_mce/langs/en.js (rev 0) +++ trunk/themes/default/tiny_mce/langs/en.js 2009-01-31 19:35:23 UTC (rev 6475) @@ -0,0 +1,154 @@ +tinyMCE.addI18n({en:{ +common:{ +edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", +apply:"Apply", +insert:"Insert", +update:"Update", +cancel:"Cancel", +close:"Close", +browse:"Browse", +class_name:"Class", +not_set:"-- Not set --", +clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?", +clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.", +popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.", +invalid_data:"Error: Invalid values entered, these are marked in red.", +more_colors:"More colors" +}, +contextmenu:{ +align:"Alignment", +left:"Left", +center:"Center", +right:"Right", +full:"Full" +}, +insertdatetime:{ +date_fmt:"%Y-%m-%d", +time_fmt:"%H:%M:%S", +insertdate_desc:"Insert date", +inserttime_desc:"Insert time", +months_long:"January,February,March,April,May,June,July,August,September,October,November,December", +months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", +day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday", +day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun" +}, +print:{ +print_desc:"Print" +}, +preview:{ +preview_desc:"Preview" +}, +directionality:{ +ltr_desc:"Direction left to right", +rtl_desc:"Direction right to left" +}, +layer:{ +insertlayer_desc:"Insert new layer", +forward_desc:"Move forward", +backward_desc:"Move backward", +absolute_desc:"Toggle absolute positioning", +content:"New layer..." +}, +save:{ +save_desc:"Save", +cancel_desc:"Cancel all changes" +}, +nonbreaking:{ +nonbreaking_desc:"Insert non-breaking space character" +}, +iespell:{ +iespell_desc:"Run spell checking", +download:"ieSpell not detected. Do you want to install it now?" +}, +advhr:{ +advhr_desc:"Horizontal rule" +}, +emotions:{ +emotions_desc:"Emotions" +}, +searchreplace:{ +search_desc:"Find", +replace_desc:"Find/Replace" +}, +advimage:{ +image_desc:"Insert/edit image" +}, +advlink:{ +link_desc:"Insert/edit link" +}, +xhtmlxtras:{ +cite_desc:"Citation", +abbr_desc:"Abbreviation", +acronym_desc:"Acronym", +del_desc:"Deletion", +ins_desc:"Insertion", +attribs_desc:"Insert/Edit Attributes" +}, +style:{ +desc:"Edit CSS Style" +}, +paste:{ +paste_text_desc:"Paste as Plain Text", +paste_word_desc:"Paste from Word", +selectall_desc:"Select All" +}, +paste_dlg:{ +text_title:"Use CTRL+V on your keyboard to paste the text into the window.", +text_linebreaks:"Keep linebreaks", +word_title:"Use CTRL+V on your keyboard to paste the text into the window." +}, +table:{ +desc:"Inserts a new table", +row_before_desc:"Insert row before", +row_after_desc:"Insert row after", +delete_row_desc:"Delete row", +col_before_desc:"Insert column before", +col_after_desc:"Insert column after", +delete_col_desc:"Remove column", +split_cells_desc:"Split merged table cells", +merge_cells_desc:"Merge table cells", +row_desc:"Table row properties", +cell_desc:"Table cell properties", +props_desc:"Table properties", +paste_row_before_desc:"Paste table row before", +paste_row_after_desc:"Paste table row after", +cut_row_desc:"Cut table row", +copy_row_desc:"Copy table row", +del:"Delete table", +row:"Row", +col:"Column", +cell:"Cell" +}, +autosave:{ +unload_msg:"The changes you made will be lost if you navigate away from this page." +}, +fullscreen:{ +desc:"Toggle fullscreen mode" +}, +media:{ +desc:"Insert / edit embedded media", +edit:"Edit embedded media" +}, +fullpage:{ +desc:"Document properties" +}, +template:{ +desc:"Insert predefined template content" +}, +visualchars:{ +desc:"Visual control characters on/off." +}, +spellchecker:{ +desc:"Toggle spellchecker", +menu:"Spellchecker settings", +ignore_word:"Ignore word", +ignore_words:"Ignore all", +langs:"Languages", +wait:"Please wait...", +sug:"Suggestions", +no_sug:"No suggestions", +no_mpell:"No misspellings found." +}, +pagebreak:{ +desc:"Insert page break." +}}}); \ No newline at end of file Added: trunk/themes/default/tiny_mce/license.txt =================================================================== --- trunk/themes/default/tiny_mce/license.txt (rev 0) +++ trunk/themes/default/tiny_mce/license.txt 2009-01-31 19:35:23 UTC (rev 6475) @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + <one line to give the library's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + <signature of Ty Coon>, 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + Added: trunk/themes/default/tiny_mce/plugins/advhr/css/advhr.css =================================================================== --- trunk/themes/default/tiny_mce/plugins/advhr/css/advhr.css (rev 0) +++ trunk/themes/default/tiny_mce/plugins/advhr/css/advhr.css 2009-01-31 19:35:23 UTC (rev 6475) @@ -0,0 +1,5 @@ +input.radio {border:1px none #000; background:transparent; vertical-align:middle;} +.panel_wrapper div.current {height:80px;} +#width {width:50px; vertical-align:middle;} +#width2 {width:50px; vertical-align:middle;} +#size {width:100px;} Added: trunk/themes/default/tiny_mce/plugins/advhr/editor_plugin.js =================================================================== --- trunk/themes/default/tiny_mce/plugins/advhr/editor_plugin.js (rev 0) +++ trunk/themes/default/tiny_mce/plugins/advhr/editor_plugin.js 2009-01-31 19:35:23 UTC (rev 6475) @@ -0,0 +1 @@ +(function(){tinymce.create('tinymce.plugins.AdvancedHRPlugin',{init:function(ed,url){ed.addCommand('mceAdvancedHr',function(){ed.windowManager.open({file:url+'/rule.htm',width:250+parseInt(ed.getLang('advhr.delta_width',0)),height:160+parseInt(ed.getLang('advhr.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('advhr',{title:'advhr.advhr_desc',cmd:'mceAdvancedHr'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('advhr',n.nodeName=='HR');});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='HR')ed.selection.select(e);});},getInfo:function(){return{longname:'Advanced HR',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('advhr',tinymce.plugins.AdvancedHRPlugin);})(); \ No newline at end of file Added: trunk/themes/default/tiny_mce/plugins/advhr/editor_plugin_src.js =================================================================== --- trunk/themes/default/tiny_mce/plugins/advhr/editor_plugin_src.js (rev 0) +++ trunk/themes/default/tiny_mce/plugins/advhr/editor_plugin_src.js 2009-01-31 19:35:23 UTC (rev 6475) @@ -0,0 +1,54 @@ +/** + * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $ + * + * @author Moxiecode + * @copyright Copyright \xA9 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedHRPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceAdvancedHr', function() { + ed.windowManager.open({ + file : url + '/rule.htm', + width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)), + height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('advhr', { + title : 'advhr.advhr_desc', + cmd : 'mceAdvancedHr' + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('advhr', n.nodeName == 'HR'); + }); + + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'HR') + ed.selection.select(e); + }); + }, + + getInfo : function() { + return { + longname : 'Advanced HR', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin); +})(); \ No newline at end of file Added: trunk/themes/default/tiny_mce/plugins/advhr/js/rule.js =================================================================== --- trunk/themes/default/tiny_mce/plugins/advhr/js/rule.js (rev 0) +++ trunk/themes/default/tiny_mce/plugins/advhr/js/rule.js 2009-01-31 19:35:23 UTC (rev 6475) @@ -0,0 +1,43 @@ +var AdvHRDialog = { + init : function(ed) { + var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; + + w = dom.getAttrib(n, 'width'); + f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); + f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; + f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); + selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); + }, + + update : function() { + var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; + + h = '<hr'; + + if (f.size.value) { + h += ' size="' + f.size.value + '"'; + st += ' height:' + f.size.value + 'px;'; + } + + if (f.width.value) { + h += ' width="' + f.width.value + (f.width2.value == '%' ? '%' : '') + '"'; + st += ' width:' + f.width.value + (f.width2.value == '%' ? '%' : 'px') + ';'; + } + + if (f.noshade.checked) { + h += ' noshade="noshade"'; + st += ' border-width: 1px; border-style: solid; border-color: #CCCCCC; color: #ffffff;'; + } + + if (ed.settings.inline_styles) + h += ' style="' + tinymce.trim(st) + '"'; + + h += ' />'; + + ed.execCommand("mceInsertContent", false, h); + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.requireLangPack(); +tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog); Added: trunk/themes/default/tiny_mce/plugins/advhr/langs/en_dlg.js =================================================================== --- trunk/themes/default/tiny_mce/plugins/advhr/langs/en_dlg.js (rev 0) +++ trunk/themes/default/tiny_mce/plugins/advhr/langs/en_dlg.js 2009-01-31 19:35:23 UTC (rev 6475) @@ -0,0 +1,5 @@ +tinyMCE.addI18n('en.advhr_dlg',{ +width:"Width", +size:"Height", +noshade:"No shadow" +}); \ No newline at end of file Added: trunk/themes/default/tiny_mce/plugins/advhr/rule.htm =================================================================== --- trunk/themes/default/tiny_mce/plugins/advhr/rule.htm (rev 0) +++ trunk/themes/default/tiny_mce/plugins/advhr/rule.htm 2009-01-31 19:35:23 UTC (rev 6475) @@ -0,0 +1,63 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>{#advhr.advhr_desc}</title> + <script type="text/javascript" src="../../tiny_mce_popup.js"></script> + <script type="text/javascript" src="js/rule.js"></script> + <script type="text/javascript" src="../../utils/mctabs.js"></script> + <script type="text/javascript" src="../../utils/form_utils.js"></script> + <link href="css/advhr.css" rel="stylesheet" type="text/css" /> + <base target="_self" /> +</head> +<body> +<form onsubmit="AdvHRDialog.update();return false;" action="#"> + <div class="tabs"> + <ul> + <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmoused... [truncated message content] |
From: <var...@us...> - 2009-02-02 14:13:34
|
Revision: 6480 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6480&view=rev Author: vargenau Date: 2009-02-02 14:13:24 +0000 (Mon, 02 Feb 2009) Log Message: ----------- Valid CSS code Modified Paths: -------------- trunk/themes/default/highlight.css trunk/themes/default/phpwiki-topbottombars.css trunk/themes/default/phpwiki.css Modified: trunk/themes/default/highlight.css =================================================================== --- trunk/themes/default/highlight.css 2009-02-02 13:36:07 UTC (rev 6479) +++ trunk/themes/default/highlight.css 2009-02-02 14:13:24 UTC (rev 6480) @@ -18,7 +18,7 @@ /* sym: Symbols */ /* line: Line numbers */ - pre { color:#000000; background-color:#ffffff; font-size:10pt; font-family:Courier;} + pre { color:#000000; background-color:#ffffff; font-size:10pt; font-family:Courier, monospace;} .key { color:#000000; font-weight:bold; } .num { color:#2928ff; } .typ { color:#830000; } Modified: trunk/themes/default/phpwiki-topbottombars.css =================================================================== --- trunk/themes/default/phpwiki-topbottombars.css 2009-02-02 13:36:07 UTC (rev 6479) +++ trunk/themes/default/phpwiki-topbottombars.css 2009-02-02 14:13:24 UTC (rev 6480) @@ -20,7 +20,7 @@ * #navbar and #actionbar, such as in editpage and removepage */ div#header, div#footer { - background: ivory; + background: #FFFFF0; /* ivory */ margin: 0px; padding: 0px; position: fixed; Modified: trunk/themes/default/phpwiki.css =================================================================== --- trunk/themes/default/phpwiki.css 2009-02-02 13:36:07 UTC (rev 6479) +++ trunk/themes/default/phpwiki.css 2009-02-02 14:13:24 UTC (rev 6480) @@ -222,7 +222,7 @@ th.gridbutton { background-color: ThreedLightShadow; color: black; - font-family: Tahoma, sans-serif, Arial, Helvetica; + font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: small; font-weight: normal; /*font-style: menu;*/ @@ -844,7 +844,7 @@ /* Sidebar */ .box { background:#ffffff; border: 1px solid silver } -.box-title { font-family: Tahoma; font-weight: normal; /*font-size: 11pt; */ background-color: #ccc; color: black; /*font-style: menu;*/ text-align: center; border: none; padding: 2px 0 2px 0;} +.box-title { font-family: Tahoma, Arial, Helvetica, sans-serif; font-weight: normal; /*font-size: 11pt; */ background-color: #ccc; color: black; /*font-style: menu;*/ text-align: center; border: none; padding: 2px 0 2px 0;} .box-data { width: 160px; font-size: 9pt; font-weight: normal; border: none; } .box-data .wiki { font-weight: normal; } td.sidebar { border-spacing: 0px; margin: 0ex;} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-06-04 11:03:59
|
Revision: 6860 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6860&view=rev Author: rurban Date: 2009-06-04 11:03:50 +0000 (Thu, 04 Jun 2009) Log Message: ----------- Move sortable to wikicommon Add WikiURL() Modified Paths: -------------- trunk/themes/default/wikicommon.js Removed Paths: ------------- trunk/themes/default/sortable.js Deleted: trunk/themes/default/sortable.js =================================================================== --- trunk/themes/default/sortable.js 2009-06-04 10:45:52 UTC (rev 6859) +++ trunk/themes/default/sortable.js 2009-06-04 11:03:50 UTC (rev 6860) @@ -1,325 +0,0 @@ -/* -Table sorting script by Joost de Valk, check it out at http://www.joostdevalk.nl/code/sortable-table/. -Based on a script from http://www.kryogenix.org/code/browser/sorttable/. -Distributed under the MIT license: http://www.kryogenix.org/code/browser/licence.html . - -Copyright (c) 1997-2007 Stuart Langridge, Joost de Valk. - -Version 1.5.7 -*/ - -/* You can change these values */ -var image_path = "/images/"; -var image_up = "sort_up.gif"; -var image_down = "sort_down.gif"; -var image_none = "sort_none.gif"; -var europeandate = true; -var alternate_row_colors = true; - -/* Don't change anything below this unless you know what you're doing */ -addEvent(window, "load", sortables_init); - -var SORT_COLUMN_INDEX; -var thead = false; - -function sortables_init() { - // Find all tables with class sortable and make them sortable - if (!document.getElementsByTagName) return; - tbls = document.getElementsByTagName("table"); - for (ti=0;ti<tbls.length;ti++) { - thisTbl = tbls[ti]; - if (((' '+thisTbl.className+' ').indexOf("sortable") != -1) && (thisTbl.id)) { - ts_makeSortable(thisTbl); - } - } -} - -function ts_makeSortable(t) { - if (t.rows && t.rows.length > 0) { - if (t.tHead && t.tHead.rows.length > 0) { - var firstRow = t.tHead.rows[t.tHead.rows.length-1]; - thead = true; - } else { - var firstRow = t.rows[0]; - } - } - if (!firstRow) return; - - // We have a first row: assume it's the header, and make its contents clickable links - for (var i=0;i<firstRow.cells.length;i++) { - var cell = firstRow.cells[i]; - var txt = ts_getInnerText(cell); - if (cell.className != "unsortable" && cell.className.indexOf("unsortable") == -1) { - cell.innerHTML = '<a href="#" class="sortheader" onclick="ts_resortTable(this, '+i+');return false;">'+txt+'<span class="sortarrow"> <img src="'+ image_path + image_none + '" alt="↓"/></span></a>'; - } - } - if (alternate_row_colors) { - alternate(t); - } -} - -function ts_getInnerText(el) { - if (typeof el == "string") return el; - if (typeof el == "undefined") { return el }; - if (el.innerText) return el.innerText; //Not needed but it is faster - var str = ""; - - var cs = el.childNodes; - var l = cs.length; - for (var i = 0; i < l; i++) { - switch (cs[i].nodeType) { - case 1: //ELEMENT_NODE - str += ts_getInnerText(cs[i]); - break; - case 3: //TEXT_NODE - str += cs[i].nodeValue; - break; - } - } - return str; -} - -function ts_resortTable(lnk, clid) { - var span; - for (var ci=0;ci<lnk.childNodes.length;ci++) { - if (lnk.childNodes[ci].tagName && lnk.childNodes[ci].tagName.toLowerCase() == 'span') span = lnk.childNodes[ci]; - } - var spantext = ts_getInnerText(span); - var td = lnk.parentNode; - var column = clid || td.cellIndex; - var t = getParent(td,'TABLE'); - // Work out a type for the column - if (t.rows.length <= 1) return; - var itm = ""; - var i = 0; - while (itm == "" && i < t.tBodies[0].rows.length) { - var itm = ts_getInnerText(t.tBodies[0].rows[i].cells[column]); - itm = trim(itm); - if (itm.substr(0,4) == "<!--" || itm.length == 0) { - itm = ""; - } - i++; - } - if (itm == "") return; - sortfn = ts_sort_caseinsensitive; - if (itm.match(/^\d\d[\/\.-][a-zA-z][a-zA-Z][a-zA-Z][\/\.-]\d\d\d\d$/)) sortfn = ts_sort_date; - if (itm.match(/^\d\d[\/\.-]\d\d[\/\.-]\d\d\d{2}?$/)) sortfn = ts_sort_date; - if (itm.match(/^-?[\xA3$\x80ۢ\xB4]\d/)) sortfn = ts_sort_numeric; - // ape: added to provide numeric sort on size for the docs tools. - if (itm.match(/^\d+ *(B|KB|MB)$/)) sortfn = ts_sort_numeric; - if (itm.match(/^-?(\d+[,\.]?)+(E[-+][\d]+)?%?$/)) sortfn = ts_sort_numeric; - SORT_COLUMN_INDEX = column; - var firstRow = new Array(); - var newRows = new Array(); - for (k=0;k<t.tBodies.length;k++) { - for (i=0;i<t.tBodies[k].rows[0].length;i++) { - firstRow[i] = t.tBodies[k].rows[0][i]; - } - } - for (k=0;k<t.tBodies.length;k++) { - if (!thead) { - // Skip the first row - for (j=1;j<t.tBodies[k].rows.length;j++) { - newRows[j-1] = t.tBodies[k].rows[j]; - } - } else { - // Do NOT skip the first row - for (j=0;j<t.tBodies[k].rows.length;j++) { - newRows[j] = t.tBodies[k].rows[j]; - } - } - } - newRows.sort(sortfn); - if (span.getAttribute("sortdir") == 'down') { - ARROW = ' <img src="'+ image_path + image_down + '" alt="↓"/>'; - newRows.reverse(); - span.setAttribute('sortdir','up'); - } else { - ARROW = ' <img src="'+ image_path + image_up + '" alt="↑"/>'; - span.setAttribute('sortdir','down'); - } - // We appendChild rows that already exist to the tbody, so it moves them rather than creating new ones - // don't do sortbottom rows - for (i=0; i<newRows.length; i++) { - if (!newRows[i].className || (newRows[i].className && (newRows[i].className.indexOf('sortbottom') == -1))) { - t.tBodies[0].appendChild(newRows[i]); - } - } - // do sortbottom rows only - for (i=0; i<newRows.length; i++) { - if (newRows[i].className && (newRows[i].className.indexOf('sortbottom') != -1)) - t.tBodies[0].appendChild(newRows[i]); - } - // Delete any other arrows there may be showing - var allspans = document.getElementsByTagName("span"); - for (var ci=0;ci<allspans.length;ci++) { - if (allspans[ci].className == 'sortarrow') { - if (getParent(allspans[ci],"table") == getParent(lnk,"table")) { // in the same table as us? - allspans[ci].innerHTML = ' <img src="'+ image_path + image_none + '" alt="↓"/>'; - } - } - } - span.innerHTML = ARROW; - alternate(t); -} - -function getParent(el, pTagName) { - if (el == null) { - return null; - } else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase()) { - return el; - } else { - return getParent(el.parentNode, pTagName); - } -} - -function sort_date(date) { - // y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX - dt = "00000000"; - if (date.length == 11) { - mtstr = date.substr(3,3); - mtstr = mtstr.toLowerCase(); - switch(mtstr) { - case "jan": var mt = "01"; break; - case "feb": var mt = "02"; break; - case "mar": var mt = "03"; break; - case "apr": var mt = "04"; break; - case "may": var mt = "05"; break; - case "jun": var mt = "06"; break; - case "jul": var mt = "07"; break; - case "aug": var mt = "08"; break; - case "sep": var mt = "09"; break; - case "oct": var mt = "10"; break; - case "nov": var mt = "11"; break; - case "dec": var mt = "12"; break; - // default: var mt = "00"; - } - dt = date.substr(7,4)+mt+date.substr(0,2); - return dt; - } else if (date.length == 10) { - if (europeandate == false) { - dt = date.substr(6,4)+date.substr(0,2)+date.substr(3,2); - return dt; - } else { - dt = date.substr(6,4)+date.substr(3,2)+date.substr(0,2); - return dt; - } - } else if (date.length == 8) { - yr = date.substr(6,2); - if (parseInt(yr) < 50) { - yr = '20'+yr; - } else { - yr = '19'+yr; - } - if (europeandate == true) { - dt = yr+date.substr(3,2)+date.substr(0,2); - return dt; - } else { - dt = yr+date.substr(0,2)+date.substr(3,2); - return dt; - } - } - return dt; -} - -function ts_sort_date(a,b) { - dt1 = sort_date(ts_getInnerText(a.cells[SORT_COLUMN_INDEX])); - dt2 = sort_date(ts_getInnerText(b.cells[SORT_COLUMN_INDEX])); - - if (dt1==dt2) { - return 0; - } - if (dt1<dt2) { - return -1; - } - return 1; -} -function ts_sort_numeric(a,b) { - var aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]); - aa = clean_num(aa); - var bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]); - bb = clean_num(bb); - return compare_numeric(aa,bb); -} -function compare_numeric(a,b) { - var a = parseFloat(a); - a = (isNaN(a) ? 0 : a); - var b = parseFloat(b); - b = (isNaN(b) ? 0 : b); - return a - b; -} -function ts_sort_caseinsensitive(a,b) { - aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]).toLowerCase(); - bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]).toLowerCase(); - if (aa==bb) { - return 0; - } - if (aa<bb) { - return -1; - } - return 1; -} -function ts_sort_default(a,b) { - aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]); - bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]); - if (aa==bb) { - return 0; - } - if (aa<bb) { - return -1; - } - return 1; -} -function addEvent(elm, evType, fn, useCapture) -// addEvent and removeEvent -// cross-browser event handling for IE5+, NS6 and Mozilla -// By Scott Andrew -{ - if (elm.addEventListener){ - elm.addEventListener(evType, fn, useCapture); - return true; - } else if (elm.attachEvent){ - var r = elm.attachEvent("on"+evType, fn); - return r; - } else { - alert("Handler could not be removed"); - } -} -function clean_num(str) { - str = str.replace(new RegExp(/[^-?0-9.]/g),""); - return str; -} -function trim(s) { - return s.replace(/^\s+|\s+$/g, ""); -} -function alternate(table) { - // Take object table and get all it's tbodies. - var tableBodies = table.getElementsByTagName("tbody"); - // Loop through these tbodies - for (var i = 0; i < tableBodies.length; i++) { - // Take the tbody, and get all it's rows - var tableRows = tableBodies[i].getElementsByTagName("tr"); - // Loop through these rows - // Start at 1 because we want to leave the heading row untouched - for (var j = 0; j < tableRows.length; j++) { - // Check if j is even, and apply classes for both possible results - if ( (j % 2) == 0 ) { - if ( !(tableRows[j].className.indexOf('odd') == -1) ) { - tableRows[j].className = tableRows[j].className.replace('odd', 'even'); - } else { - if ( tableRows[j].className.indexOf('even') == -1 ) { - tableRows[j].className += " even"; - } - } - } else { - if ( !(tableRows[j].className.indexOf('even') == -1) ) { - tableRows[j].className = tableRows[j].className.replace('even', 'odd'); - } else { - if ( tableRows[j].className.indexOf('odd') == -1 ) { - tableRows[j].className += " odd"; - } - } - } - } - } -} Modified: trunk/themes/default/wikicommon.js =================================================================== --- trunk/themes/default/wikicommon.js 2009-06-04 10:45:52 UTC (rev 6859) +++ trunk/themes/default/wikicommon.js 2009-06-04 11:03:50 UTC (rev 6860) @@ -1,6 +1,23 @@ // Common Javascript support functions. // $Id$ +/* Globals: +var data_path = '/phpwiki-cvs'; +var pagename = 'HomePage'; +var script_url= '/wikicvs'; +var stylepath = data_path+'/themes/MonoBook/'; +*/ + +function WikiURL(page) { + if (typeof page == "undefined") + page = pagename; + if (use_path_info) { + return script_url + '/' + escapeQuotes(page) + '?'; + } else { + return script_url + '?pagename=' + escapeQuotes(page) + '&'; + } +} + function flipAll(formObj) { var isFirstSet = -1; for (var i=0; i < formObj.length; i++) { @@ -26,3 +43,252 @@ } } +// Global external objects used by this script. +/*extern ta, stylepath, skin */ + +// add any onload functions in this hook (please don't hard-code any events in the xhtml source) +var doneOnloadHook; + +if (!window.onloadFuncts) { + var onloadFuncts = []; +} + +function addOnloadHook(hookFunct) { + // Allows add-on scripts to add onload functions + onloadFuncts[onloadFuncts.length] = hookFunct; +} + +function hookEvent(hookName, hookFunct) { + if (window.addEventListener) { + window.addEventListener(hookName, hookFunct, false); + } else if (window.attachEvent) { + window.attachEvent("on" + hookName, hookFunct); + } +} + +// Todo: onloadhook to re-establish folder state in pure js, no cookies. same for toc. +function showHideFolder(id) { + var div = document.getElementById(id+'-body'); + var img = document.getElementById(id+'-img'); + var expires = new Date(); // 30 days + expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); + var suffix = " expires="+expires.toGMTString(); //+"; path="+data_path; + //todo: invalidate cache header + if ( div.style.display == 'none' ) { + div.style.display = 'block'; + img.src = stylepath + 'images/folderArrowOpen.png'; + document.cookie = "folder_"+id+"=Open;"+suffix; + } else { + div.style.display = 'none'; + img.src = stylepath + 'images/folderArrowClosed.png'; + document.cookie = "folder_"+id+"=Closed;"+suffix; + } +} + +function setupshowHideFolder() { + var ids = ["p-tb", "p-tbx", "p-tags", "p-rc" /*,"toc"*/]; + for (var i = 0; i < ids.length; i++) { + if (ids[i]) { + var id = ids[i]; + var cookieStr = "folder_"+id+"="; + var cookiePos = document.cookie.indexOf(cookieStr); + if (cookiePos > -1) { + document.getElementById(id+'-body').style.display = document.cookie.charAt(cookiePos + cookieStr.length) == "C" ? 'block' : 'none'; + showHideFolder(id) + } + } + } +} + +hookEvent("load", setupshowHideFolder); + +/* + * Table sorting script by Joost de Valk, check it out at http://www.joostdevalk.nl/code/sortable-table/. + * Based on a script from http://www.kryogenix.org/code/browser/sorttable/. + * Distributed under the MIT license: http://www.kryogenix.org/code/browser/licence.html . + * + * Copyright (c) 1997-2006 Stuart Langridge, Joost de Valk. + * + * @todo don't break on colspans/rowspans (bug 8028) + * @todo language-specific digit grouping/decimals (bug 8063) + * @todo support all accepted date formats (bug 8226) + */ + +var ts_image_up = "sort_up.gif"; +var ts_image_down = "sort_down.gif"; +var ts_image_none = "sort_none.gif"; +var wgContentLanguage = "en"; +var ts_europeandate = true; +var ts_alternate_row_colors = true; +var SORT_COLUMN_INDEX; + +function sortables_init() { + var idnum = 0; + // Find all tables with class sortable and make them sortable + var tables = getElementsByClassName(document, "table", "sortable"); + for (var ti = 0; ti < tables.length ; ti++) { + if (!tables[ti].id) { + tables[ti].setAttribute('id','sortable_table_id_'+idnum); + ++idnum; + } + ts_makeSortable(tables[ti]); + } +} + +function ts_makeSortable(table) { + var firstRow; + var ts_image_path = stylepath+"images/"; + if (table.rows && table.rows.length > 0) { + if (table.tHead && table.tHead.rows.length > 0) { + firstRow = table.tHead.rows[table.tHead.rows.length-1]; + } else { + firstRow = table.rows[0]; + } + } + if (!firstRow) return; + + // We have a first row: assume it's the header, and make its contents clickable links + for (var i = 0; i < firstRow.cells.length; i++) { + var cell = firstRow.cells[i]; + if ((" "+cell.className+" ").indexOf(" unsortable ") == -1) { + cell.innerHTML += ' <a href="#" class="sortheader" onclick="ts_resortTable(this);return false;"><span class="sortarrow"><img src="'+ ts_image_path + ts_image_none + '" alt="↓"/></span></a>'; + } + } + if (ts_alternate_row_colors) { + ts_alternate(table); + } +} + +function ts_getInnerText(el) { + if (typeof el == "string") return el; + if (typeof el == "undefined") { return el }; + if (el.innerText) return el.innerText; // Not needed but it is faster + var str = ""; + + var cs = el.childNodes; + var l = cs.length; + for (var i = 0; i < l; i++) { + switch (cs[i].nodeType) { + case 1: //ELEMENT_NODE + str += ts_getInnerText(cs[i]); + break; + case 3: //TEXT_NODE + str += cs[i].nodeValue; + break; + } + } + return str; +} + +function ts_parseFloat(num) { + if (!num) return 0; + num = parseFloat(num.replace(/,/, "")); + return (isNaN(num) ? 0 : num); +} + +function ts_sort_date(a,b) { + var aa = ts_dateToSortKey(a[1]); + var bb = ts_dateToSortKey(b[1]); + return (aa < bb ? -1 : aa > bb ? 1 : a[2] - b[2]); +} + +function ts_sort_currency(a,b) { + var aa = ts_parseFloat(a[1].replace(/[^0-9.]/g,'')); + var bb = ts_parseFloat(b[1].replace(/[^0-9.]/g,'')); + return (aa != bb ? aa - bb : a[2] - b[2]); +} + +function ts_sort_numeric(a,b) { + var aa = ts_parseFloat(a[1]); + var bb = ts_parseFloat(b[1]); + return (aa != bb ? aa - bb : a[2] - b[2]); +} + +function ts_sort_caseinsensitive(a,b) { + var aa = a[1].toLowerCase(); + var bb = b[1].toLowerCase(); + return (aa < bb ? -1 : aa > bb ? 1 : a[2] - b[2]); +} + +function ts_sort_default(a,b) { + return (a[1] < b[1] ? -1 : a[1] > b[1] ? 1 : a[2] - b[2]); +} + +function ts_alternate(table) { + // Take object table and get all it's tbodies. + var tableBodies = table.getElementsByTagName("tbody"); + // Loop through these tbodies + for (var i = 0; i < tableBodies.length; i++) { + // Take the tbody, and get all it's rows + var tableRows = tableBodies[i].getElementsByTagName("tr"); + // Loop through these rows + // Start at 1 because we want to leave the heading row untouched + for (var j = 0; j < tableRows.length; j++) { + // Check if j is even, and apply classes for both possible results + var oldClasses = tableRows[j].className.split(" "); + var newClassName = ""; + for (var k = 0; k < oldClasses.length; k++) { + if (oldClasses[k] != "" && oldClasses[k] != "even" && oldClasses[k] != "odd") + newClassName += oldClasses[k] + " "; + } + tableRows[j].className = newClassName + (j % 2 == 0 ? "even" : "odd"); + } + } +} + +/* + * End of table sorting code + */ + +function runOnloadHook() { + // don't run anything below this for non-dom browsers + if (doneOnloadHook || !(document.getElementById && document.getElementsByTagName)) { + return; + } + + // set this before running any hooks, since any errors below + // might cause the function to terminate prematurely + doneOnloadHook = true; + + histrowinit(); + unhidetzbutton(); + tabbedprefs(); + updateTooltipAccessKeys( null ); + akeytt( null ); + scrollEditBox(); + setupCheckboxShiftClick(); + sortables_init(); + + // Run any added-on functions + for (var i = 0; i < onloadFuncts.length; i++) { + onloadFuncts[i](); + } +} + +//note: all skins should call runOnloadHook() at the end of html output, +// so the below should be redundant. It's there just in case. +hookEvent("load", runOnloadHook); + +//hookEvent("load", mwSetupToolbar); + +// This script was provided for free by +// http://www.howtocreate.co.uk/tutorials/javascript/domcss +// See http://www.howtocreate.co.uk/jslibs/termsOfUse.html +function getAllSheets() { + if( !window.ScriptEngine && navigator.__ice_version ) { return document.styleSheets; } + if( document.getElementsByTagName ) { var Lt = document.getElementsByTagName('link'), St = document.getElementsByTagName('style'); + } else if( document.styleSheets && document.all ) { var Lt = document.all.tags('LINK'), St = document.all.tags('STYLE'); + } else { return []; } for( var x = 0, os = []; Lt[x]; x++ ) { + var rel = Lt[x].rel ? Lt[x].rel : Lt[x].getAttribute ? Lt[x].getAttribute('rel') : ''; + if( typeof( rel ) == 'string' && rel.toLowerCase().indexOf('style') + 1 ) { os[os.length] = Lt[x]; } + } for( var x = 0; St[x]; x++ ) { os[os.length] = St[x]; } return os; +} +function changeStyle() { + for( var x = 0, ss = getAllSheets(); ss[x]; x++ ) { + if( ss[x].title ) { ss[x].disabled = true; } + for( var y = 0; y < arguments.length; y++ ) { + if( ss[x].title == arguments[y] ) { ss[x].disabled = false; } +} } } +function PrinterStylesheet() { + changeStyle('Printer'); +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-06-04 11:22:35
|
Revision: 6864 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6864&view=rev Author: rurban Date: 2009-06-04 11:22:23 +0000 (Thu, 04 Jun 2009) Log Message: ----------- data_path might be defined after the script Modified Paths: -------------- trunk/themes/default/moacdropdown/js/acdropdown.js trunk/themes/default/moacdropdown.js Modified: trunk/themes/default/moacdropdown/js/acdropdown.js =================================================================== --- trunk/themes/default/moacdropdown/js/acdropdown.js 2009-06-04 11:21:47 UTC (rev 6863) +++ trunk/themes/default/moacdropdown/js/acdropdown.js 2009-06-04 11:22:23 UTC (rev 6864) @@ -15,7 +15,7 @@ this.init( sInputId ) } -xmlrpc_url = data_path + '/RPC2.php' +var xmlrpc_url; cAutocomplete.CS_NAME = 'Autocomplete component' cAutocomplete.CS_OBJ_NAME = 'AC_COMPONENT' @@ -57,1449 +57,1724 @@ cAutocomplete.hListDisplayed = null cAutocomplete.nCount = 0 -cAutocomplete.autoInit = function() { - var nI = 0 - var hACE = null - var sLangAtt +cAutocomplete.autoInit = function() +{ + var nI = 0 + var hACE = null + var sLangAtt - var nInputsLength = document.getElementsByTagName( 'INPUT' ).length - for( nI = 0; nI < nInputsLength; nI++ ) { - if( document.getElementsByTagName( 'INPUT' )[ nI ].type.toLowerCase() == 'text' ) { - sLangAtt = document.getElementsByTagName( 'INPUT' )[ nI ].getAttribute( 'acdropdown' ) - if( sLangAtt != null && sLangAtt.length > 0 ) { - if( document.getElementsByTagName( 'INPUT' )[ nI ].id == null || document.getElementsByTagName( 'INPUT' )[ nI ].id.length == 0 ) { - document.getElementsByTagName( 'INPUT' )[ nI ].id = cAutocomplete.CS_OBJ_NAME + cAutocomplete.nCount + var nInputsLength = document.getElementsByTagName( 'INPUT' ).length + for( nI = 0; nI < nInputsLength; nI++ ) + { + if( document.getElementsByTagName( 'INPUT' )[ nI ].type.toLowerCase() == 'text' ) + { + sLangAtt = document.getElementsByTagName( 'INPUT' )[ nI ].getAttribute( 'acdropdown' ) + if( sLangAtt != null && sLangAtt.length > 0 ) + { + if( document.getElementsByTagName( 'INPUT' )[ nI ].id == null || document.getElementsByTagName( 'INPUT' )[ nI ].id.length == 0 ) + { + document.getElementsByTagName( 'INPUT' )[ nI ].id = cAutocomplete.CS_OBJ_NAME + cAutocomplete.nCount + } + hACE = new cAutocomplete( document.getElementsByTagName( 'INPUT' )[ nI ].id ) + } + } } - hACE = new cAutocomplete( document.getElementsByTagName( 'INPUT' )[ nI ].id ) - } - } - } - var nTALength = document.getElementsByTagName( 'TEXTAREA' ).length - for( nI = 0; nI < nTALength; nI++ ) { - sLangAtt = document.getElementsByTagName( 'TEXTAREA' )[ nI ].getAttribute( 'acdropdown' ) - if( sLangAtt != null && sLangAtt.length > 0 ) { - if( document.getElementsByTagName( 'TEXTAREA' )[ nI ].id == null || document.getElementsByTagName( 'TEXTAREA' )[ nI ].id.length == 0 ) { - document.getElementsByTagName( 'TEXTAREA' )[ nI ].id = cAutocomplete.CS_OBJ_NAME + cAutocomplete.nCount - } - hACE = new cAutocomplete( document.getElementsByTagName( 'TEXTAREA' )[ nI ].id ) - } - } + var nTALength = document.getElementsByTagName( 'TEXTAREA' ).length + for( nI = 0; nI < nTALength; nI++ ) + { + sLangAtt = document.getElementsByTagName( 'TEXTAREA' )[ nI ].getAttribute( 'acdropdown' ) + if( sLangAtt != null && sLangAtt.length > 0 ) + { + if( document.getElementsByTagName( 'TEXTAREA' )[ nI ].id == null || document.getElementsByTagName( 'TEXTAREA' )[ nI ].id.length == 0 ) + { + document.getElementsByTagName( 'TEXTAREA' )[ nI ].id = cAutocomplete.CS_OBJ_NAME + cAutocomplete.nCount + } + hACE = new cAutocomplete( document.getElementsByTagName( 'TEXTAREA' )[ nI ].id ) + } + } - var nSelectsLength = document.getElementsByTagName( 'SELECT' ).length - var aSelect = null - for( nI = 0; nI < nSelectsLength; nI++ ) { - aSelect = document.getElementsByTagName( 'SELECT' )[ nI ] - sLangAtt = aSelect.getAttribute( 'acdropdown' ) - if( sLangAtt != null && sLangAtt.length > 0 ) { - if( aSelect.id == null || aSelect.id.length == 0 ) { - aSelect.id = cAutocomplete.CS_OBJ_NAME + cAutocomplete.nCount - } - hACE = new cAutocomplete( aSelect.id ) - nSelectsLength-- - nI-- - } - } + var nSelectsLength = document.getElementsByTagName( 'SELECT' ).length + var aSelect = null + for( nI = 0; nI < nSelectsLength; nI++ ) + { + aSelect = document.getElementsByTagName( 'SELECT' )[ nI ] + sLangAtt = aSelect.getAttribute( 'acdropdown' ) + if( sLangAtt != null && sLangAtt.length > 0 ) + { + if( aSelect.id == null || aSelect.id.length == 0 ) + { + aSelect.id = cAutocomplete.CS_OBJ_NAME + cAutocomplete.nCount + } + hACE = new cAutocomplete( aSelect.id ) + nSelectsLength-- + nI-- + } + } } -if( cAutocomplete.CB_AUTOINIT ) { - if( window.attachEvent ) { - window.attachEvent( 'onload', cAutocomplete.autoInit ) - } - else if( window.addEventListener ) { - window.addEventListener( 'load', cAutocomplete.autoInit, false ) - } +if( cAutocomplete.CB_AUTOINIT ) +{ + if( window.attachEvent ) + { + window.attachEvent( 'onload', cAutocomplete.autoInit ) + } + else if( window.addEventListener ) + { + window.addEventListener( 'load', cAutocomplete.autoInit, false ) + } } -cAutocomplete.prototype.init = function( sInputId ) { +cAutocomplete.prototype.init = function( sInputId ) +{ this.bDebug = false /*this.bDebug = true*/ - this.sInputId = sInputId - this.sListId = cAutocomplete.CS_LIST_PREFIX + sInputId + this.sInputId = sInputId + this.sListId = cAutocomplete.CS_LIST_PREFIX + sInputId - this.sObjName = cAutocomplete.CS_OBJ_NAME + '_obj_' + (cAutocomplete.nCount++) - this.hObj = this.sObjName + this.sObjName = cAutocomplete.CS_OBJ_NAME + '_obj_' + (cAutocomplete.nCount++) + this.hObj = this.sObjName - this.hActiveSelection = null - this.nSelectedItemIdx = -1 + this.hActiveSelection = null + this.nSelectedItemIdx = -1 - //the value of the input before the list is displayed - this.sLastActiveValue = '' - this.sActiveValue = '' - this.bListDisplayed = false - this.nItemsDisplayed = 0 + //the value of the input before the list is displayed + this.sLastActiveValue = '' + this.sActiveValue = '' + this.bListDisplayed = false + this.nItemsDisplayed = 0 - //if I transform a select option or the supplied array is associative I create a hidden input - //with the name of the original input and replace the original input's name - this.bAssociative = true - this.sHiddenInputId = null - this.bHasButton = false + //if I transform a select option or the supplied array is associative I create a hidden input + //with the name of the original input and replace the original input's name + this.bAssociative = true + this.sHiddenInputId = null + this.bHasButton = false - //the actual data - this.aData = null - //the search array object - this.aSearchData = new Array() - this.bSorted = false + //the actual data + this.aData = null + //the search array object + this.aSearchData = new Array() + this.bSorted = false - //the length of the last matched typed string - this.nLastMatchLength = 0 + //the length of the last matched typed string + this.nLastMatchLength = 0 - this.bForceCorrect = cAutocomplete.CB_FORCECORRECT - var sForceCorrect = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_forcecorrect' ) - if( sForceCorrect != null && sForceCorrect.length > 0 ) { - this.bForceCorrect = eval( sForceCorrect ) - } + this.bForceCorrect = cAutocomplete.CB_FORCECORRECT + var sForceCorrect = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_forcecorrect' ) + if( sForceCorrect != null && sForceCorrect.length > 0 ) + { + this.bForceCorrect = eval( sForceCorrect ) + } - //match a only from the beginning or anywhere in the values - this.bMatchBegin = cAutocomplete.CB_MATCHSTRINGBEGIN - var sMatchBegin = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_matchbegin' ) - if( sMatchBegin != null && sMatchBegin.length > 0 ) { - this.bMatchBegin = eval( sMatchBegin ) - } - //match substrings separated by cAutocomplete.CS_SEPARATOR - this.bMatchSubstring = cAutocomplete.CB_MATCHSUBSTRING - var sMatchSubstring = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_matchsubstring' ) - if( sMatchSubstring != null && sMatchSubstring.length > 0 ) { - this.bMatchSubstring = eval( sMatchSubstring ) - } + //match a only from the beginning or anywhere in the values + this.bMatchBegin = cAutocomplete.CB_MATCHSTRINGBEGIN + var sMatchBegin = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_matchbegin' ) + if( sMatchBegin != null && sMatchBegin.length > 0 ) + { + this.bMatchBegin = eval( sMatchBegin ) + } + //match substrings separated by cAutocomplete.CS_SEPARATOR + this.bMatchSubstring = cAutocomplete.CB_MATCHSUBSTRING + var sMatchSubstring = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_matchsubstring' ) + if( sMatchSubstring != null && sMatchSubstring.length > 0 ) + { + this.bMatchSubstring = eval( sMatchSubstring ) + } - //autocomplete with the first option from the list - this.bAutoComplete = cAutocomplete.CB_AUTOCOMPLETE - this.bAutocompleted = false - var sAutoComplete = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_complete' ) - if( sAutoComplete != null && sAutoComplete.length > 0 ) { - this.bAutoComplete = eval( sAutoComplete ) - } - //format function - this.formatOptions = null - var sFormatFunction = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_format' ) - if( sFormatFunction != null && sFormatFunction.length > 0 ) { - this.formatOptions = eval( sFormatFunction ) - } - //onselect callback function - get called when a new option is selected, either by changing the focus in the list by using the keyboard or by - //clicking on it with the mouse - this.onSelect = null - var sOnSelectFunction = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_onselect' ) - if( sOnSelectFunction != null && sOnSelectFunction.length > 0 ) { - this.onSelect = eval( sOnSelectFunction ) - } + //autocomplete with the first option from the list + this.bAutoComplete = cAutocomplete.CB_AUTOCOMPLETE + this.bAutocompleted = false + var sAutoComplete = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_complete' ) + if( sAutoComplete != null && sAutoComplete.length > 0 ) + { + this.bAutoComplete = eval( sAutoComplete ) + } + //format function + this.formatOptions = null + var sFormatFunction = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_format' ) + if( sFormatFunction != null && sFormatFunction.length > 0 ) + { + this.formatOptions = eval( sFormatFunction ) + } + //onselect callback function - get called when a new option is selected, either by changing the focus in the list by using the keyboard or by + //clicking on it with the mouse + this.onSelect = null + var sOnSelectFunction = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_onselect' ) + if( sOnSelectFunction != null && sOnSelectFunction.length > 0 ) + { + this.onSelect = eval( sOnSelectFunction ) + } - //if we have remote list then we postpone the list creation and set associative off - if( this.getListArrayType() == 'url' || this.getListArrayType() == 'xmlrpc' ) { - this.bAssociative = false - this.bRemoteList = true - this.sListURL = this.getListURL() - this.hXMLHttp = XmlHttp.create() - this.bXMLRPC = (this.getListArrayType() == 'xmlrpc') - } - else { - this.bRemoteList = false - } + //if we have remote list then we postpone the list creation and set associative off + if( this.getListArrayType() == 'url' || this.getListArrayType() == 'xmlrpc' ) + { + this.bAssociative = false + this.bRemoteList = true + this.sListURL = this.getListURL() + this.hXMLHttp = XmlHttp.create() + this.bXMLRPC = (this.getListArrayType() == 'xmlrpc') + + } + else + { + this.bRemoteList = false + } - //you can turn associative type on or off (separate name-value pairs) - //with the autocomplete_assoc="true" or "false" attribute. - //for remote search it is off - var sAssociative = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_assoc' ) - if( sAssociative != null && sAssociative.length > 0 ) { - this.bAssociative = eval( sAssociative ) - } + //you can turn associative type on or off (separate name-value pairs) + //with the autocomplete_assoc="true" or "false" attribute. + //for remote search it is off + var sAssociative = document.getElementById( this.sInputId ).getAttribute( 'autocomplete_assoc' ) + if( sAssociative != null && sAssociative.length > 0 ) + { + this.bAssociative = eval( sAssociative ) + } - this.initListArray() - this.initListContainer() - //this.createList() - this.initInput() + this.initListArray() + this.initListContainer() + //this.createList() + this.initInput() - eval( this.hObj + '= this' ) + eval( this.hObj + '= this' ) } -cAutocomplete.prototype.initInput = function() { - var hInput = document.getElementById( this.sInputId ) - hInput.hAutocomplete = this - var hContainer = document.getElementById( this.sListId ) - hContainer.hAutocomplete = this +cAutocomplete.prototype.initInput = function() +{ + var hInput = document.getElementById( this.sInputId ) + hInput.hAutocomplete = this + var hContainer = document.getElementById( this.sListId ) + hContainer.hAutocomplete = this - //any element ( and it's children ) with display:none have offset values of 0 ( in mozilla ) - var nWidth = hInput.offsetWidth - if( !nWidth || nWidth == 0 ) { - //any element ( and it's children ) with display:none have offset values of 0 ( in mozilla ) - var hOWInput = hInput.cloneNode( true ) - hOWInput.style.position = 'absolute' - hOWInput.style.top = '-1000px' - document.body.appendChild( hOWInput ) - var nWidth = hOWInput.offsetWidth - document.body.removeChild( hOWInput ) - } + //any element ( and it's children ) with display:none have offset values of 0 ( in mozilla ) + var nWidth = hInput.offsetWidth + if( !nWidth || nWidth == 0 ) + { + //any element ( and it's children ) with display:none have offset values of 0 ( in mozilla ) + var hOWInput = hInput.cloneNode( true ) + hOWInput.style.position = 'absolute' + hOWInput.style.top = '-1000px' + document.body.appendChild( hOWInput ) + var nWidth = hOWInput.offsetWidth + document.body.removeChild( hOWInput ) + } - var sInputName = hInput.name - var hForm = hInput.form - var bHasButton = false - var sHiddenValue = hInput.value - var sValue = hInput.type.toLowerCase() == 'text' ? hInput.value : '' + var sInputName = hInput.name + var hForm = hInput.form + var bHasButton = false + var sHiddenValue = hInput.value + var sValue = hInput.type.toLowerCase() == 'text' ? hInput.value : '' - var sHasButton = hInput.getAttribute( 'autocomplete_button' ) - if( sHasButton != null && sHasButton.length > 0 ) { - bHasButton = true - } + var sHasButton = hInput.getAttribute( 'autocomplete_button' ) + if( sHasButton != null && sHasButton.length > 0 ) + { + bHasButton = true + } - //if it is a select - I unconditionally add a button - if( hInput.type.toLowerCase() == 'select-one' ) { - bHasButton = true - if( hInput.selectedIndex >= 0 ) { - sHiddenValue = hInput.options[ hInput.selectedIndex ].value - sValue = hInput.options[ hInput.selectedIndex ].text - } - } + //if it is a select - I unconditionally add a button + if( hInput.type.toLowerCase() == 'select-one' ) + { + bHasButton = true + if( hInput.selectedIndex >= 0 ) + { + sHiddenValue = hInput.options[ hInput.selectedIndex ].value + sValue = hInput.options[ hInput.selectedIndex ].text + } + } - //this is the case when the control is a transformed select or the list supplied is of the type - key,value not only values - if( hForm ) { - var hHiddenInput = document.createElement( 'INPUT' ) - hHiddenInput.id = cAutocomplete.CS_HIDDEN_INPUT_PREFIX + this.sInputId - hHiddenInput.type = 'hidden' - hForm.appendChild( hHiddenInput ) + //this is the case when the control is a transformed select or the list supplied is of the type - key,value not only values + if( hForm ) + { + var hHiddenInput = document.createElement( 'INPUT' ) + hHiddenInput.id = cAutocomplete.CS_HIDDEN_INPUT_PREFIX + this.sInputId + hHiddenInput.type = 'hidden' + hForm.appendChild( hHiddenInput ) - if( this.bAssociative ) { - hHiddenInput.name = sInputName - hInput.name = cAutocomplete.CS_INPUT_PREFIX + sInputName - } - else { - hHiddenInput.name = cAutocomplete.CS_INPUT_PREFIX + sInputName - } + if( this.bAssociative ) + { + hHiddenInput.name = sInputName + hInput.name = cAutocomplete.CS_INPUT_PREFIX + sInputName + } + else + { + hHiddenInput.name = cAutocomplete.CS_INPUT_PREFIX + sInputName + } - hHiddenInput.value = sHiddenValue - this.sHiddenInputId = hHiddenInput.id - } + hHiddenInput.value = sHiddenValue + this.sHiddenInputId = hHiddenInput.id + } - if( bHasButton ) { - this.bHasButton = true + if( bHasButton ) + { + this.bHasButton = true - var hInputContainer = document.createElement( 'DIV' ) - hInputContainer.className = 'acinputContainer' - hInputContainer.style.width = nWidth + var hInputContainer = document.createElement( 'DIV' ) + hInputContainer.className = 'acinputContainer' + hInputContainer.style.width = nWidth - var hInputButton = document.createElement( 'INPUT' ) - hInputButton.id = cAutocomplete.CS_BUTTON_PREFIX + this.sInputId - hInputButton.type = 'button' - hInputButton.className = 'button' - hInputButton.tabIndex = hInput.tabIndex + 1 - hInputButton.hAutocomplete = this + var hInputButton = document.createElement( 'INPUT' ) + hInputButton.id = cAutocomplete.CS_BUTTON_PREFIX + this.sInputId + hInputButton.type = 'button' + hInputButton.className = 'button' + hInputButton.tabIndex = hInput.tabIndex + 1 + hInputButton.hAutocomplete = this - var hNewInput = document.createElement( 'INPUT' ) - if( this.bAssociative ) { - hNewInput.name = cAutocomplete.CS_INPUT_PREFIX + sInputName - } - else { - hNewInput.name = sInputName - } + var hNewInput = document.createElement( 'INPUT' ) + if( this.bAssociative ) + { + hNewInput.name = cAutocomplete.CS_INPUT_PREFIX + sInputName + } + else + { + hNewInput.name = sInputName + } - hNewInput.type = 'text' - hNewInput.value = sValue - hNewInput.style.width = nWidth-22 - hNewInput.className = cAutocomplete.CS_INPUT_CLASSNAME - hNewInput.tabIndex = hInput.tabIndex - hNewInput.hAutocomplete = this + hNewInput.type = 'text' + hNewInput.value = sValue + hNewInput.style.width = nWidth-22 + hNewInput.className = cAutocomplete.CS_INPUT_CLASSNAME + hNewInput.tabIndex = hInput.tabIndex + hNewInput.hAutocomplete = this - hInputContainer.appendChild( hNewInput ) - hInputContainer.appendChild( hInputButton ) + hInputContainer.appendChild( hNewInput ) + hInputContainer.appendChild( hInputButton ) - hInput.parentNode.replaceChild( hInputContainer, hInput ) + hInput.parentNode.replaceChild( hInputContainer, hInput ) - hNewInput.id = this.sInputId - hInput = hNewInput - } + hNewInput.id = this.sInputId + hInput = hNewInput + } - if( hInput.attachEvent ) { - hInput.attachEvent( 'onkeyup', cAutocomplete.onInputKeyUp ) - hInput.attachEvent( 'onkeyup', cAutocomplete.saveCaretPosition ) - hInput.attachEvent( 'onkeydown', cAutocomplete.onInputKeyDown ) - hInput.attachEvent( 'onblur', cAutocomplete.onInputBlur ) - hInput.attachEvent( 'onfocus', cAutocomplete.onInputFocus ) + if( hInput.attachEvent ) + { + hInput.attachEvent( 'onkeyup', cAutocomplete.onInputKeyUp ) + hInput.attachEvent( 'onkeyup', cAutocomplete.saveCaretPosition ) + hInput.attachEvent( 'onkeydown', cAutocomplete.onInputKeyDown ) + hInput.attachEvent( 'onblur', cAutocomplete.onInputBlur ) + hInput.attachEvent( 'onfocus', cAutocomplete.onInputFocus ) - if( hInputButton ) { - hInputButton.attachEvent( 'onclick', cAutocomplete.onButtonClick ) - } - } - else if( hInput.addEventListener ) { - hInput.addEventListener( 'keyup', cAutocomplete.onInputKeyUp, false ) - hInput.addEventListener( 'keyup', cAutocomplete.saveCaretPosition, false ) - hInput.addEventListener( 'keydown', cAutocomplete.onInputKeyDown, false ) - hInput.addEventListener( 'keypress', cAutocomplete.onInputKeyPress, false ) - hInput.addEventListener( 'blur', cAutocomplete.onInputBlur, false ) - hInput.addEventListener( 'focus', cAutocomplete.onInputFocus, false ) + if( hInputButton ) + { + hInputButton.attachEvent( 'onclick', cAutocomplete.onButtonClick ) + } + } + else if( hInput.addEventListener ) + { + hInput.addEventListener( 'keyup', cAutocomplete.onInputKeyUp, false ) + hInput.addEventListener( 'keyup', cAutocomplete.saveCaretPosition, false ) + hInput.addEventListener( 'keydown', cAutocomplete.onInputKeyDown, false ) + hInput.addEventListener( 'keypress', cAutocomplete.onInputKeyPress, false ) + hInput.addEventListener( 'blur', cAutocomplete.onInputBlur, false ) + hInput.addEventListener( 'focus', cAutocomplete.onInputFocus, false ) - if( hInputButton ) { - hInputButton.addEventListener( 'click', cAutocomplete.onButtonClick, false ) - } - } + if( hInputButton ) + { + hInputButton.addEventListener( 'click', cAutocomplete.onButtonClick, false ) + } + } - //I don't need the standard autocomplete - hInput.setAttribute( 'autocomplete', 'OFF' ) + //I don't need the standard autocomplete + hInput.setAttribute( 'autocomplete', 'OFF' ) - if( hForm ) { - if( hForm.attachEvent ) { - hForm.attachEvent( 'onsubmit', cAutocomplete.onFormSubmit ) - if (this.bDebug) { this.debug ("attachEvent added") } - } - else if( hForm.addEventListener ) { - hForm.addEventListener( 'submit', cAutocomplete.onFormSubmit, false ) - if (this.bDebug) { this.debug ("addEventListener") } - } - } + if( hForm ) + { + if( hForm.attachEvent ) + { + hForm.attachEvent( 'onsubmit', cAutocomplete.onFormSubmit ) + if (this.bDebug) { this.debug ("attachEvent added") } + } + else if( hForm.addEventListener ) + { + hForm.addEventListener( 'submit', cAutocomplete.onFormSubmit, false ) + if (this.bDebug) { this.debug ("addEventListener") } + } + } } -cAutocomplete.prototype.initListContainer = function() { - var hInput = document.getElementById( this.sInputId ) - var hContainer = document.createElement( 'DIV' ) - hContainer.className = 'autocomplete_holder' - hContainer.id = this.sListId - hContainer.style.zIndex = 10000 + cAutocomplete.nCount - hContainer.hAutocomplete = this +cAutocomplete.prototype.initListContainer = function() +{ + var hInput = document.getElementById( this.sInputId ) + var hContainer = document.createElement( 'DIV' ) + hContainer.className = 'autocomplete_holder' + hContainer.id = this.sListId + hContainer.style.zIndex = 10000 + cAutocomplete.nCount + hContainer.hAutocomplete = this - var hFirstBorder = document.createElement( 'DIV' ) - hFirstBorder.className = 'autocomplete_firstborder' - var hSecondBorder = document.createElement( 'DIV' ) - hSecondBorder.className = 'autocomplete_secondborder' + var hFirstBorder = document.createElement( 'DIV' ) + hFirstBorder.className = 'autocomplete_firstborder' + var hSecondBorder = document.createElement( 'DIV' ) + hSecondBorder.className = 'autocomplete_secondborder' - var hList = document.createElement( 'UL' ) - hList.className = 'autocomplete' + var hList = document.createElement( 'UL' ) + hList.className = 'autocomplete' - hSecondBorder.appendChild( hList ) - hFirstBorder.appendChild( hSecondBorder ) - hContainer.appendChild( hFirstBorder ) - document.body.appendChild( hContainer ) + hSecondBorder.appendChild( hList ) + hFirstBorder.appendChild( hSecondBorder ) + hContainer.appendChild( hFirstBorder ) + document.body.appendChild( hContainer ) - if( hContainer.attachEvent ) { - hContainer.attachEvent( 'onblur', cAutocomplete.onListBlur ) - hContainer.attachEvent( 'onfocus', cAutocomplete.onListFocus ) - } - else if( hInput.addEventListener ) { - hContainer.addEventListener( 'blur', cAutocomplete.onListBlur, false ) - hContainer.addEventListener( 'focus', cAutocomplete.onListFocus, false ) - } + if( hContainer.attachEvent ) + { + hContainer.attachEvent( 'onblur', cAutocomplete.onListBlur ) + hContainer.attachEvent( 'onfocus', cAutocomplete.onListFocus ) + } + else if( hInput.addEventListener ) + { + hContainer.addEventListener( 'blur', cAutocomplete.onListBlur, false ) + hContainer.addEventListener( 'focus', cAutocomplete.onListFocus, false ) + } - if( hContainer.attachEvent ) { - hContainer.attachEvent( 'onclick', cAutocomplete.onItemClick ) - } - else if( hContainer.addEventListener ) { - hContainer.addEventListener( 'click', cAutocomplete.onItemClick, false ) - } + + if( hContainer.attachEvent ) + { + hContainer.attachEvent( 'onclick', cAutocomplete.onItemClick ) + } + else if( hContainer.addEventListener ) + { + hContainer.addEventListener( 'click', cAutocomplete.onItemClick, false ) + } } -cAutocomplete.prototype.createList = function() { - var hInput = document.getElementById( this.sInputId ) - var hContainer = document.getElementById( this.sListId ) - var hList = hContainer.getElementsByTagName( 'UL' )[0] - if( hList ) { - hList = hList.parentNode.removeChild( hList ) - while( hList.hasChildNodes() ) { - hList.removeChild( hList.childNodes[ 0 ] ) - } - } +cAutocomplete.prototype.createList = function() +{ + var hInput = document.getElementById( this.sInputId ) + var hContainer = document.getElementById( this.sListId ) + var hList = hContainer.getElementsByTagName( 'UL' )[0] + if( hList ) + { + hList = hList.parentNode.removeChild( hList ) + while( hList.hasChildNodes() ) + { + hList.removeChild( hList.childNodes[ 0 ] ) + } + } - var hListItem = null - var hListItemLink = null - var hArrKey = null - var sArrEl = null + var hListItem = null + var hListItemLink = null + var hArrKey = null + var sArrEl = null - var hArr = this.aData - var nI = 0 - var sRealText - for( hArrKey in hArr ) { - sArrEl = hArr[ hArrKey ] - hListItem = document.createElement( 'LI' ) - hListItemLink = document.createElement( 'A' ) - hListItemLink.setAttribute( 'itemvalue', hArrKey ) + var hArr = this.aData + var nI = 0 + var sRealText + for( hArrKey in hArr ) + { + sArrEl = hArr[ hArrKey ] + hListItem = document.createElement( 'LI' ) + hListItemLink = document.createElement( 'A' ) + hListItemLink.setAttribute( 'itemvalue', hArrKey ) - /* so you can attach data to the element */ - /* it's a hack but seems to work */ - var sArrData = sArrEl.split( cAutocomplete.CS_ARRAY_SEPARATOR ) - if( sArrData.length > 1 ) { - this.aData[ hArrKey ] = sArrData[ 0 ] - hListItemLink.setAttribute( 'itemdata', sArrEl.substring( sArrEl.indexOf( cAutocomplete.CS_ARRAY_SEPARATOR ) + 1 ) ) - sRealText = sArrData[ 0 ] - } - else { - sRealText = sArrEl - } - /* end of attach data to the element */ + /* so you can attach data to the element */ + /* it's a hack but seems to work */ + var sArrData = sArrEl.split( cAutocomplete.CS_ARRAY_SEPARATOR ) + if( sArrData.length > 1 ) + { + this.aData[ hArrKey ] = sArrData[ 0 ] + hListItemLink.setAttribute( 'itemdata', sArrEl.substring( sArrEl.indexOf( cAutocomplete.CS_ARRAY_SEPARATOR ) + 1 ) ) + sRealText = sArrData[ 0 ] + } + else + { + sRealText = sArrEl + } + /* end of attach data to the element */ - hListItemLink.href = '#' - hListItemLink.appendChild( document.createTextNode( sRealText ) ) - hListItemLink.realText = sRealText - if( nI == this.nSelectedItemIdx ) { - this.hActiveSelection = hListItemLink - this.hActiveSelection.className = 'selected' - } - hListItem.appendChild( hListItemLink ) - hList.appendChild( hListItem ) - this.aSearchData[ nI++ ] = sRealText.toLowerCase() - } - var hSecondBorder = hContainer.firstChild.firstChild - hSecondBorder.appendChild( hList ) - this.bListUpdated = false + hListItemLink.href = '#' + hListItemLink.appendChild( document.createTextNode( sRealText ) ) + hListItemLink.realText = sRealText + if( nI == this.nSelectedItemIdx ) + { + this.hActiveSelection = hListItemLink + this.hActiveSelection.className = 'selected' + } + hListItem.appendChild( hListItemLink ) + hList.appendChild( hListItem ) + this.aSearchData[ nI++ ] = sRealText.toLowerCase() + } + var hSecondBorder = hContainer.firstChild.firstChild + hSecondBorder.appendChild( hList ) + this.bListUpdated = false } /* list array functions */ -cAutocomplete.prototype.initListArray = function() { - var hInput = document.getElementById( this.sInputId ) - var hArr = null +cAutocomplete.prototype.initListArray = function() +{ + var hInput = document.getElementById( this.sInputId ) + var hArr = null - if( hInput.type.toLowerCase() == 'select-one' ) { - hArr = new Object() - for( var nI = 0; nI < hInput.options.length; nI++ ) { - hArrKey = hInput.options.item( nI ).value - sArrEl = hInput.options.item( nI ).text - hArr[ hArrKey ] = sArrEl - if( hInput.options.item( nI ).selected ) { - this.nSelectedItemIdx = nI - } - } - } - else { - var sAA = hInput.getAttribute( 'autocomplete_list' ) - var sAAS = hInput.getAttribute( 'autocomplete_list_sort' ) + if( hInput.type.toLowerCase() == 'select-one' ) + { + hArr = new Object() + for( var nI = 0; nI < hInput.options.length; nI++ ) + { + hArrKey = hInput.options.item( nI ).value + sArrEl = hInput.options.item( nI ).text + hArr[ hArrKey ] = sArrEl + if( hInput.options.item( nI ).selected ) + { + this.nSelectedItemIdx = nI + } + } + } + else + { + var sAA = hInput.getAttribute( 'autocomplete_list' ) + var sAAS = hInput.getAttribute( 'autocomplete_list_sort' ) - var sArrayType = this.getListArrayType() + var sArrayType = this.getListArrayType() - switch( sArrayType ) { - case 'array' : - hArr = eval( sAA.substring( 6 ) ) - break + switch( sArrayType ) + { + case 'array' : + hArr = eval( sAA.substring( 6 ) ) + break - case 'list' : - hArr = new Array() - var hTmpArray = sAA.substring( 5 ).split( '|' ) - var aValueArr - for( hKey in hTmpArray ) { - aValueArr = hTmpArray[ hKey ].split( cAutocomplete.CS_ARRAY_SEPARATOR ) - if( aValueArr.length == 1 ) { - hArr[ hKey ] = hTmpArray[ hKey ] - this.bAssociative = false - } - else { - hArr[ aValueArr[ 0 ] ] = aValueArr[ 1 ] - } + case 'list' : + hArr = new Array() + var hTmpArray = sAA.substring( 5 ).split( '|' ) + var aValueArr + for( hKey in hTmpArray ) + { + aValueArr = hTmpArray[ hKey ].split( cAutocomplete.CS_ARRAY_SEPARATOR ) + if( aValueArr.length == 1 ) + { + hArr[ hKey ] = hTmpArray[ hKey ] + this.bAssociative = false + } + else + { + hArr[ aValueArr[ 0 ] ] = aValueArr[ 1 ] + } + } + break + } + if( sAAS != null && eval( sAAS ) ) + { + this.bSorted = true + this.aData = hArr.sort() + hArr = hArr.sort() + } } - break - } - if( sAAS != null && eval( sAAS ) ) { - this.bSorted = true - this.aData = hArr.sort() - hArr = hArr.sort() - } - } - this.setArray( hArr ) + this.setArray( hArr ) } -cAutocomplete.prototype.setArray = function( sArray ) { - if( typeof sArray == 'string' ) { - this.aData = eval( sArray ) - } - else { - this.aData = sArray - } - this.bListUpdated = true +cAutocomplete.prototype.setArray = function( sArray ) +{ + if( typeof sArray == 'string' ) + { + this.aData = eval( sArray ) + } + else + { + this.aData = sArray + } + this.bListUpdated = true } //use this function to change the list of autocomplete values to a new one //supply as an argument the name as a literal of an JS array object //well things changed - you can supply an actual array too -cAutocomplete.prototype.setListArray = function( sArray ) { - this.setArray( sArray ) - this.updateAndShowList() +cAutocomplete.prototype.setListArray = function( sArray ) +{ + this.setArray( sArray ) + this.updateAndShowList() } -cAutocomplete.prototype.getListArrayType = function() { - var hInput = document.getElementById( this.sInputId ) - var sAA = hInput.getAttribute( 'autocomplete_list' ) - if( sAA != null && sAA.length > 0 ) { - if( sAA.indexOf( 'array:' ) >= 0 ) { - return 'array' - } - else if( sAA.indexOf( 'list:' ) >= 0 ) { - return 'list' - } - else if( sAA.indexOf( 'url:' ) >= 0 ) { - return 'url' - } - else if( sAA.indexOf( 'xmlrpc:' ) >= 0 ) { - return 'xmlrpc' - } - } +cAutocomplete.prototype.getListArrayType = function() +{ + var hInput = document.getElementById( this.sInputId ) + var sAA = hInput.getAttribute( 'autocomplete_list' ) + if( sAA != null && sAA.length > 0 ) + { + if( sAA.indexOf( 'array:' ) >= 0 ) + { + return 'array' + } + else if( sAA.indexOf( 'list:' ) >= 0 ) + { + return 'list' + } + else if( sAA.indexOf( 'url:' ) >= 0 ) + { + return 'url' + } + else if( sAA.indexOf( 'xmlrpc:' ) >= 0 ) + { + return 'xmlrpc' + } + } } -cAutocomplete.prototype.getListURL = function() { - var hInput = document.getElementById( this.sInputId ) - var sAA = hInput.getAttribute( 'autocomplete_list' ) - if( sAA != null && sAA.length > 0 ) { - if( sAA.indexOf( 'url:' ) >= 0 ) { - return sAA.substring( 4 ) - } - if( sAA.indexOf( 'xmlrpc:' ) >= 0 ) { - return sAA.substring( 7 ) - } - } +cAutocomplete.prototype.getListURL = function() +{ + var hInput = document.getElementById( this.sInputId ) + var sAA = hInput.getAttribute( 'autocomplete_list' ) + if( sAA != null && sAA.length > 0 ) + { + if( sAA.indexOf( 'url:' ) >= 0 ) + { + return sAA.substring( 4 ) + } + if( sAA.indexOf( 'xmlrpc:' ) >= 0 ) + { + return sAA.substring( 7 ) + } + } } -cAutocomplete.prototype.setListURL = function( sURL ) { - this.sListURL = sURL; +cAutocomplete.prototype.setListURL = function( sURL ) +{ + this.sListURL = sURL; } -cAutocomplete.prototype.onXmlHttpLoad = function( ) { - if( this.hXMLHttp.readyState == 4 ) { - var hError = this.hXMLHttp.parseError - if( hError && hError.errorCode != 0 ) { - alert( hError.reason ) - } - else { - this.afterRemoteLoad() - } - } +cAutocomplete.prototype.onXmlHttpLoad = function( ) +{ + if( this.hXMLHttp.readyState == 4 ) + { + var hError = this.hXMLHttp.parseError + if( hError && hError.errorCode != 0 ) + { + alert( hError.reason ) + } + else + { + this.afterRemoteLoad() + } + } } -cAutocomplete.prototype.onXMLRPCHttpLoad = function( ) { - if( this.hXMLHttp.readyState == 4 ) { - var hError = this.hXMLHttp.parseError - if( hError && hError.errorCode != 0 ) { - alert( hError.reason ) - } - else { - this.afterRemoteLoadXMLRPC() - } - } +cAutocomplete.prototype.onXMLRPCHttpLoad = function( ) +{ + if( this.hXMLHttp.readyState == 4 ) + { + var hError = this.hXMLHttp.parseError + if( hError && hError.errorCode != 0 ) + { + alert( hError.reason ) + } + else + { + this.afterRemoteLoadXMLRPC() + } + } } -cAutocomplete.prototype.loadXMLRPCListArray = function() { - // encoding: "xmlrpc:wiki.titleSearch [S] 4" - // or "xmlrpc:http://localhost/wiki/?wiki.titleSearch [S] 4" - // encode the methodname as optional query_arg and the args space seperated - var sURL = this.sListURL - var aMethodArgs = sURL.split( ' ' ) - var sMethodName = aMethodArgs[ 0 ] - var sStartWith = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) - sStartWith = sStartWith.replace( /^\s/, '' ) - sStartWith = sStartWith.replace( /\s$/, '' ) +cAutocomplete.prototype.loadXMLRPCListArray = function() +{ + // encoding: "xmlrpc:wiki.titleSearch [S] 4" + // or "xmlrpc:http://localhost/wiki/?wiki.titleSearch [S] 4" + // encode the methodname as optional query_arg and the args space seperated + var sURL = this.sListURL + var xmlrpc_url = data_path + '/RPC2.php' + var aMethodArgs = sURL.split( ' ' ) + var sMethodName = aMethodArgs[ 0 ] + var sStartWith = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) + sStartWith = sStartWith.replace( /^\s/, '' ) + sStartWith = sStartWith.replace( /\s$/, '' ) - if( sMethodName.indexOf( '?' ) > 0 ) { - sMethodName = sMethodName.replace( '/^.+\?/', '' ) - sURL = sURL.replace( '/\?.+$/', '' ) - } - else { - sURL = xmlrpc_url - } + if( sMethodName.indexOf( '?' ) > 0 ) + { + sMethodName = sMethodName.replace( '/^.+\?/', '' ) + sURL = sURL.replace( '/\?.+$/', '' ) + } + else + { + sURL = xmlrpc_url + } - if (sMethodName.length < 1) { - var hInput = document.getElementById( this.sInputId ) - hInput.value = this.sActiveValue - return - } + if (sMethodName.length < 1) + { + var hInput = document.getElementById( this.sInputId ) + hInput.value = this.sActiveValue + return + } - // Construct the xmlrpc request. - // Which charset to send? for sure we get back utf-8 - var sRequest = '<?xml version=\'1.0\' encoding="utf-8" ?>\n' - sRequest += '<methodCall><methodName>'+sMethodName+'</methodName>\n' - if (aMethodArgs.length <= 1) { // the first arg is the name - sRequest += '<params/>\n' - } - else { - sRequest += '<params>\n' - for( var nI = 1; nI < aMethodArgs.length; nI++ ) { - var sArg = aMethodArgs[ nI ]; - //this.debug('sMethodName: "'+sMethodName+'" sArg['+nI+']: "'+sArg+'"') - if( sArg.indexOf( '[S]' ) >= 0 ) { - //this.debug('sArg['+nI+']: "'+sArg+'" sStartWith: "'+sStartWith+'"') - sArg = sArg.replace( '[S]', sStartWith ) - } - // We could parse a prepended "(int)" cast. - // Can only do string args so far - sRequest += '<param><value><string>' - sRequest += sArg - sRequest += '</string></value></param>\n' - } - sRequest += '</params>\n' - } - sRequest += '</methodCall>' - if (this.bDebug) { - this.debug('url: "'+sURL+'" sRequest: "'+sRequest.substring(20)+'"') - /*sURL += '?start_debug=1'*/ - } - this.hXMLHttp.open( 'POST', sURL, true ) - var hAC = this - this.hXMLHttp.onreadystatechange = function() { hAC.onXMLRPCHttpLoad() } - /*this.hXMLHttp.onreadystatechange = new Function( 'var sAC = "'+this.sObjName+'"; cAutocomplete.onXMLRPCHttpLoad( eval( sAC ) )' )*/ - this.hXMLHttp.send( sRequest ) + // Construct the xmlrpc request. + // Which charset to send? for sure we get back utf-8 + var sRequest = '<?xml version=\'1.0\' encoding="utf-8" ?>\n' + sRequest += '<methodCall><methodName>'+sMethodName+'</methodName>\n' + if (aMethodArgs.length <= 1) // the first arg is the name + { + sRequest += '<params/>\n' + } + else + { + sRequest += '<params>\n' + for( var nI = 1; nI < aMethodArgs.length; nI++ ) + { + var sArg = aMethodArgs[ nI ]; + //this.debug('sMethodName: "'+sMethodName+'" sArg['+nI+']: "'+sArg+'"') + if( sArg.indexOf( '[S]' ) >= 0 ) + { + //this.debug('sArg['+nI+']: "'+sArg+'" sStartWith: "'+sStartWith+'"') + sArg = sArg.replace( '[S]', sStartWith ) + } + // We could parse a prepended "(int)" cast. + // Can only do string args so far + sRequest += '<param><value><string>' + sRequest += sArg + sRequest += '</string></value></param>\n' + } + sRequest += '</params>\n' + } + sRequest += '</methodCall>' + if (this.bDebug) { + this.debug('url: "'+sURL+'" sRequest: "'+sRequest.substring(20)+'"') + /*sURL += '?start_debug=1'*/ + } + this.hXMLHttp.open( 'POST', sURL, true ) + var hAC = this + this.hXMLHttp.onreadystatechange = function() { hAC.onXMLRPCHttpLoad() } + /*this.hXMLHttp.onreadystatechange = new Function( 'var sAC = "'+this.sObjName+'"; cAutocomplete.onXMLRPCHttpLoad( eval( sAC ) )' )*/ + this.hXMLHttp.send( sRequest ) } -cAutocomplete.prototype.loadListArray = function() { - var sURL = this.sListURL - var sStartWith = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) - sStartWith = sStartWith.replace( /^\s/, '' ) - sStartWith = sStartWith.replace( /\s$/, '' ) - if( sURL.indexOf( '[S]' ) >= 0 ) { - sURL = sURL.replace( '[S]', sStartWith ) - } - else { - sURL += this.sActiveValue - } - this.hXMLHttp.open( 'GET', sURL, true ) +cAutocomplete.prototype.loadListArray = function() +{ + var sURL = this.sListURL + var sStartWith = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) + sStartWith = sStartWith.replace( /^\s/, '' ) + sStartWith = sStartWith.replace( /\s$/, '' ) + if( sURL.indexOf( '[S]' ) >= 0 ) + { + sURL = sURL.replace( '[S]', sStartWith ) + } + else + { + sURL += this.sActiveValue + } + this.hXMLHttp.open( 'GET', sURL, true ) - var hAC = this - this.hXMLHttp.onreadystatechange = function() { hAC.onXmlHttpLoad() } - this.hXMLHttp.send( null ) + var hAC = this + this.hXMLHttp.onreadystatechange = function() { hAC.onXmlHttpLoad() } + this.hXMLHttp.send( null ) } -cAutocomplete.prototype.afterRemoteLoad = function() { - var hInput = document.getElementById( this.sInputId ) +cAutocomplete.prototype.afterRemoteLoad = function() +{ + var hInput = document.getElementById( this.sInputId ) - var hArr = new Array() - var hTmpArray = this.hXMLHttp.responseText.split( '|' ) - var aValueArr - for( hKey in hTmpArray ) { - aValueArr = hTmpArray[ hKey ].split( cAutocomplete.CS_ARRAY_SEPARATOR ) - if( aValueArr.length == 1 ) { - hArr[ hKey ] = hTmpArray[ hKey ] - } - else { - hArr[ aValueArr[ 0 ] ] = hTmpArray[ hKey ].substr( hTmpArray[ hKey ].indexOf( cAutocomplete.CS_ARRAY_SEPARATOR ) + 1 ) - } - } + var hArr = new Array() + var hTmpArray = this.hXMLHttp.responseText.split( '|' ) + var aValueArr + for( hKey in hTmpArray ) + { + aValueArr = hTmpArray[ hKey ].split( cAutocomplete.CS_ARRAY_SEPARATOR ) + if( aValueArr.length == 1 ) + { + hArr[ hKey ] = hTmpArray[ hKey ] + } + else + { + hArr[ aValueArr[ 0 ] ] = hTmpArray[ hKey ].substr( hTmpArray[ hKey ].indexOf( cAutocomplete.CS_ARRAY_SEPARATOR ) + 1 ) + } + } - hInput.className = '' - hInput.readonly = false - hInput.value = this.sActiveValue - this.setListArray( hArr ) + hInput.className = '' + hInput.readonly = false + hInput.value = this.sActiveValue + this.setListArray( hArr ) } -cAutocomplete.prototype.afterRemoteLoadXMLRPC = function() { - var hInput = document.getElementById( this.sInputId ) +cAutocomplete.prototype.afterRemoteLoadXMLRPC = function() +{ + var hInput = document.getElementById( this.sInputId ) - var hArr = new Array() - sResult = this.hXMLHttp.responseText - if ( this.bDebug ) { - this.debug( "response: "+sResult.substring(70,190) ) - } - sResult.replace('\n',''); - sResult.replace('\r',''); - var hKey = 0 - var i = sResult.indexOf('<string>') - while (i >= 0) { - var j - sResult = sResult.substring(i+8) - j = sResult.indexOf('</string>') - hArr[ hKey ] = sResult.substring(0, j) - // TODO: convert it from utf-8 to result charset and encoding - //this.debug( 'i:'+i+' j:'+j+' "'+hArr[ hKey ]+'"' ) - /*if( hArr[ hKey ] == hArr[ hKey-1 ] ) - return*/ - hKey += 1 - sResult = sResult.substring(j+9) - i = sResult.indexOf('<string>') - } + var hArr = new Array() + sResult = this.hXMLHttp.responseText + if ( this.bDebug ) { + this.debug( "response: "+sResult.substring(70,190) ) + } + sResult.replace('\n',''); + sResult.replace('\r',''); + var hKey = 0 + var i = sResult.indexOf('<string>') + while (i >= 0) { + var j + sResult = sResult.substring(i+8) + j = sResult.indexOf('</string>') + hArr[ hKey ] = sResult.substring(0, j) + // TODO: convert it from utf-8 to result charset and encoding + //this.debug( 'i:'+i+' j:'+j+' "'+hArr[ hKey ]+'"' ) + /*if( hArr[ hKey ] == hArr[ hKey-1 ] ) + return*/ + hKey += 1 + sResult = sResult.substring(j+9) + i = sResult.indexOf('<string>') + } - hInput.className = '' - hInput.readonly = false - hInput.value = this.sActiveValue - this.setListArray( hArr ) + hInput.className = '' + hInput.readonly = false + hInput.value = this.sActiveValue + this.setListArray( hArr ) } /**/ -cAutocomplete.prototype.prepareList = function( bFullList ) { - var hInput = document.getElementById( this.sInputId ) - this.sActiveValue = hInput.value +cAutocomplete.prototype.prepareList = function( bFullList ) +{ + var hInput = document.getElementById( this.sInputId ) + this.sActiveValue = hInput.value - // Check if this was invoked by a key that did not change the value - var sST = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) - var sLST = this.getStringForAutocompletion( this.sLastActiveValue, this.nInsertPoint ) + // Check if this was invoked by a key that did not change the value + var sST = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) + var sLST = this.getStringForAutocompletion( this.sLastActiveValue, this.nInsertPoint ) - if( sLST != sST || bFullList || !this.bListDisplayed || this.bMatchSubstring ) { - if( this.bRemoteList ) { - hInput.className = 'search' - //hInput.readonly = true - // TODO: print please wait somewhere else - // hInput.value = 'please wait...' - // hInput.value = this.sListURL - this.bXMLRPC ? this.loadXMLRPCListArray() : this.loadListArray() - return - } - this.updateAndShowList( bFullList ) - } + if( sLST != sST || bFullList || !this.bListDisplayed || this.bMatchSubstring ) + { + if( this.bRemoteList ) + { + hInput.className = 'search' + //hInput.readonly = true + // TODO: print please wait somewhere else + // hInput.value = 'please wait...' + // hInput.value = this.sListURL + this.bXMLRPC ? this.loadXMLRPCListArray() : this.loadListArray() + return + } + this.updateAndShowList( bFullList ) + } } -cAutocomplete.prototype.updateAndShowList = function( bFullList ) { - var hContainer = document.getElementById( this.sListId ) - var hList = hContainer.getElementsByTagName( 'UL' )[ 0 ] - var hInput = document.getElementById( this.sInputId ) +cAutocomplete.prototype.updateAndShowList = function( bFullList ) +{ + var hContainer = document.getElementById( this.sListId ) + var hList = hContainer.getElementsByTagName( 'UL' )[ 0 ] + var hInput = document.getElementById( this.sInputId ) - if( this.bListUpdated ) { - this.createList() - } + if( this.bListUpdated ) + { + this.createList() + } - //stupid hack just for speed - var sST = this.bMatchSubstring ? this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) : this.sActiveValue - var sLST = this.bMatchSubstring ? this.getStringForAutocompletion( this.sLastActiveValue, this.nInsertPoint ) : this.sLastActiveValue + //stupid hack just for speed + var sST = this.bMatchSubstring ? this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) : this.sActiveValue + var sLST = this.bMatchSubstring ? this.getStringForAutocompletion( this.sLastActiveValue, this.nInsertPoint ) : this.sLastActiveValue - //nothing changed since last type - maybe only function keys were pressed - //this is the case when for example the down key was pressed - if( sST == sLST ) { - if( !this.bMatchSubstring ) { - bFullList = true - } - } - this.filterOptions( bFullList ) + //nothing changed since last type - maybe only function keys were pressed + //this is the case when for example the down key was pressed + if( sST == sLST ) + { + if( !this.bMatchSubstring ) + { + bFullList = true + } + } + this.filterOptions( bFullList ) - if( this.nItemsDisplayed == 0 ) { - if( this.bForceCorrect ) { - var aPos = this.getInsertPos( this.sActiveValue, this.nInsertPoint, '' ) - cAutocomplete.markInputRange( hInput, this.nLastMatchLength, aPos[0] ) - } - } + if( this.nItemsDisplayed == 0 ) + { + if( this.bForceCorrect ) + { + var aPos = this.getInsertPos( this.sActiveValue, this.nInsertPoint, '' ) + cAutocomplete.markInputRange( hInput, this.nLastMatchLength, aPos[0] ) + } + } - this.sLastActiveValue = this.sActiveValue + this.sLastActiveValue = this.sActiveValue - if( this.nItemsDisplayed > 0 ) { - if( !bFullList || this.bMatchSubstring ) { - this.deselectOption() - } - if( this.bAutoComplete && this.nItemsDisplayed == 1 ) { - //test if we have a full match i.e. the user typed the entire value - var sStartWith = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) - var sItemText = hList.getElementsByTagName( 'LI' )[ this.nFirstDisplayed ].getElementsByTagName( 'A' )[ 0 ].realText - if( sStartWith.toLowerCase() == sItemText.toLowerCase() ) { - this.selectOption( hList.getElementsByTagName( 'LI' )[ this.nFirstDisplayed ].getElementsByTagName( 'A' )[ 0 ] ) - this.hideOptions() - //and do not show the list - return - } - } - if( this.bAutoComplete && !bFullList ) { - this.selectOption( hList.getElementsByTagName( 'LI' )[ this.nFirstDisplayed ].getElementsByTagName( 'A' )[ 0 ] ) - } - this.showList() - } - else { - this.clearList() - } + if( this.nItemsDisplayed > 0 ) + { + if( !bFullList || this.bMatchSubstring ) + { + this.deselectOption() + } + if( this.bAutoComplete && this.nItemsDisplayed == 1 ) + { + //test if we have a full match i.e. the user typed the entire value + var sStartWith = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) + var sItemText = hList.getElementsByTagName( 'LI' )[ this.nFirstDisplayed ].getElementsByTagName( 'A' )[ 0 ].realText + if( sStartWith.toLowerCase() == sItemText.toLowerCase() ) + { + this.selectOption( hList.getElementsByTagName( 'LI' )[ this.nFirstDisplayed ].getElementsByTagName( 'A' )[ 0 ] ) + this.hideOptions() + //and do not show the list + return + } + } + if( this.bAutoComplete && !bFullList ) + { + this.selectOption( hList.getElementsByTagName( 'LI' )[ this.nFirstDisplayed ].getElementsByTagName( 'A' )[ 0 ] ) + } + this.showList() + } + else + { + this.clearList() + } } -cAutocomplete.prototype.showList = function() { - if( cAutocomplete.hListDisplayed ) { - cAutocomplete.hListDisplayed.clearList() - } - var hInput = document.getElementById( this.sInputId ) - var nTop = cDomObject.getOffsetParam( hInput, 'offsetTop' ) - var nLeft = cDomObject.getOffsetParam( hInput, 'offsetLeft' ) - var hContainer = document.getElementById( this.sListId ) +cAutocomplete.prototype.showList = function() +{ + if( cAutocomplete.hListDisplayed ) + { + cAutocomplete.hListDisplayed.clearList() + } + var hInput = document.getElementById( this.sInputId ) + var nTop = cDomObject.getOffsetParam( hInput, 'offsetTop' ) + var nLeft = cDomObject.getOffsetParam( hInput, 'offsetLeft' ) + var hContainer = document.getElementById( this.sListId ) - var hList = hContainer.getElementsByTagName( 'UL' )[ 0 ] - if( this.bHasButton ) { - hContainer.style.width = document.getElementById( this.sInputId ).parentNode.offsetWidth - } - else { - hContainer.style.width = document.getElementById( this.sInputId ).offsetWidth - } - var nNumLines = ( this.nItemsDisplayed < cAutocomplete.CN_NUMBER_OF_LINES ) ? this.nItemsDisplayed : cAutocomplete.CN_NUMBER_OF_LINES; - hList.style.height = nNumLines * cAutocomplete.CN_LINE_HEIGHT + cAutocomplete.CN_HEIGHT_FIX + 'px' + var hList = hContainer.getElementsByTagName( 'UL' )[ 0 ] + if( this.bHasButton ) + { + hContainer.style.width = document.getElementById( this.sInputId ).parentNode.offsetWidth + } + else + { + hContainer.style.width = document.getElementById( this.sInputId ).offsetWidth + } + var nNumLines = ( this.nItemsDisplayed < cAutocomplete.CN_NUMBER_OF_LINES ) ? this.nItemsDisplayed : cAutocomplete.CN_NUMBER_OF_LINES; + hList.style.height = nNumLines * cAutocomplete.CN_LINE_HEIGHT + cAutocomplete.CN_HEIGHT_FIX + 'px' - hContainer.style.top = nTop + hInput.offsetHeight + cAutocomplete.CN_OFFSET_TOP + 'px' - hContainer.style.left = nLeft + cAutocomplete.CN_OFFSET_LEFT + 'px' + hContainer.style.top = nTop + hInput.offsetHeight + cAutocomplete.CN_OFFSET_TOP + 'px' + hContainer.style.left = nLeft + cAutocomplete.CN_OFFSET_LEFT + 'px' - hContainer.style.display = 'none' - hContainer.style.visibility = 'visible' - hContainer.style.display = 'block' + hContainer.style.display = 'none' + hContainer.style.visibility = 'visible' + hContainer.style.display = 'block' - cAutocomplete.hListDisplayed = this - this.bListDisplayed = true + cAutocomplete.hListDisplayed = this + this.bListDisplayed = true } -cAutocomplete.prototype.binarySearch = function( sFilter ) { - var nLow = 0 - var nHigh = this.aSearchData.length - 1 - var nMid - var nTry, nLastTry - var sData - var nLen = sFilter.length +cAutocomplete.prototype.binarySearch = function( sFilter ) +{ + var nLow = 0 + var nHigh = this.aSearchData.length - 1 + var nMid + var nTry, nLastTry + var sData + var nLen = sFilter.length - var lastTry + var lastTry - while ( nLow <= nHigh ) { - nMid = ( nLow + nHigh ) / 2 - nTry = ( nMid < 1 ) ? 0 : parseInt( nMid ) + while ( nLow <= nHigh ) + { + nMid = ( nLow + nHigh ) / 2 + nTry = ( nMid < 1 ) ? 0 : parseInt( nMid ) - sData = this.aSearchData[ nTry ].substr( 0, nLen ) + sData = this.aSearchData[ nTry ].substr( 0, nLen ) - if ( sData < sFilter ) { - nLow = nTry + 1 - continue - } - if ( sData > sFilter ) { - nHigh = nTry - 1 - continue - } - if ( sData == sFilter ) { - nHigh = nTry - 1 - nLastTry = nTry - continue - } - return nTry - } + if ( sData < sFilter ) + { + nLow = nTry + 1 + continue + } + if ( sData > sFilter ) + { + nHigh = nTry - 1 + continue + } + if ( sData == sFilter ) + { + nHigh = nTry - 1 + nLastTry = nTry + continue + } + return nTry + } - if ( typeof ( nLastTry ) != "undefined" ) { - return nLastTry - } - else { - return null - } + if ( typeof ( nLastTry ) != "undefined" ) + { + return nLastTry + } + else + { + return null + } } -cAutocomplete.prototype.getStringForAutocompletion = function( sString, nPos ) { - if( sString == null || sString.length == 0 ) { - return '' - } - if( this.bMatchSubstring ) { - var nStartPos = sString.lastIndexOf( cAutocomplete.CS_SEPARATOR, nPos - 1 ) - nStartPos = nStartPos < 0 ? 0 : nStartPos - var nEndPos = sString.indexOf( cAutocomplete.CS_SEPARATOR, nPos ) - nEndPos = nEndPos < 0 ? sString.length : nEndPos - var sStr = sString.substr( nStartPos, nEndPos - nStartPos ) - sStr = sStr.replace( /^(\,?)(\s*)(\S*)(\s*)(\,?)$/g, '$3' ) - return sStr - } - else { - return sString - } +cAutocomplete.prototype.getStringForAutocompletion = function( sString, nPos ) +{ + if( sString == null || sString.length == 0 ) + { + return '' + } + if( this.bMatchSubstring ) + { + var nStartPos = sString.lastIndexOf( cAutocomplete.CS_SEPARATOR, nPos - 1 ) + nStartPos = nStartPos < 0 ? 0 : nStartPos + var nEndPos = sString.indexOf( cAutocomplete.CS_SEPARATOR, nPos ) + nEndPos = nEndPos < 0 ? sString.length : nEndPos + var sStr = sString.substr( nStartPos, nEndPos - nStartPos ) + sStr = sStr.replace( /^(\,?)(\s*)(\S*)(\s*)(\,?)$/g, '$3' ) + return sStr + } + else + { + return sString + } } -cAutocomplete.prototype.insertString = function( sString, nPos, sInsert ) { - if( this.bMatchSubstring ) { - var nStartPos = sString.lastIndexOf( cAutocomplete.CS_SEPARATOR, nPos - 1 ) - nStartPos = nStartPos < 0 ? 0 : nStartPos - var nEndPos = sString.indexOf( cAutocomplete.CS_SEPARATOR, nPos ) - nEndPos = nEndPos < 0 ? sString.length : nEndPos - var sStr = sString.substr( nStartPos, nEndPos - nStartPos ) - sStr = sStr.replace( /^(\,?)(\s*)(\S?[\S\s]*\S?)(\s*)(\,?)$/g, '$1$2'+sInsert+'$4$5' ) - sStr = sString.substr( 0, nStartPos ) + sStr + sString.substr( nEndPos ) - return sStr - } - else { - return sInsert - } +cAutocomplete.prototype.insertString = function( sString, nPos, sInsert ) +{ + if( this.bMatchSubstring ) + { + var nStartPos = sString.lastIndexOf( cAutocomplete.CS_SEPARATOR, nPos - 1 ) + nStartPos = nStartPos < 0 ? 0 : nStartPos + var nEndPos = sString.indexOf( cAutocomplete.CS_SEPARATOR, nPos ) + nEndPos = nEndPos < 0 ? sString.length : nEndPos + var sStr = sString.substr( nStartPos, nEndPos - nStartPos ) + sStr = sStr.replace( /^(\,?)(\s*)(\S?[\S\s]*\S?)(\s*)(\,?)$/g, '$1$2'+sInsert+'$4$5' ) + sStr = sString.substr( 0, nStartPos ) + sStr + sString.substr( nEndPos ) + return sStr + } + else + { + return sInsert + } } -cAutocomplete.prototype.getInsertPos = function( sString, nPos, sInsert ) { - nPos = nPos == null ? 0 : nPos - var nStartPos = sString.lastIndexOf( cAutocomplete.CS_SEPARATOR, nPos - 1 ) - nStartPos = nStartPos < 0 ? 0 : nStartPos - var nEndPos = sString.indexOf( cAutocomplete.CS_SEPARATOR, nPos ) - nEndPos = nEndPos < 0 ? sString.length : nEndPos - var sStr = sString.substr( nStartPos, nEndPos - nStartPos ) - sStr = sStr.replace( /^(\,?)(\s*)(\S?[\S\s]*\S?)(\s*)(\,?)$/g, '$1$2'+sInsert ) - return [ nPos, nStartPos + sStr.length ] +cAutocomplete.prototype.getInsertPos = function( sString, nPos, sInsert ) +{ + nPos = nPos == null ? 0 : nPos + var nStartPos = sString.lastIndexOf( cAutocomplete.CS_SEPARATOR, nPos - 1 ) + nStartPos = nStartPos < 0 ? 0 : nStartPos + var nEndPos = sString.indexOf( cAutocomplete.CS_SEPARATOR, nPos ) + nEndPos = nEndPos < 0 ? sString.length : nEndPos + var sStr = sString.substr( nStartPos, nEndPos - nStartPos ) + sStr = sStr.replace( /^(\,?)(\s*)(\S?[\S\s]*\S?)(\s*)(\,?)$/g, '$1$2'+sInsert ) + return [ nPos, nStartPos + sStr.length ] } -cAutocomplete.prototype.filterOptions = function( bShowAll ) { - if( this.hActiveSelection && !bShowAll ) { - this.hActiveSelection.className = '' - } - if( typeof bShowAll == 'undefined' ) { - bShowAll = false - } +cAutocomplete.prototype.filterOptions = function( bShowAll ) +{ + if( this.hActiveSelection && !bShowAll ) + { + this.hActiveSelection.className = '' + } + if( typeof bShowAll == 'undefined' ) + { + bShowAll = false + } - var hInput = document.getElementById( this.sInputId ) + var hInput = document.getElementById( this.sInputId ) - var sStartWith = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) - if( bShowAll ) { - sStartWith = '' - } + var sStartWith = this.getStringForAutocompletion( this.sActiveValue, this.nInsertPoint ) + if( bShowAll ) + { + sStartWith = '' + } - var hContainer = document.getElementById( this.sListId ) - var hList = hContainer.getElementsByTagName( 'UL' )[ 0 ] - var nItemsLength = hList.childNodes.length - var hLinkItem = null - var nCount = 0 + var hContainer = document.getElementById( this.sListId ) + var hList = hContainer.getElementsByTagName( 'UL' )[ 0 ] + var nItemsLength = hList.childNodes.length + var hLinkItem = null + var nCount = 0 - var hParent = hList.parentNode - var hList = hList.parentNode.removeChild( hList ) - var hTItems = hList.childNodes + var hParent = hList.parentNode + var hList = hList.parentNode.removeChild( hList ) + var hTItems = hList.childNodes - this.nItemsDisplayed = 0 + this.nItemsDisplayed = 0 - if( sStartWith.length == 0 ) { - for( var nI = 0; nI < nItemsLength; nI++ ) { - if( this.formatOptions ) { - hTItems[ nI ].childNodes[0].innerHTML = this.formatOptions( hTItems[ nI ].childNodes[0].realText, nI ) - } - hTItems[ nI ].style.display = 'block' - } + if( sStartWith.length == 0 ) + { + for( var nI = 0; nI < nItemsLength; nI++ ) + { + if( this.formatOptions ) + { + hTItems[ nI ].childNodes[0].innerHTML = this.formatOptions( hTItems[ nI ].childNodes[0].realText, nI ) + } + hTItems[ nI ].style.display = 'block' + } - nCount = nItemsLength + nCount = nItemsLength - if( nItemsLength > 0 ) { - this.nFirstDisplayed = 0 - this.nLastDisplayed... [truncated message content] |
From: <ru...@us...> - 2009-09-01 11:38:14
|
Revision: 7096 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7096&view=rev Author: rurban Date: 2009-09-01 11:38:07 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Support xmlrpc start_debug (Zend Debugger): enable js debugging then Modified Paths: -------------- trunk/themes/default/moacdropdown/js/acdropdown.js trunk/themes/default/templates/search.tmpl Modified: trunk/themes/default/moacdropdown/js/acdropdown.js =================================================================== --- trunk/themes/default/moacdropdown/js/acdropdown.js 2009-08-31 11:28:47 UTC (rev 7095) +++ trunk/themes/default/moacdropdown/js/acdropdown.js 2009-09-01 11:38:07 UTC (rev 7096) @@ -128,8 +128,9 @@ cAutocomplete.prototype.init = function( sInputId ) { - this.bDebug = false - /*this.bDebug = true*/ + /*this.bDebug = false*/ + /*this.bDebug = true*/ + this.bDebug = true this.sInputId = sInputId this.sListId = cAutocomplete.CS_LIST_PREFIX + sInputId @@ -673,14 +674,14 @@ sStartWith = sStartWith.replace( /\s$/, '' ) if( sMethodName.indexOf( '?' ) > 0 ) - { + { sMethodName = sMethodName.replace( '/^.+\?/', '' ) sURL = sURL.replace( '/\?.+$/', '' ) - } + } else - { + { sURL = xmlrpc_url - } + } if (sMethodName.length < 1) { @@ -701,26 +702,30 @@ { sRequest += '<params>\n' for( var nI = 1; nI < aMethodArgs.length; nI++ ) - { + { var sArg = aMethodArgs[ nI ]; //this.debug('sMethodName: "'+sMethodName+'" sArg['+nI+']: "'+sArg+'"') if( sArg.indexOf( '[S]' ) >= 0 ) - { + { //this.debug('sArg['+nI+']: "'+sArg+'" sStartWith: "'+sStartWith+'"') sArg = sArg.replace( '[S]', sStartWith ) - } + } // We could parse a prepended "(int)" cast. // Can only do string args so far - sRequest += '<param><value><string>' - sRequest += sArg - sRequest += '</string></value></param>\n' - } + if (sArg == 'debug') { + this.bDebug = true; + } else { + sRequest += '<param><value><string>' + sRequest += sArg + sRequest += '</string></value></param>\n' + } + } sRequest += '</params>\n' } sRequest += '</methodCall>' if (this.bDebug) { + sURL += '?start_debug=1' this.debug('url: "'+sURL+'" sRequest: "'+sRequest.substring(20)+'"') - /*sURL += '?start_debug=1'*/ } this.hXMLHttp.open( 'POST', sURL, true ) var hAC = this @@ -1366,7 +1371,11 @@ var hContainer = document.createElement( 'DIV' ) hContainer.className = 'debug' hContainer.innerHTML = s - hInput.form.appendChild( hContainer ) + var hDiv = hInput.form.parentNode + /*if (hDiv.childNodes[1] && hDiv.childNodes[1].className == 'debug') + hDiv.insertBefore( hContainer, hDiv.childNodes[1] ) + else*/ + hDiv.appendChild( hContainer ) /*alert(s)*/ } } @@ -1448,22 +1457,22 @@ if( hInput.form ) { hInput.form.bLocked = true - if (hAC.bDebug) { hAC.debug ("onInputKeyDown form blocked") } + //if (hAC.bDebug) { hAC.debug ("onInputKeyDown form blocked") } } if ( hEvent.keyCode == 13 || hEvent.keyCode == 27 || hEvent.keyCode == 38 || hEvent.keyCode == 40 ) { if( hEvent.preventDefault ) { hEvent.preventDefault() - /* - if (hEvent.keyCode == 13) { - if (hAC.bDebug) { hAC.debug ("preventDefault: return true") } - return true - } - */ } else { if (hAC.bDebug) { hAC.debug ("no preventDefault return false") } } + if (hEvent.keyCode == 13) { + /*if (hAC.bDebug) { hAC.debug ("Enter") }*/ + hEvent.cancelBubble = true + hEvent.returnValue = true + return true + } hEvent.cancelBubble = true hEvent.returnValue = false return false @@ -1527,11 +1536,13 @@ { hEvent.preventDefault() } - /* - if (hEvent.keyCode == 13) { - return true - } - */ + if (hEvent.keyCode == 13) { + if (hAC.bDebug) { hAC.debug ("Enter KeyUp: returnValue = true") } + hEvent.cancelBubble = true + hEvent.returnValue = true + hInput.form.submit; + return true + } if (hAC.bDebug) { hAC.debug ("keyUp: hEvent.returnValue = false") } hEvent.cancelBubble = true hEvent.returnValue = false Modified: trunk/themes/default/templates/search.tmpl =================================================================== --- trunk/themes/default/templates/search.tmpl 2009-08-31 11:28:47 UTC (rev 7095) +++ trunk/themes/default/templates/search.tmpl 2009-09-01 11:38:07 UTC (rev 7096) @@ -20,7 +20,7 @@ class="dropdown" id="searchInput" title="<?=_("LiveSearch") . " [$p-f]"?>" style="width:115px;" acdropdown="true" autocomplete_complete="false" autocomplete_matchsubstring="false" - autocomplete_list="xmlrpc:wiki.titleSearch [S] 4" /> + autocomplete_list="xmlrpc:wiki.titleSearch [S] 4<?= $request->getArg("start_debug") ? " debug" : "" ?>" /> <?php } elseif (ENABLE_LIVESEARCH) { ?> type="text" id="livesearch" title="<?=_("LiveSearch") . " [$p-f]"?>" onKeypress="liveSearchStart()" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-20 07:51:46
|
Revision: 7226 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7226&view=rev Author: vargenau Date: 2009-10-20 07:51:38 +0000 (Tue, 20 Oct 2009) Log Message: ----------- Upgrade Flowplayer to 3.1.4 Added Paths: ----------- trunk/themes/default/flowplayer-3.1.4.swf trunk/themes/default/flowplayer.controls-3.1.4.swf Removed Paths: ------------- trunk/themes/default/flowplayer-3.1.3.swf trunk/themes/default/flowplayer.controls-3.1.3.swf Deleted: trunk/themes/default/flowplayer-3.1.3.swf =================================================================== (Binary files differ) Copied: trunk/themes/default/flowplayer-3.1.4.swf (from rev 7225, trunk/themes/default/flowplayer-3.1.3.swf) =================================================================== (Binary files differ) Property changes on: trunk/themes/default/flowplayer-3.1.4.swf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:mergeinfo + Deleted: trunk/themes/default/flowplayer.controls-3.1.3.swf =================================================================== (Binary files differ) Copied: trunk/themes/default/flowplayer.controls-3.1.4.swf (from rev 7225, trunk/themes/default/flowplayer.controls-3.1.3.swf) =================================================================== (Binary files differ) Property changes on: trunk/themes/default/flowplayer.controls-3.1.4.swf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2010-04-20 14:39:42
|
Revision: 7342 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7342&view=rev Author: rurban Date: 2010-04-20 14:39:33 +0000 (Tue, 20 Apr 2010) Log Message: ----------- new minified js+css Added Paths: ----------- trunk/themes/default/ASCIIsvg-min.js trunk/themes/default/IEFixes-min.css trunk/themes/default/Makefile trunk/themes/default/highlight-min.css trunk/themes/default/moacdropdown/js/modomevent3.js trunk/themes/default/phpwiki-min.css trunk/themes/default/phpwiki-modern-heavy-min.css trunk/themes/default/phpwiki-modern-min.css trunk/themes/default/phpwiki-printer-min.css trunk/themes/default/phpwiki-topbottombars-min.css trunk/themes/default/wikicommon-min.js Added: trunk/themes/default/ASCIIsvg-min.js =================================================================== --- trunk/themes/default/ASCIIsvg-min.js (rev 0) +++ trunk/themes/default/ASCIIsvg-min.js 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1 @@ +var checkIfSVGavailable=true;var notifyIfNoSVG=true;var alertIfNoSVG=false;var xunitlength=20;var yunitlength=20;var origin=[0,0];var defaultwidth=300;defaultheight=200;defaultborder=0;var border=defaultborder;var strokewidth,strokedasharray,stroke,fill;var fontstyle,fontfamily,fontsize,fontweight,fontstroke,fontfill;var markerstrokewidth="1";var markerstroke="black";var markerfill="yellow";var marker="none";var arrowfill=stroke;var dotradius=4;var ticklength=4;var axesstroke="black";var gridstroke="grey";var pointerpos=null;var coordinates=null;var above="above";var below="below";var left="left";var right="right";var aboveleft="aboveleft";var aboveright="aboveright";var belowleft="belowleft";var belowright="belowright";var cpi="\u03C0",ctheta="\u03B8";var pi=Math.PI,ln=Math.log,e=Math.E;var arcsin=Math.asin,arccos=Math.acos,arctan=Math.atan;var sec=function(f){return 1/Math.cos(f)};var csc=function(f){return 1/Math.sin(f)};var cot=function(f){return 1/Math.tan(f)};var xmin,xmax,ymin,ymax,xscl,yscl,xgrid,ygrid,xtick,ytick,initialized;var isIE=document.createElementNS==null;var picture,svgpicture,doc,width,height,a,b,c,d,i,n,p,t,x,y;var arcsec=function(f){return arccos(1/f)};var arccsc=function(f){return arcsin(1/f)};var arccot=function(f){return arctan(1/f)};var sinh=function(f){return(Math.exp(f)-Math.exp(-f))/2};var cosh=function(f){return(Math.exp(f)+Math.exp(-f))/2};var tanh=function(f){return(Math.exp(f)-Math.exp(-f))/(Math.exp(f)+Math.exp(-f))};var sech=function(f){return 1/cosh(f)};var csch=function(f){return 1/sinh(f)};var coth=function(f){return 1/tanh(f)};var arcsinh=function(f){return ln(f+Math.sqrt(f*f+1))};var arccosh=function(f){return ln(f+Math.sqrt(f*f-1))};var arctanh=function(f){return ln((1+f)/(1-f))/2};var sech=function(f){return 1/cosh(f)};var csch=function(f){return 1/sinh(f)};var coth=function(f){return 1/tanh(f)};var arcsech=function(f){return arccosh(1/f)};var arccsch=function(f){return arcsinh(1/f)};var arccoth=function(f){return arctanh(1/f)};var sign=function(f){return(f==0?0:(f<0?-1:1))};function factorial(f,h){if(h==null){h=1}for(var g=f-h;g>0;g-=h){f*=g}return(f<0?NaN:(f==0?1:f))}function C(f,g){var j=1;for(var h=0;h<g;h++){j*=(f-h)/(g-h)}return j}function chop(f,g){if(g==null){g=0}return Math.floor(f*Math.pow(10,g))/Math.pow(10,g)}function ran(g,f,h){if(h==null){h=0}return chop((f+Math.pow(10,-h)-g)*Math.random()+g,h)}function myCreateElementXHTML(f){if(isIE){return document.createElement(f)}else{return document.createElementNS("http://www.w3.org/1999/xhtml",f)}}function isSVGavailable(){var ua=navigator.userAgent;if(ua.match("AppleWebKit")){return null}if(navigator.appName.slice(0,5)=="Opera"){return null}var nd=myCreateElementXHTML("center");nd.appendChild(document.createTextNode("To view the "));var an=myCreateElementXHTML("a");an.appendChild(document.createTextNode("ASCIIsvg"));an.setAttribute("href","http://www.chapman.edu/~jipsen/asciisvg.html");nd.appendChild(an);nd.appendChild(document.createTextNode(" images use Internet Explorer 6+"));an=myCreateElementXHTML("a");an.appendChild(document.createTextNode("Adobe SVGviewer 3.02"));an.setAttribute("href","http://www.adobe.com/svg");nd.appendChild(an);nd.appendChild(document.createTextNode(" or "));an=myCreateElementXHTML("a");an.appendChild(document.createTextNode("SVG enabled Mozilla/Firefox"));an.setAttribute("href","http://www.chapman.edu/~jipsen/svg/svgenabledmozillafirefox.html");nd.appendChild(an);if(navigator.appName.slice(0,8)=="Netscape"){if(window.SVGElement){return null}else{return nd}}else{if(navigator.appName.slice(0,9)=="Microsoft"){try{var oSVG=eval("new ActiveXObject('Adobe.SVGCtl.3');");return null}catch(e){return nd}}else{return nd}}}function less(f,g){return f<g}function setText(f,h){var g=document.getElementById(h);if(g!=null){if(g.childNodes.length!=0){g.childNodes[0].nodeValue=f}else{g.appendChild(document.createTextNode(f))}}}function myCreateElementSVG(f){if(isIE){return doc.createElement(f)}else{return doc.createElementNS("http://www.w3.org/2000/svg",f)}}function getX(){return(doc.getElementById("pointerpos").getAttribute("cx")-origin[0])/xunitlength}function getY(){return(height-origin[1]-doc.getElementById("pointerpos").getAttribute("cy"))/yunitlength}function mousemove_listener(f){if(svgpicture.getAttribute("xbase")!=null){pointerpos.cx.baseVal.value=f.clientX-svgpicture.getAttribute("xbase")}if(svgpicture.getAttribute("ybase")!=null){pointerpos.cy.baseVal.value=f.clientY-svgpicture.getAttribute("ybase")}}function top_listener(f){svgpicture.setAttribute("ybase",f.clientY)}function bottom_listener(f){svgpicture.setAttribute("ybase",f.clientY-height+1)}function left_listener(f){svgpicture.setAttribute("xbase",f.clientX)}function right_listener(f){svgpicture.setAttribute("xbase",f.clientX-width+1)}function drawPictures(){var src,id,dsvg,onmov,nd,node,ht,index;var pictures=document.getElementsByTagName("textarea");for(index=0;index<pictures.length;index++){if(pictures[index].className=="ASCIIsvg"){pictures[index].style.display="none"}}pictures=document.getElementsByTagName("embed");var len=pictures.length;if(checkIfSVGavailable){nd=isSVGavailable();if(nd!=null&¬ifyIfNoSVG&&len>0){if(alertIfNoSVG){alert("To view the SVG pictures in Internet Explorer\ndownload the free Adobe SVGviewer from www.adobe.com/svg or\nuse Firefox 1.5 preview (called Deerpark)")}else{var ASbody=document.getElementsByTagName("body")[0];ASbody.insertBefore(nd,ASbody.childNodes[0])}}}if(nd==null){for(index=0;index<len;index++){xmin=null;xmax=null;ymin=null;ymax=null;xscl=null;xgrid=null;yscl=null;ygrid=null;initialized=false;picture=(isIE?pictures[index]:pictures[0]);src=picture.getAttribute("script");if(src==null){src=""}ht=picture.getAttribute("height");if(ht==null){ht=""}if(ht!=""){defaultborder=25}if(ht==""||src==""){if(document.getElementById("picture"+(index+1)+"input")==null){if(isIE&&src.indexOf("nobutton()")==-1){picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture)}node=myCreateElementXHTML("textarea");node.setAttribute("rows","10");node.setAttribute("cols","60");if(isIE){src=src.replace(/([^\r])\n/g,"$1\r").slice(1)}node.appendChild(document.createTextNode(src));if(src.indexOf("showcode()")==-1){node.style.display="none"}node.setAttribute("id","picture"+(index+1)+"input");picture.parentNode.insertBefore(node,picture);if(src.indexOf("nobutton()")==-1){picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture);node=myCreateElementXHTML("button");if(isIE){node.onclick=function(){showHideCode(this)}}else{node.setAttribute("onclick","showHideCode(this)")}node.appendChild(document.createTextNode("Show/Hide"));picture.parentNode.insertBefore(node,picture);node=myCreateElementXHTML("button");if(isIE){node.onclick=ASfn[index]}else{node.setAttribute("onclick","updatePicture("+index+")")}node.appendChild(document.createTextNode("Update"));if(src.indexOf("showCode()")==-1){node.style.display="none"}picture.parentNode.insertBefore(node,picture);picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture)}if(isIE){picture.onmousemove=ASupdateCoords[index]}else{picture.setAttribute("onmousemove","updateCoords"+index+"()")}}else{src=document.getElementById("picture"+(index+1)+"input").value}}src=src.replace(/plot\(\x20*([^\"f\[][^\n\r]+?)\,/g,'plot("$1",');src=src.replace(/plot\(\x20*([^\"f\[][^\n\r]+)\)/g,'plot("$1")');src=src.replace(/([0-9])([a-zA-Z])/g,"$1*$2");src=src.replace(/\)([\(0-9a-zA-Z])/g,")*$1");id=picture.getAttribute("id");dsvg=picture.getAttribute("src");onmov=picture.getAttribute("onmousemove");if(id==null||id==""){id="picture"+(index+1);picture.setAttribute("id",id)}try{with(Math){eval(src)}}catch(err){alert(err+"\n"+src)}if(isIE){src=src.replace(/([^\r])\n/g,"$1\r")}setText('<embed width="'+width+'" height="'+height+'" src="'+dsvg+'" '+(onmov!=null?'onmousemove="'+onmov+'"':"")+(isIE?"\r":"\n")+"script='"+src+"'>",id+"script")}}}function switchTo(f){picture=document.getElementById(f);width=picture.getAttribute("width")-0;height=picture.getAttribute("height")-0;strokewidth="1";stroke="black";fill="none";marker="none";if((picture.nodeName=="EMBED"||picture.nodeName=="embed")&&isIE){svgpicture=picture.getSVGDocument().getElementById("root");doc=picture.getSVGDocument()}else{picture.setAttribute("onmousemove","updateCoords"+(f.slice(f.length-1)-1)+"()");svgpicture=picture;doc=document}xunitlength=svgpicture.getAttribute("xunitlength")-0;yunitlength=svgpicture.getAttribute("yunitlength")-0;xmin=svgpicture.getAttribute("xmin")-0;xmax=svgpicture.getAttribute("xmax")-0;ymin=svgpicture.getAttribute("ymin")-0;ymax=svgpicture.getAttribute("ymax")-0;origin=[svgpicture.getAttribute("ox")-0,svgpicture.getAttribute("oy")-0]}function updatePicture(obj){var src=document.getElementById((typeof obj=="string"?obj:"picture"+(obj+1)+"input")).value;xmin=null;xmax=null;ymin=null;ymax=null;xscl=null;xgrid=null;yscl=null;ygrid=null;initialized=false;switchTo((typeof obj=="string"?obj.slice(0,8):"picture"+(obj+1)));src=src.replace(/plot\(\x20*([^\"f\[][^\n\r]+?)\,/g,'plot("$1",');src=src.replace(/plot\(\x20*([^\"f\[][^\n\r]+)\)/g,'plot("$1")');src=src.replace(/([0-9])([a-zA-Z])/g,"$1*$2");src=src.replace(/\)([\(0-9a-zA-Z])/g,")*$1");try{with(Math){eval(src)}}catch(err){alert(err+"\n"+src)}}function showHideCode(g){var f=g.nextSibling;while(f!=null&&f.nodeName!="BUTTON"&&f.nodeName!="button"){f=f.nextSibling}if(f.style.display=="none"){f.style.display=""}else{f.style.display="none"}while(f!=null&&f.nodeName!="TEXTAREA"&&f.nodeName!="textarea"){f=f.previousSibling}if(f.style.display=="none"){f.style.display=""}else{f.style.display="none"}}function hideCode(){}function showcode(){}function nobutton(){}function setBorder(f){border=f}function initPicture(x_min,x_max,y_min,y_max){if(!initialized){strokewidth="1";strokedasharray=null;stroke="black";fill="none";fontstyle="italic";fontfamily="times";fontsize="16";fontweight="normal";fontstroke="none";fontfill="none";marker="none";initialized=true;if(x_min!=null){xmin=x_min}if(x_max!=null){xmax=x_max}if(y_min!=null){ymin=y_min}if(y_max!=null){ymax=y_max}if(xmin==null){xmin=-5}if(xmax==null){xmax=5}if(typeof xmin!="number"||typeof xmax!="number"||xmin>=xmax){alert("Picture requires at least two numbers: xmin < xmax")}else{if(y_max!=null&&(typeof y_min!="number"||typeof y_max!="number"||y_min>=y_max)){alert("initPicture(xmin,xmax,ymin,ymax) requires numbers ymin < ymax")}else{if(width==null){width=picture.getAttribute("width")}else{picture.setAttribute("width",width)}if(width==null||width==""){width=defaultwidth}if(height==null){height=picture.getAttribute("height")}else{picture.setAttribute("height",height)}if(height==null||height==""){height=defaultheight}xunitlength=(width-2*border)/(xmax-xmin);yunitlength=xunitlength;if(ymin==null){origin=[-xmin*xunitlength+border,height/2];ymin=-(height-2*border)/(2*yunitlength);ymax=-ymin}else{if(ymax!=null){yunitlength=(height-2*border)/(ymax-ymin)}else{ymax=(height-2*border)/yunitlength+ymin}origin=[-xmin*xunitlength+border,-ymin*yunitlength+border]}if(isIE){svgpicture=picture.getSVGDocument().getElementById("root");while(svgpicture.childNodes.length()>5){svgpicture.removeChild(svgpicture.lastChild)}svgpicture.setAttribute("width",width);svgpicture.setAttribute("height",height);doc=picture.getSVGDocument()}else{var qnode=document.createElementNS("http://www.w3.org/2000/svg","svg");qnode.setAttribute("id",picture.getAttribute("id"));qnode.setAttribute("style","display:inline");qnode.setAttribute("width",picture.getAttribute("width"));qnode.setAttribute("height",picture.getAttribute("height"));if(picture.parentNode!=null){picture.parentNode.replaceChild(qnode,picture)}else{svgpicture.parentNode.replaceChild(qnode,svgpicture)}svgpicture=qnode;doc=document;pointerpos=doc.getElementById("pointerpos");if(pointerpos==null){pointerpos=myCreateElementSVG("circle");pointerpos.setAttribute("id","pointerpos");pointerpos.setAttribute("cx",0);pointerpos.setAttribute("cy",0);pointerpos.setAttribute("r",0.5);pointerpos.setAttribute("fill","red");svgpicture.appendChild(pointerpos)}}svgpicture.setAttribute("xunitlength",xunitlength);svgpicture.setAttribute("yunitlength",yunitlength);svgpicture.setAttribute("xmin",xmin);svgpicture.setAttribute("xmax",xmax);svgpicture.setAttribute("ymin",ymin);svgpicture.setAttribute("ymax",ymax);svgpicture.setAttribute("ox",origin[0]);svgpicture.setAttribute("oy",origin[1]);var node=myCreateElementSVG("rect");node.setAttribute("x","0");node.setAttribute("y","0");node.setAttribute("width",width);node.setAttribute("height",height);node.setAttribute("style","stroke-width:1;fill:white");svgpicture.appendChild(node);if(!isIE&&picture.getAttribute("onmousemove")!=null){svgpicture.addEventListener("mousemove",mousemove_listener,true);var st=picture.getAttribute("onmousemove");svgpicture.addEventListener("mousemove",eval(st.slice(0,st.indexOf("("))),true);node=myCreateElementSVG("polyline");node.setAttribute("points","0,0 "+width+",0");node.setAttribute("style","stroke:white; stroke-width:3");node.addEventListener("mousemove",top_listener,true);svgpicture.appendChild(node);node=myCreateElementSVG("polyline");node.setAttribute("points","0,"+height+" "+width+","+height);node.setAttribute("style","stroke:white; stroke-width:3");node.addEventListener("mousemove",bottom_listener,true);svgpicture.appendChild(node);node=myCreateElementSVG("polyline");node.setAttribute("points","0,0 0,"+height);node.setAttribute("style","stroke:white; stroke-width:3");node.addEventListener("mousemove",left_listener,true);svgpicture.appendChild(node);node=myCreateElementSVG("polyline");node.setAttribute("points",(width-1)+",0 "+(width-1)+","+height);node.setAttribute("style","stroke:white; stroke-width:3");node.addEventListener("mousemove",right_listener,true);svgpicture.appendChild(node)}border=defaultborder}}}}function line(h,g,j){var f;if(j!=null){f=doc.getElementById(j)}if(f==null){f=myCreateElementSVG("path");f.setAttribute("id",j);svgpicture.appendChild(f)}f.setAttribute("d","M"+(h[0]*xunitlength+origin[0])+","+(height-h[1]*yunitlength-origin[1])+" "+(g[0]*xunitlength+origin[0])+","+(height-g[1]*yunitlength-origin[1]));f.setAttribute("stroke-width",strokewidth);if(strokedasharray!=null){f.setAttribute("stroke-dasharray",strokedasharray)}f.setAttribute("stroke",stroke);f.setAttribute("fill",fill);if(marker=="dot"||marker=="arrowdot"){ASdot(h,4,markerstroke,markerfill);if(marker=="arrowdot"){arrowhead(h,g)}ASdot(g,4,markerstroke,markerfill)}else{if(marker=="arrow"){arrowhead(h,g)}}}function path(j,l,k){if(k==null){k=""}var h,f,g;if(l!=null){h=doc.getElementById(l)}if(h==null){h=myCreateElementSVG("path");h.setAttribute("id",l);svgpicture.appendChild(h)}if(typeof j=="string"){f=j}else{f="M";f+=(j[0][0]*xunitlength+origin[0])+","+(height-j[0][1]*yunitlength-origin[1])+" "+k;for(g=1;g<j.length;g++){f+=(j[g][0]*xunitlength+origin[0])+","+(height-j[g][1]*yunitlength-origin[1])+" "}}h.setAttribute("d",f);h.setAttribute("stroke-width",strokewidth);if(strokedasharray!=null){h.setAttribute("stroke-dasharray",strokedasharray)}h.setAttribute("stroke",stroke);h.setAttribute("fill",fill);if(marker=="dot"||marker=="arrowdot"){for(g=0;g<j.length;g++){if(k!="C"&&k!="T"||g!=1&&g!=2){ASdot(j[g],4,markerstroke,markerfill)}}}}function curve(f,g){path(f,g,"T")}function circle(g,f,j){var h;if(j!=null){h=doc.getElementById(j)}if(h==null){h=myCreateElementSVG("circle");h.setAttribute("id",j);svgpicture.appendChild(h)}h.setAttribute("cx",g[0]*xunitlength+origin[0]);h.setAttribute("cy",height-g[1]*yunitlength-origin[1]);h.setAttribute("r",f*xunitlength);h.setAttribute("stroke-width",strokewidth);h.setAttribute("stroke",stroke);h.setAttribute("fill",fill)}function loop(f,g,h){if(g==null){g=[1,0]}path([f,[f[0]+g[0],f[1]+g[1]],[f[0]-g[1],f[1]+g[0]],f],h,"C");if(marker=="arrow"||marker=="arrowdot"){arrowhead([f[0]+Math.cos(1.4)*g[0]-Math.sin(1.4)*g[1],f[1]+Math.sin(1.4)*g[0]+Math.cos(1.4)*g[1]],f)}}function arc(l,g,f,k){var j,h;if(k!=null){j=doc.getElementById(k)}if(f==null){h=[g[0]-l[0],g[1]-l[1]];f=Math.sqrt(h[0]*h[0]+h[1]*h[1])}if(j==null){j=myCreateElementSVG("path");j.setAttribute("id",k);svgpicture.appendChild(j)}j.setAttribute("d","M"+(l[0]*xunitlength+origin[0])+","+(height-l[1]*yunitlength-origin[1])+" A"+f*xunitlength+","+f*yunitlength+" 0 0,0 "+(g[0]*xunitlength+origin[0])+","+(height-g[1]*yunitlength-origin[1]));j.setAttribute("stroke-width",strokewidth);j.setAttribute("stroke",stroke);j.setAttribute("fill",fill);if(marker=="arrow"||marker=="arrowdot"){u=[(g[1]-l[1])/4,(l[0]-g[0])/4];h=[(g[0]-l[0])/2,(g[1]-l[1])/2];h=[l[0]+h[0]+u[0],l[1]+h[1]+u[1]]}else{h=[l[0],l[1]]}if(marker=="dot"||marker=="arrowdot"){ASdot(l,4,markerstroke,markerfill);if(marker=="arrowdot"){arrowhead(h,g)}ASdot(g,4,markerstroke,markerfill)}else{if(marker=="arrow"){arrowhead(h,g)}}}function ellipse(f,j,h,k){var g;if(k!=null){g=doc.getElementById(k)}if(g==null){g=myCreateElementSVG("ellipse");g.setAttribute("id",k);svgpicture.appendChild(g)}g.setAttribute("cx",f[0]*xunitlength+origin[0]);g.setAttribute("cy",height-f[1]*yunitlength-origin[1]);g.setAttribute("rx",j*xunitlength);g.setAttribute("ry",h*yunitlength);g.setAttribute("stroke-width",strokewidth);g.setAttribute("stroke",stroke);g.setAttribute("fill",fill)}function rect(k,h,l,j,g){var f;if(l!=null){f=doc.getElementById(l)}if(f==null){f=myCreateElementSVG("rect");f.setAttribute("id",l);svgpicture.appendChild(f)}f.setAttribute("x",k[0]*xunitlength+origin[0]);f.setAttribute("y",height-h[1]*yunitlength-origin[1]);f.setAttribute("width",(h[0]-k[0])*xunitlength);f.setAttribute("height",(h[1]-k[1])*yunitlength);if(j!=null){f.setAttribute("rx",j*xunitlength)}if(g!=null){f.setAttribute("ry",g*yunitlength)}f.setAttribute("stroke-width",strokewidth);f.setAttribute("stroke",stroke);f.setAttribute("fill",fill)}function text(g,m,k,f,l){var j="middle";var q=0;var o=fontsize/3;if(k!=null){if(k.slice(0,5)=="above"){o=-fontsize/2}if(k.slice(0,5)=="below"){o=fontsize-0}if(k.slice(0,5)=="right"||k.slice(5,10)=="right"){j="start";q=fontsize/2}if(k.slice(0,4)=="left"||k.slice(5,9)=="left"){j="end";q=-fontsize/2}}var h;if(f!=null){h=doc.getElementById(f)}if(h==null){h=myCreateElementSVG("text");h.setAttribute("id",f);svgpicture.appendChild(h);h.appendChild(doc.createTextNode(m))}h.lastChild.nodeValue=m;h.setAttribute("x",g[0]*xunitlength+origin[0]+q);h.setAttribute("y",height-g[1]*yunitlength-origin[1]+o);h.setAttribute("font-style",(l!=null?l:fontstyle));h.setAttribute("font-family",fontfamily);h.setAttribute("font-size",fontsize);h.setAttribute("font-weight",fontweight);h.setAttribute("text-anchor",j);if(fontstroke!="none"){h.setAttribute("stroke",fontstroke)}if(fontfill!="none"){h.setAttribute("fill",fontfill)}return g}function ASdot(h,g,j,l){if(j==null){j=stroke}if(l==null){l=fill}var k=myCreateElementSVG("circle");k.setAttribute("cx",h[0]*xunitlength+origin[0]);k.setAttribute("cy",height-h[1]*yunitlength-origin[1]);k.setAttribute("r",g);k.setAttribute("stroke-width",strokewidth);k.setAttribute("stroke",j);k.setAttribute("fill",l);svgpicture.appendChild(k)}function dot(g,k,h,o,m){var j;var f=g[0]*xunitlength+origin[0];var l=height-g[1]*yunitlength-origin[1];if(m!=null){j=doc.getElementById(m)}if(k=="+"||k=="-"||k=="|"){if(j==null){j=myCreateElementSVG("path");j.setAttribute("id",m);svgpicture.appendChild(j)}if(k=="+"){j.setAttribute("d"," M "+(f-ticklength)+" "+l+" L "+(f+ticklength)+" "+l+" M "+f+" "+(l-ticklength)+" L "+f+" "+(l+ticklength));j.setAttribute("stroke-width",0.5);j.setAttribute("stroke",axesstroke)}else{if(k=="-"){j.setAttribute("d"," M "+(f-ticklength)+" "+l+" L "+(f+ticklength)+" "+l)}else{j.setAttribute("d"," M "+f+" "+(l-ticklength)+" L "+f+" "+(l+ticklength))}j.setAttribute("stroke-width",strokewidth);j.setAttribute("stroke",stroke)}}else{if(j==null){j=myCreateElementSVG("circle");j.setAttribute("id",m);svgpicture.appendChild(j)}j.setAttribute("cx",f);j.setAttribute("cy",l);j.setAttribute("r",dotradius);j.setAttribute("stroke-width",strokewidth);j.setAttribute("stroke",stroke);j.setAttribute("fill",(k=="open"?"white":stroke))}if(h!=null){text(g,h,(o==null?"below":o),(m==null?m:m+"label"))}}function arrowhead(m,l){var f;var h=[m[0]*xunitlength+origin[0],height-m[1]*yunitlength-origin[1]];var g=[l[0]*xunitlength+origin[0],height-l[1]*yunitlength-origin[1]];var j=[g[0]-h[0],g[1]-h[1]];var o=Math.sqrt(j[0]*j[0]+j[1]*j[1]);if(o>1e-8){j=[j[0]/o,j[1]/o];f=[-j[1],j[0]];var k=myCreateElementSVG("path");k.setAttribute("d","M "+(g[0]-15*j[0]-4*f[0])+" "+(g[1]-15*j[1]-4*f[1])+" L "+(g[0]-3*j[0])+" "+(g[1]-3*j[1])+" L "+(g[0]-15*j[0]+4*f[0])+" "+(g[1]-15*j[1]+4*f[1])+" z");k.setAttribute("stroke-width",markerstrokewidth);k.setAttribute("stroke",stroke);k.setAttribute("fill",stroke);svgpicture.appendChild(k)}}function chopZ(g){var f=g.indexOf(".");if(f==-1){return g}for(var h=g.length-1;h>f&&g.charAt(h)=="0";h--){}if(h==f){h--}return g.slice(0,h+1)}function grid(g,f){axes(g,f,null,g,f)}function noaxes(){if(!initialized){initPicture()}}function axes(dx,dy,labels,gdx,gdy){var x,y,ldx,ldy,lx,ly,lxp,lyp,pnode,st;if(!initialized){initPicture()}if(typeof dx=="string"){labels=dx;dx=null}if(typeof dy=="string"){gdx=dy;dy=null}if(xscl!=null){dx=xscl;gdx=xscl;labels=dx}if(yscl!=null){dy=yscl;gdy=yscl}if(xtick!=null){dx=xtick}if(ytick!=null){dy=ytick}dx=(dx==null?xunitlength:dx*xunitlength);dy=(dy==null?dx:dy*yunitlength);fontsize=Math.min(dx/2,dy/2,16);ticklength=fontsize/4;if(xgrid!=null){gdx=xgrid}if(ygrid!=null){gdy=ygrid}if(gdx!=null){gdx=(typeof gdx=="string"?dx:gdx*xunitlength);gdy=(gdy==null?dy:gdy*yunitlength);pnode=myCreateElementSVG("path");st="";for(x=origin[0];x<width;x=x+gdx){st+=" M"+x+",0 "+x+","+height}for(x=origin[0]-gdx;x>0;x=x-gdx){st+=" M"+x+",0 "+x+","+height}for(y=height-origin[1];y<height;y=y+gdy){st+=" M0,"+y+" "+width+","+y}for(y=height-origin[1]-gdy;y>0;y=y-gdy){st+=" M0,"+y+" "+width+","+y}pnode.setAttribute("d",st);pnode.setAttribute("stroke-width",0.5);pnode.setAttribute("stroke",gridstroke);pnode.setAttribute("fill",fill);svgpicture.appendChild(pnode)}pnode=myCreateElementSVG("path");st="M0,"+(height-origin[1])+" "+width+","+(height-origin[1])+" M"+origin[0]+",0 "+origin[0]+","+height;for(x=origin[0]+dx;x<width;x=x+dx){st+=" M"+x+","+(height-origin[1]+ticklength)+" "+x+","+(height-origin[1]-ticklength)}for(x=origin[0]-dx;x>0;x=x-dx){st+=" M"+x+","+(height-origin[1]+ticklength)+" "+x+","+(height-origin[1]-ticklength)}for(y=height-origin[1]+dy;y<height;y=y+dy){st+=" M"+(origin[0]+ticklength)+","+y+" "+(origin[0]-ticklength)+","+y}for(y=height-origin[1]-dy;y>0;y=y-dy){st+=" M"+(origin[0]+ticklength)+","+y+" "+(origin[0]-ticklength)+","+y}if(labels!=null){with(Math){ldx=dx/xunitlength;ldy=dy/yunitlength;lx=(xmin>0||xmax<0?xmin:0);ly=(ymin>0||ymax<0?ymin:0);lxp=(ly==0?"below":"above");lyp=(lx==0?"left":"right");var ddx=floor(1.1-log(ldx)/log(10))+1;var ddy=floor(1.1-log(ldy)/log(10))+1;for(x=ldx;x<=xmax;x=x+ldx){text([x,ly],chopZ(x.toFixed(ddx)),lxp)}for(x=-ldx;xmin<=x;x=x-ldx){text([x,ly],chopZ(x.toFixed(ddx)),lxp)}for(y=ldy;y<=ymax;y=y+ldy){text([lx,y],chopZ(y.toFixed(ddy)),lyp)}for(y=-ldy;ymin<=y;y=y-ldy){text([lx,y],chopZ(y.toFixed(ddy)),lyp)}}}pnode.setAttribute("d",st);pnode.setAttribute("stroke-width",0.5);pnode.setAttribute("stroke",axesstroke);pnode.setAttribute("fill",fill);svgpicture.appendChild(pnode)}function mathjs(h){h=h.replace(/\s/g,"");if(h.indexOf("^-1")!=-1){h=h.replace(/sin\^-1/g,"arcsin");h=h.replace(/cos\^-1/g,"arccos");h=h.replace(/tan\^-1/g,"arctan");h=h.replace(/sec\^-1/g,"arcsec");h=h.replace(/csc\^-1/g,"arccsc");h=h.replace(/cot\^-1/g,"arccot");h=h.replace(/sinh\^-1/g,"arcsinh");h=h.replace(/cosh\^-1/g,"arccosh");h=h.replace(/tanh\^-1/g,"arctanh");h=h.replace(/sech\^-1/g,"arcsech");h=h.replace(/csch\^-1/g,"arccsch");h=h.replace(/coth\^-1/g,"arccoth")}h=h.replace(/^e$/g,"(E)");h=h.replace(/^e([^a-zA-Z])/g,"(E)$1");h=h.replace(/([^a-zA-Z])e([^a-zA-Z])/g,"$1(E)$2");h=h.replace(/([0-9])([\(a-zA-Z])/g,"$1*$2");h=h.replace(/\)([\(0-9a-zA-Z])/g,")*$1");var l,g,f,m,o;while((l=h.indexOf("^"))!=-1){if(l==0){return"Error: missing argument"}g=l-1;m=h.charAt(g);if(m>="0"&&m<="9"){g--;while(g>=0&&(m=h.charAt(g))>="0"&&m<="9"){g--}if(m=="."){g--;while(g>=0&&(m=h.charAt(g))>="0"&&m<="9"){g--}}}else{if(m==")"){o=1;g--;while(g>=0&&o>0){m=h.charAt(g);if(m=="("){o--}else{if(m==")"){o++}}g--}while(g>=0&&(m=h.charAt(g))>="a"&&m<="z"||m>="A"&&m<="Z"){g--}}else{if(m>="a"&&m<="z"||m>="A"&&m<="Z"){g--;while(g>=0&&(m=h.charAt(g))>="a"&&m<="z"||m>="A"&&m<="Z"){g--}}else{return"Error: incorrect syntax in "+h+" at position "+g}}}if(l==h.length-1){return"Error: missing argument"}f=l+1;m=h.charAt(f);if(m>="0"&&m<="9"||m=="-"){f++;while(f<h.length&&(m=h.charAt(f))>="0"&&m<="9"){f++}if(m=="."){f++;while(f<h.length&&(m=h.charAt(f))>="0"&&m<="9"){f++}}}else{if(m=="("){o=1;f++;while(f<h.length&&o>0){m=h.charAt(f);if(m=="("){o++}else{if(m==")"){o--}}f++}}else{if(m>="a"&&m<="z"||m>="A"&&m<="Z"){f++;while(f<h.length&&(m=h.charAt(f))>="a"&&m<="z"||m>="A"&&m<="Z"){f++}}else{return"Error: incorrect syntax in "+h+" at position "+f}}}h=h.slice(0,g+1)+"pow("+h.slice(g+1,l)+","+h.slice(l+1,f)+")"+h.slice(f)}while((l=h.indexOf("!"))!=-1){if(l==0){return"Error: missing argument"}g=l-1;m=h.charAt(g);if(m>="0"&&m<="9"){g--;while(g>=0&&(m=h.charAt(g))>="0"&&m<="9"){g--}if(m=="."){g--;while(g>=0&&(m=h.charAt(g))>="0"&&m<="9"){g--}}}else{if(m==")"){o=1;g--;while(g>=0&&o>0){m=h.charAt(g);if(m=="("){o--}else{if(m==")"){o++}}g--}while(g>=0&&(m=h.charAt(g))>="a"&&m<="z"||m>="A"&&m<="Z"){g--}}else{if(m>="a"&&m<="z"||m>="A"&&m<="Z"){g--;while(g>=0&&(m=h.charAt(g))>="a"&&m<="z"||m>="A"&&m<="Z"){g--}}else{return"Error: incorrect syntax in "+h+" at position "+g}}}h=h.slice(0,g+1)+"factorial("+h.slice(g+1,l)+")"+h.slice(l+1)}return h}function plot(fun,x_min,x_max,points,id){var pth=[];var f=function(x){return x},g=fun;var name=null;if(typeof fun=="string"){eval("g = function(x){ with(Math) return "+mathjs(fun)+" }")}else{if(typeof fun=="object"){eval("f = function(t){ with(Math) return "+mathjs(fun[0])+" }");eval("g = function(t){ with(Math) return "+mathjs(fun[1])+" }")}}if(typeof x_min=="string"){name=x_min;x_min=xmin}else{name=id}var min=(x_min==null?xmin:x_min);var max=(x_max==null?xmax:x_max);var inc=max-min-0.000001*(max-min);inc=(points==null?inc/200:inc/points);var gt;for(var t=min;t<=max;t+=inc){gt=g(t);if(!(isNaN(gt)||Math.abs(gt)=="Infinity")){pth[pth.length]=[f(t),gt]}}path(pth,name);return p}function slopefield(fun,dx,dy){var g=fun;if(typeof fun=="string"){eval("g = function(x,y){ with(Math) return "+mathjs(fun)+" }")}var gxy,x,y,u,v,dz;if(dx==null){dx=1}if(dy==null){dy=1}dz=Math.sqrt(dx*dx+dy*dy)/6;var x_min=Math.ceil(xmin/dx);var y_min=Math.ceil(ymin/dy);for(x=x_min;x<=xmax;x+=dx){for(y=y_min;y<=ymax;y+=dy){gxy=g(x,y);if(!isNaN(gxy)){if(Math.abs(gxy)=="Infinity"){u=0;v=dz}else{u=dz/Math.sqrt(1+gxy*gxy);v=gxy*u}line([x-u,y-v],[x+u,y+v])}}}}function updateCoords(g){switchTo("picture"+(g+1));var h=getX(),f=getY();if((xmax-h)*xunitlength>6*fontsize||(f-ymin)*yunitlength>2*fontsize){text([xmax,ymin],"("+h.toFixed(2)+", "+f.toFixed(2)+")","aboveleft","AScoord"+g,"")}else{text([xmax,ymin]," ","aboveleft","AScoord"+g,"")}}function updateCoords0(){updateCoords(0)}function updateCoords1(){updateCoords(1)}function updateCoords2(){updateCoords(2)}function updateCoords3(){updateCoords(3)}function updateCoords4(){updateCoords(4)}function updateCoords5(){updateCoords(5)}function updateCoords6(){updateCoords(6)}function updateCoords7(){updateCoords(7)}function updateCoords8(){updateCoords(8)}function updateCoords9(){updateCoords(9)}ASfn=[function(){updatePicture(0)},function(){updatePicture(1)},function(){updatePicture(2)},function(){updatePicture(3)},function(){updatePicture(4)},function(){updatePicture(5)},function(){updatePicture(6)},function(){updatePicture(7)},function(){updatePicture(8)},function(){updatePicture(9)}];ASupdateCoords=[function(){updateCoords(0)},function(){updateCoords(1)},function(){updateCoords(2)},function(){updateCoords(3)},function(){updateCoords(4)},function(){updateCoords(5)},function(){updateCoords(6)},function(){updateCoords(7)},function(){updateCoords(8)},function(){updateCoords(9)}];function generic(){drawPictures()}if(typeof window.addEventListener!="undefined"){window.addEventListener("load",generic,false)}else{if(typeof document.addEventListener!="undefined"){document.addEventListener("load",generic,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",generic)}else{if(typeof window.onload=="function"){var existing=onload;window.onload=function(){existing();generic()}}else{window.onload=generic}}}}; \ No newline at end of file Added: trunk/themes/default/IEFixes-min.css =================================================================== --- trunk/themes/default/IEFixes-min.css (rev 0) +++ trunk/themes/default/IEFixes-min.css 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1 @@ +#actionbuttons,#signin{font-size:80%;}td,.hint{font-size:90%;} \ No newline at end of file Added: trunk/themes/default/Makefile =================================================================== --- trunk/themes/default/Makefile (rev 0) +++ trunk/themes/default/Makefile 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1,19 @@ +# $Id: Makefile 6691 2009-03-23 07:43:49Z vargenau $ +# +# themes/default/Makefile +# +# minify CSS and JS +# + +CSS_SRC = IEFixes.css phpwiki-modern-heavy.css phpwiki-printer.css phpwiki.css \ + highlight.css phpwiki-modern.css phpwiki-topbottombars.css wikiwyg.css \ + moacdropdown/css/dropdown.css +MAIN = wikicommon +JS_MAIN = wikicommon.js sortable.js ajax.js moacdropdown.js toolbar.js +JS_REST = ASCIIsvg.js awstats_misc_tracker.js # delayed.js + +CSS_FILES = $(patsubst %.css,%-min.css,$(CSS_SRC)) + +all : css js + +include ../Makefile.global Added: trunk/themes/default/highlight-min.css =================================================================== --- trunk/themes/default/highlight-min.css (rev 0) +++ trunk/themes/default/highlight-min.css 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1 @@ +pre{color:#000;background-color:#fff;font-size:10pt;font-family:Courier;}.key{color:#000;font-weight:bold;}.num{color:#2928ff;}.typ{color:#830000;}.esc{color:#f0f;}.str{color:#f00;}.dstr{color:#818100;}.com{color:#838183;font-style:italic;}.dir{color:#008200;}.sym{color:#000;}.line{color:#555;} \ No newline at end of file Added: trunk/themes/default/moacdropdown/js/modomevent3.js =================================================================== --- trunk/themes/default/moacdropdown/js/modomevent3.js (rev 0) +++ trunk/themes/default/moacdropdown/js/modomevent3.js 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1,189 @@ +// +// This script was created +// by Mircho Mirev +// mo /mo...@mo.../ +// +// :: feel free to use it BUT +// :: if you want to use this code PLEASE send me a note +// :: and please keep this disclaimer intact +// + +//define the cEvent object +var cDomEvent = { + e : null, + type : '', + button : 0, + key : 0, + x : 0, + y : 0, + pagex : 0, + pagey : 0, + target : null, + from : null, + to : null +} + +cDomEvent.init = function( e ) +{ + if( window.event ) e = window.event + this.e = e + this.type = e.type + this.button = ( e.which ) ? e.which : e.button + this.key = ( e.which ) ? e.which : e.keyCode + this.target = ( e.srcElement ) ? e.srcElement : e.originalTarget + this.currentTarget = ( e.currentTarget ) ? e.currentTarget : e.srcElement + this.from = ( e.originalTarget ) ? e.originalTarget : ( e.fromElement ) ? e.fromElement : null + this.to = ( e.currentTarget ) ? e.currentTarget : ( e.toElement ) ? e.toElement : null + this.x = ( e.layerX ) ? e.layerX : ( e.offsetX ) ? e.offsetX : null + this.y = ( e.layerY ) ? e.layerY : ( e.offsetY ) ? e.offsetY : null + this.screenX = e.screenX + this.screenY = e.screenY + this.pageX = ( e.pageX ) ? e.pageX : e.x + document.body.scrollLeft + this.pageY = ( e.pageY ) ? e.pageY : e.y + document.body.scrollTop +} + +cDomEvent.getEvent = function( e ) +{ + if( window.event ) e = window.event + return { + e: e, + type: e.type, + button: ( e.which ) ? e.which : e.button, + key: ( e.which ) ? e.which : e.keyCode, + target: ( e.srcElement ) ? e.srcElement : e.originalTarget, + currentTarget: ( e.currentTarget ) ? e.currentTarget : e.srcElement, + from: ( e.originalTarget ) ? e.originalTarget : ( e.fromElement ) ? e.fromElement : null, + to: ( e.currentTarget ) ? e.currentTarget : ( e.toElement ) ? e.toElement : null, + x: ( e.layerX ) ? e.layerX : ( e.offsetX ) ? e.offsetX : null, + y: ( e.layerY ) ? e.layerY : ( e.offsetY ) ? e.offsetY : null, + screenX: e.screenX, + screenY: e.screenY, + pageX: ( e.pageX ) ? e.pageX : ( e.clientX + ( document.documentElement.scrollLeft || document.body.scrollLeft ) ), + pageY: ( e.pageY ) ? e.pageY : ( e.clientY + ( document.documentElement.scrollTop || document.body.scrollTop ) ) + } +} + +cDomEvent.cancelEvent = function( e ) +{ + if( e.preventDefault ) + { + e.preventDefault() + } + e.returnValue = false + e.cancelBubble = true + return false +} + +cDomEvent.addEvent = function( hElement, sEvent, handler, bCapture ) +{ + if( hElement.addEventListener ) + { + hElement.addEventListener( sEvent, handler, bCapture ) + return true + } + else if( hElement.attachEvent ) + { + return hElement.attachEvent( 'on'+sEvent, handler ) + } + else if( document.all || hElement.captureEvents ) + { + if( hElement.captureEvents ) eval( 'hElement.captureEvents( Event.'+sEvent.toUpperCase()+' )' ) + eval( 'hElement.on'+sEvent+' = '+handler ) + } + else + { + alert('Not implemented yet!') + } +} + +cDomEvent.encapsulateEvent = function( hHandler ) +{ + return function ( hEvent ) + { + hEvent = cDomEvent.getEvent( hEvent ) + hHandler.call( hEvent.target, hEvent.e ) + } +} + +cDomEvent.addEvent2 = function( hElement, sEvent, handler, bCapture ) +{ + if( hElement ) + { + if( hElement.addEventListener ) + { + hElement.addEventListener( sEvent, cDomEvent.encapsulateEvent( handler ), bCapture ) + return true + } + else if( hElement.attachEvent ) + { + return hElement.attachEvent( 'on'+sEvent, cDomEvent.encapsulateEvent( handler ) ) + } + else + { + alert('Not implemented yet!') + } + } + else + { + //alert( 'wrong' ) + } +} + +cDomEvent.addCustomEvent2 = function( hElement, sEvent, handler ) +{ + if( hElement ) + { + hElement[ sEvent ] = handler + } + else + { + //alert( 'wrong' ) + } +} + +cDomEvent.removeEvent = function( hElement, sEvent, handler, bCapture ) +{ + if( hElement.addEventListener ) + { + hElement.removeEventListener( sEvent, handler, bCapture ) + return true + } + else if( hElement.attachEvent ) + { + return hElement.detachEvent( 'on'+sEvent, handler ) + } + else if( document.all || hElement.captureEvents ) + { + eval( 'hElement.on'+sEvent+' = null' ) + } + else + { + alert('Not implemented yet!') + } +} + + +//Mouse button mapper object +function MouseButton() +{ + if( document.layers ) + { + this.left = 1 + this.middle = 2 + this.right = 3 + } + else if( document.all ) + { + this.left = 1 + this.middle = 4 + this.right = 2 + } + else //hopefully this is mozilla case + { + this.left = 0 + this.middle = 1 + this.right = 2 + } +} + +var MB = new MouseButton() Added: trunk/themes/default/phpwiki-min.css =================================================================== --- trunk/themes/default/phpwiki-min.css (rev 0) +++ trunk/themes/default/phpwiki-min.css 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1 @@ +img{border:0;}form{margin:0;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}body{background:#fffff0;font-family:Arial,Helvetica,sans-serif;font-size:85%;margin:1.5ex 1em;}div.wikitext hr{height:1px;}div.wikitext pre{font-family:monospace;}div.wikitext{margin-top:1ex;margin-bottom:.5ex;background-color:white;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;padding-left:.8em;padding-right:.8em;padding-top:.5ex;padding-bottom:.5ex;clear:both;}div#browse{margin-top:1px;margin-bottom:.5px;}input#inp-openid{background:url('images/openid.png') bottom left no-repeat;background-repeat:no-repeat;padding-left:18px!important;}.pageinfo-majoredit{font-weight:bold;}.wiki-summary{font-size:94%;font-style:italic;}body.sidebar{font-size:smaller;margin:.5em;}body.sidebar div.wikitext{padding:.5em;}body.sidebar div.wikitext ul{padding-left:1em;}body.sidebar h2{margin-top:0;}div.wikiaction{background-color:#eee;}form.wikiadmin div{background-color:#fee;}form.wikiformrich{background-color:#eee;}.wiki,.named-wiki{text-decoration:none;font-weight:bold;}.wiki relation,.named-wiki relation,.wiki attribute,.named-wiki attribute{font-style:oblique;font-weight:bold;}span.relation-symbol{font-weight:bold;font-family:monospace;letter-spacing:.1em;}a.wikiaction,a.wikiadmin,a.wiki-rc-action,a.wikiunsafe,input.wikiaction,input.button,input.wikiadmin{text-decoration:none;font-family:Arial,Helvetica,sans-serif;white-space:nowrap;}a.wikiaction,a.wikiaction:visited,input.wikiaction,input.button{background-color:#ddd;}.wikiunsafe{background-color:#fcc;}a.wikiadmin,a.wikiadmin:visited,input.wikiadmin{background-color:#fdd;}.wikiunknown,.named-wikiunknown{font-weight:normal;font-size:100%;}.wikiunknown a,.named-wikiunknown a{color:#447;background-color:#eee;text-decoration:none;font-weight:normal;font-size:smaller;}.backlinks{text-decoration:underline;color:#006;}h1 .backlinks{text-decoration:underline;}.wikipage{font-weight:normal;}.interwiki{text-decoration:none;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}a.wikibutton,a.wikibutton:visited,input.wikibutton{background-color:white;}h1,h2,h3,h4,h5,h6{font-family:Arial,Helvetica,sans-serif;}h1{margin:0;font-size:140%;}table,td{font-family:Arial,Helvetica,sans-serif;}caption{font-family:Arial,Helvetica,sans-serif;}.pagelist{font-size:smaller;}.pagelist thead td{background:#e8e8e8;text-decoration:none;font-weight:bold;}.pagelist thead td u{text-decoration:none;}.pagelist tr.evenrow{background:#eee;}.pagelist tr.oddrow{background:white;}th.gridbutton{background-color:ThreedLightShadow;color:black;font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:small;font-weight:normal;white-space:nowrap;margin:5px 0;max-height:24px;padding:5px 0 5px 0;border-width:1px;border-style:solid;border-color:ThreedHighlight ThreedDarkShadow ThreedDarkShadow ThreedHighlight;}input.gridbutton,a.gridbutton,a:hover.gridbutton,a:visited.gridbutton{text-decoration:none;font-size:small;font-weight:normal;font-family:Tahoma,sans-serif,Arial,Helvetica;background-color:ThreedLightShadow;color:black;}.toolbar,input.button,#signin{font-family:Arial,Helvetica,sans-serif;}.toolbar{padding:0;margin:0;}.edit-toolbar{padding:0;margin:0;}.edit-toolbar img,.edit-toolbar input{background-color:#fff;border:1px solid ButtonFace;}#navbuttons{padding-right:4em;padding-bottom:1ex;}.editdate{font-family:Arial,Helvetica,sans-serif;margin:0;padding:0;padding-top:.25ex;}#logo img{float:right;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;}textarea.wikiedit{width:100%;margin-bottom:.5ex;margin-top:.5ex;padding:2px;}#editarea-size{margin-top:1ex;text-align:right;font-size:smaller;}#search-replace{margin-top:1ex;text-align:left;font-size:smaller;}#toolbar{padding:0;}#searchholder{display:inline;}.search-context{background:white;font-style:oblique;}.search-term{background:yellow;font-weight:normal;}#LSResult{position:absolute;text-align:left;display:none;z-index:100;background-color:white;border:1px solid #d0d0d0;font-size:9px;overflow:hidden;}#LSHighlight{background-color:#f08000;}#LSResult .evenrow{background-color:#f0f0f0;}.LSEnd{text-align:right;}.LSRow:hover{background-color:white;}.LSRow{padding:1px;}ul.LSRes{margin:0;padding:0;}li.LSRow{margin:0;list-style-image:none;}.transclusion-title{text-align:right;font-style:oblique;font-size:smaller;text-decoration:underline;margin-bottom:.25ex;margin-right:.25em;}.transclusion,.wiki-edithelp{font-size:smaller;}.transclusion{border:1px solid gray;padding-left:.8em;padding-right:.8em;padding-top:0;padding-bottom:0;margin-left:.25em;margin-right:.25em;margin-bottom:.1ex;}.wiki-edithelp{background:white;border:medium solid #fff8dc;padding-left:.5em;padding-right:.5em;padding-top:.75ex;padding-bottom:.75ex;margin-left:0;margin-right:0;margin-top:1ex;margin-bottom:1ex;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;padding-left:.5em;padding-right:.5em;padding-top:.5ex;padding-bottom:.5ex;margin:0;}table.cal{border:1px outset gray;background:white;margin:.5ex .5em;padding:1px;empty-cells:hide;}table.cal td{background:white;text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;}.cal-arrow{font-weight:bold;text-decoration:none;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:underline;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{margin:1px;border:1px solid gray;}.diff{margin-top:1ex;margin-bottom:.5ex;background:white;border:1px #ccc solid;color:black;border-top:1px solid #494f5d;border-left:1px solid #494f5d;border-bottom:1px solid #c6d2de;border-right:1px solid #c6d2de;padding-top:1px;padding-bottom:1px;padding-left:.125em;padding-right:.125em;padding:0;clear:both;}.diff .block{background:#ddd;padding-left:1em;}.diff .context{background:white;border:none;}.difftext{margin-top:0;margin-bottom:0;background:white;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;clear:both;}.diff .block tt{font-weight:normal;font-family:monospace;color:black;margin-left:0;border:none;}.diff del,.diff ins{font-weight:bold;text-decoration:none;}.diff .original,.diff .deleted,.diff .final,.diff .added{background:white;}.diff .original,.diff .deleted{background:#fcc;border:none;}.diff .final,.diff .added{background:#cfc;border:none;}.diff del{background:#f99;}.diff ins{background:#9f9;}td.pageinfo{font-weight:bold;}.pageinfo-minoredit,.pageinfo-authorid{font-size:smaller;font-style:oblique;}.printer,.no-css{display:none;}div.errors{color:black;background:#eee;margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;border:medium solid red;clear:both;}h4.errors{color:red;margin:0;padding:0;text-decoration:underline;}div.warning{color:black;background:#eee;margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;border:thin solid blue;clear:both;}.error{font-family:monospace;font-size:120%;}.error ul{font-family:monospace;}.debug{color:black;background:white;font-family:monospace;font-size:smaller;margin:1ex 0;padding:.5ex .5em;border:medium solid #fff8dc;}.hint{color:black;background:#eee;font-style:italic;margin-left:3em;padding:.5ex .5em;border:thin solid #aaa;}span.hint{padding:0;}.disabled-plugin{clear:both;margin:1ex 0;padding:0;}.disabled-plugin .title{color:#400;background-color:inherit;font-size:x-small;text-align:right;padding:0 .5em;}.disabled-plugin pre{color:black;background:#ddd;margin:0;padding:.3ex .5em;}span.redirectfrom{font-size:small;font-style:oblique;font-weight:normal;padding-left:1em;}.wiki-dl-table{border-collapse:collapse;border:2px #444 solid;}.wiki-dl-table tr{border-top:2px #444 solid;border-bottom:2px #444 solid;border-left:none;border-right:none;}.wiki-dl-table th,.wiki-dl-table td{padding:.25em .5em;}.wiki-dl-table th{vertical-align:top;text-align:right;border-right:1px #444 solid;border-left:none;border-top:none;border-bottom:none;}.wiki-dl-table td{border:none;}blockquote.mail-style-quote{border-left:medium #284 solid;padding-left:1em;margin-left:0;margin-right:0;}.mail-style-quote blockquote.mail-style-quote{margin-left:-0.6em;}.floatleft{float:left;}.floatright{float:right;}div.wikiblog{margin:1ex 2em;padding:0;}div.wikiblog>div{margin:0;padding:.5ex .5em;}div.wikiblog>div.wikiblog-footer{padding:.2ex .5em;}h3.wikiblog-summary{font-size:medium;font-weight:bold;margin:0 0 1ex 0;}table.wikiblog-form{width:auto;border-collapse:collapse;margin:.25em 0;}.wikiblog-form caption{caption-side:top;font-weight:bold;text-align:left;padding:.5ex .5em;}.wikiblog-form th{vertical-align:top;text-align:right;padding:0 0 .3em .5em;}.wikiblog-form td{padding:.25em .5em;}.wikiblog-form td.submit-button{padding:0;}.wikiblog-form input[type=text],.wikiblog-form textarea{margin:0;width:100%;}div.wikicomment div.wikicomment-footer{padding:.2ex .5em;}div.wikicomment div.wikicomment-footer named-wiki{font-size:small;}table.interwiki-map{margin:1em 2em;}.interwiki-map th{text-decoration:underline;text-align:left;padding-left:1em;}.interwiki-map td.interwiki-url{padding-left:2em;}.interwiki-map th.interwiki-url{padding-left:3em;}.dialog{background-color:#cdf;color:black;margin:2em auto 2em auto;border:thin black solid;width:50%;}.dialog h1,.dialog p,.dialog div{text-align:center;}.dialog h1{font-size:large;margin:.5em 0 1em 0;}.dialog div.message{background-color:white;color:black;color:black;margin:0 1em;padding:.5em .5em;}.dialog p.buttons{margin:1em 0 .5em 0;}.clear-floats{clear:both;}.gensmall{font-size:10px;}.genmed{font-size:11px;}td.cat{font-weight:bold;letter-spacing:1px;color:#000;background:url(./images/cellpic1.png);height:27px;}td.row1{background:#eaedf4;color:#000;}td.row2{background:#d9e2ec;color:#000;}td.row3{background:#cad9ea;color:#000;}td.spacerow{background:#cad9ea;color:#000;}.forumline{background:#fff;color:#000;border:1px solid #069;}.box{background:#fff;border:1px solid silver;}.box-title{font-family:Tahoma,Arial,Helvetica,sans-serif;font-weight:normal;background-color:#ccc;color:black;text-align:center;border:none;padding:2px 0 2px 0;}.box-data{width:160px;font-size:9pt;font-weight:normal;border:none;}.box-data .wiki{font-weight:normal;}td.sidebar{border-spacing:0;margin:0;}div.boxright{background-color:#e9fbff;width:200px;right:10px;padding:.5em;float:right;border:thin solid #888;padding:.5em;}div.rss{margin:1em;padding:1em;font-size:.9em;background-color:#eee;border:thin dashed #aaa;}div.feed{color:#333;margin:-0.5em;margin-bottom:0;padding:.3em;font-weight:bold;background-color:#f2f2f2;font-size:1.2em;}div.itemdesc{padding-left:1em;}div.rssitem{border-top:thin dashed #aaa;}a.rssicon{font-weight:normal;font-size:small;vertical-align:middle;}table.sqlresult{border:1px outset gray;background:white;margin:.5ex .5em;padding:1px;}.sqlresult tr.evenrow{background:#eee;}.sqlresult tr.oddrow{background:white;}table.sqlresult td{margin:1px;border:1px solid gray;}img.tex{border:0;vertical-align:middle;}.boldsmall{font-weight:bold;font-size:11px;}.wikiwyg_toolbar{background:#D3D3D3;border:1px outset;letter-spacing:0;padding:2px;}span.wikiwyg_control_link a{padding-right:8px;}.wikiwyg_button{background:#D3D3D3;border:1px solid #D3D3D3;cursor:pointer;width:20px;height:20px;vertical-align:bottom;}.wikiwyg_button:hover{border:1px outset;}.wikiwyg_button:active{border:1px inset;}.wikiwyg_separator{background:#D3D3D3;border:1px solid #D3D3D3;width:9px;height:20px;vertical-align:bottom;}.wikiwyg_selector{width:70px;}.wikiwyg_wysiwyg table{border-collapse:collapse;margin-bottom:.2em;}.wikiwyg_wysiwyg table td{border:1px;border-style:solid;padding:.2em;vertical-align:top;}div.br{display:none;}.toolbar,div.toolbar{margin:.5ex 0;}div.wikitext{width:auto;}img{vertical-align:baseline;}input{margin:.1em;}input.numeric{text-align:right;}div.wikiaction,form.wikiadmin div{border-bottom:1px solid #d8d8e7;border-right:1px solid #d8d8e7;border-top:1px solid #96a2ae;border-left:1px solid #96a2ae;margin-top:.5ex;margin-bottom:.5ex;padding:.5ex .5em;display:table;}div.wikiaction input[type=text],div.wikiadmin input[type=text],form.wikiadmin input[type=file]{margin-right:.5em;}a.wikiaction,a.wikiadmin,a.wikiunsafe,input.wikiaction,input.wikiadmin,input.wikiunsafe,input.button{color:black;border:1px outset;padding:.05ex .25em .1ex .25em;height:auto;width:auto;line-height:2.6ex;}div#navbuttons,div#signin,div#actionbuttons{line-height:3.0ex;}.wikiunknown a,.named-wikiunknown a{border-top:1px solid #c6d2de;border-left:1px solid #c6d2de;border-bottom:1px solid #a2a2a2;border-right:1px solid #a2a2a2;padding-left:1px;padding-right:1px;padding-top:1px;margin-right:.15em;}img.linkicon{vertical-align:middle;}div#actionbuttons a#btn-edit{background:url('images/Edit-chalk-10g.png') bottom left no-repeat;background-repeat:no-repeat;padding-left:20px!important;padding-right:.5em!important;}a.wikibutton,a.wikibutton:visited,input.wikibutton{background-color:white;border:0;}.diff .prefix{position:relative;left:-1em;}.diff del,.diff ins{padding-left:1px;padding-right:1px;}div.errors{font-size:smaller;}table.boxed,table.bordered,table.bordered th,table.bordered td{border-width:1px;border-style:solid;border-collapse:collapse;vertical-align:top;}table.boxed td,table.bordered td,table.boxed th,table.bordered th{padding-left:5px;padding-right:5px;padding-top:0;padding-bottom:0;}table.boxed caption,table.bordered caption{text-align:center;font-weight:bold;caption-side:bottom;padding-top:.8em;}table.boxed th,table.bordered th{font-weight:bold;background-color:#d8d8d8;}#edit-public,h1.firstHeading-public,h1.firstHeading-rating-public{background-color:#ffce7b;border:1px solid #ffa500;} \ No newline at end of file Added: trunk/themes/default/phpwiki-modern-heavy-min.css =================================================================== --- trunk/themes/default/phpwiki-modern-heavy-min.css (rev 0) +++ trunk/themes/default/phpwiki-modern-heavy-min.css 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1 @@ +div.br{display:none;}div.wikitext{width:auto;}img.linkicon{vertical-align:middle;}img.rssicon{vertical-align:baseline;}.diff .block div{position:relative;padding-left:1.5em;}.diff .prefix{position:absolute;left:.5em;top:0;} \ No newline at end of file Added: trunk/themes/default/phpwiki-modern-min.css =================================================================== --- trunk/themes/default/phpwiki-modern-min.css (rev 0) +++ trunk/themes/default/phpwiki-modern-min.css 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1 @@ +img{border:0;vertical-align:baseline;}form{margin:0;}input{margin:.1em;}input.numeric{text-align:right;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}body{background:#eee;font-family:Arial,Helvetica,sans-serif;margin:1ex 1em;}hr{height:1px;}div.wikitext{background:white;border-bottom:.5pt #888 solid;padding-top:.75ex;padding-bottom:.75ex;padding-left:.8em;padding-right:.8em;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;clear:both;}#logo img{position:relative;right:.25em;top:4.5ex;}.wiki{text-decoration:none;font-weight:bold;color:#004662;}.wiki:hover,.backlinks:hover{color:#5454ff;}.wikiaction,.wikiadmin,.wiki-rc-action,.backlinks{color:#69798f;text-decoration:none;font-weight:bold;}.wikiaction:hover{color:#5454ff;}.backlinks{color:#006;}.wikiunknown a,.named-wikiunknown a,.wikiunknown u{text-decoration:none;color:#600;}.wikipage{font-weight:bold;}.interwiki{text-decoration:none;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}h1,h2,h3,h4,h5,h6{font-family:Arial,Helvetica,sans-serif;}h1{color:white;background-color:black;padding-top:1.1ex;padding-left:.3em;padding-bottom:.2ex;padding-right:.6em;margin:0;}h1 .backlinks{color:white;text-decoration:none;}h1 .wiki{color:gray;text-decoration:none;}h2{color:white;background-color:#525D76;}h3{color:white;background-color:#828da6;margin-left:1em;}h4{color:white;background-color:#828da6;margin-left:1.5em;}h2,h3,h4,h5,h6{margin-top:2ex;padding-top:.15ex;padding-bottom:.1ex;padding-left:.6em;padding-right:.6em;}caption{font-family:Arial,Helvetica,sans-serif;}.pagelist{background:#bebebe;border:.5pt solid #bebebe;}.pagelist thead,.pagelist thead u{background:#bebebe;color:white;font-weight:bold;text-decoration:none;}.pagelist tr.evenrow{background:#e6e6e6;}.pagelist tr.oddrow{background:#f4f4f4;}.toolbar,td,input.button{font-family:Arial,Helvetica,sans-serif;}#navbuttons,#actionbar{color:black;background:#ddd;margin-top:.1ex;margin-bottom:1ex;margin-left:0;margin-right:0;}#actionbar table,#navbuttons{border-top:.5pt solid black;border-bottom:.5pt solid black;padding-top:.3ex;padding-bottom:.4ex;padding-left:.5em;padding-right:.5em;}.editdate{background:white;font-family:Arial,Helvetica,sans-serif;margin:0;padding-top:.4ex;padding-bottom:.3ex;padding-left:.5em;padding-right:.5em;}hr.ignore,hr.toolbar{height:0;position:absolute;top:-80px;}textarea.wikiedit{width:100%;border:1px inset #838383;margin-top:1ex;margin-bottom:1ex;padding:2px;}#editarea-size{margin-top:1ex;text-align:right;font-size:smaller;}.transclusion-title{text-align:right;margin-right:.25em;margin-bottom:.15ex;font-style:oblique;font-size:smaller;text-decoration:underline;}.transclusion,.wiki-edithelp{background:white;font-size:smaller;padding-left:.5em;padding-right:.5em;}.transclusion{border-top:solid 1px #ddd;border-left:solid 1px #c3c3c3;border-bottom:solid 1px #7d7d7d;border-right:solid 1px #b5b5b5;}.wiki-edithelp{border-top:solid 1px #ddd;border-left:solid 1px #c5c5c5;border-bottom:solid 1px #bdbdbd;border-right:solid 1px #b5b5b5;}.wiki-edithelp .wiki{color:#5454ff;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;background:#eef;border-top:solid 1px #aaa;border-left:solid 1px #c3c3c3;border-bottom:solid 1px #ddd;border-right:solid 1px #c5c5c5;padding-left:.5em;padding-right:.5em;padding-top:.25ex;padding-bottom:.25ex;margin-top:1ex;margin-bottom:1ex;}table.cal{border:thin outset gray;background:#ddd;padding:1px;empty-cells:hide;}table.cal td{background:white;text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;background:black;color:white;}.cal-arrow{color:gray;font-weight:bold;text-decoration:none;}table.cal tbody tr .cal-dayname{background:#eee;border-top:1px solid gray;border-bottom:1px solid gray;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:none;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{background:inherit;border:2px solid gray;}table.cal td.cal-today a.cal-hide{color:black;}.diff .block{background:#ccc;border-top:1px solid black;border-bottom:1px solid black;padding:.5ex .5em;margin:.5ex 0;}.diff .context{background:white;}.diff .block tt{font-weight:normal;font-family:monospace;margin-left:-.6em;color:#ff0;}.diff del,.diff ins{font-weight:bold;text-decoration:none;}.diff .original,.diff .deleted{background:#fcc;}.diff .final,.diff .added{background:#cfc;}.diff del{background:#f99;}.diff ins{background:#9f9;}td.pageinfo{font-weight:bold;}.pageinfo-minoredit,.pageinfo-authorid{font-size:smaller;font-style:oblique;}.printer{display:none;}div.errors{color:black;background:white;margin-top:2em;margin-bottom:2em;padding:1ex;font-size:smaller;border:thin dashed red;}.errors h4{color:red;background:inherit;margin:0;padding:0;text-decoration:underline;}.error{font-family:monospace;}.error ul{font-family:monospace;}.debug{color:black;background:white;font-family:monospace;margin:1ex 0;padding:.5ex .5em;}div.br{display:none;}div.wikitext{width:auto;}img.linkicon{vertical-align:middle;}img.rssicon{vertical-align:baseline;}.diff .block div{position:relative;padding-left:1.5em;}.diff .prefix{position:absolute;left:.5em;top:0;} \ No newline at end of file Added: trunk/themes/default/phpwiki-printer-min.css =================================================================== --- trunk/themes/default/phpwiki-printer-min.css (rev 0) +++ trunk/themes/default/phpwiki-printer-min.css 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1 @@ +html{background:white;}body{margin:1em;padding:0;color:black;background:white;}div.wikitext{border:0;padding:0;margin:0;margin-top:1ex;background:white;}img{border:0;vertical-align:baseline;}form{margin:0;}input{margin:.1em;}input.numeric{text-align:right;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}a{color:black;text-decoration:none;}.wiki{text-decoration:underline;font-weight:bold;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.wikipage{text-decoration:underline;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}.rawurl{text-decoration:underline;}.wikiblog-form{display:none;}#header,#logo,#footer{background:white;}table+br.clear-floats{display:none;}#navbuttons,#actionbuttons,#signin{display:none;}p.editdate{font-size:smaller;margin-top:0;background:white;}hr.toolbar{display:none;}hr.printer{display:block;background:white;}.wiki-rc-action{display:none;}img{vertical-align:baseline;border:0 none white;}.linkicon{display:none;}.rssicon{display:none;}textarea.wikiedit{width:100%;margin-bottom:.5ex;margin-top:.5ex;padding:2px;}#editarea-size{display:none;}.transclusion-title{text-align:right;font-style:oblique;font-size:smaller;text-decoration:underline;margin-bottom:.25ex;margin-right:.25em;}.transclusion,.wiki-edithelp{font-size:smaller;}.transclusion{background:inherit;border:1pt solid gray;padding-left:.8em;padding-right:.8em;padding-top:0;padding-bottom:0;margin-left:.25em;margin-right:.25em;margin-bottom:.1ex;}.wiki-edithelp{border:1pt solid black;padding-left:.5em;padding-right:.5em;padding-top:.75ex;padding-bottom:.75ex;margin-left:0;margin-right:0;margin-top:1ex;margin-bottom:1ex;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;padding-left:.5em;padding-right:.5em;padding-top:.5ex;padding-bottom:.5ex;margin:0;}table.cal{border:thin outset gray;margin:.5ex .5em;padding:1px;empty-cells:hide;}table.cal td{text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;background:inherit;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:underline;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{background:inherit;margin:1px;border:1px solid black;}#xhtml-validator{display:none;}div.errors{margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;font-size:smaller;border:.5pt solid black;clear:both;}.errors h4{margin:0;padding:0;text-decoration:underline;}.error{font-family:monospace;}.error ul{font-family:monospace;}.debug{display:none;} \ No newline at end of file Added: trunk/themes/default/phpwiki-topbottombars-min.css =================================================================== --- trunk/themes/default/phpwiki-topbottombars-min.css (rev 0) +++ trunk/themes/default/phpwiki-topbottombars-min.css 2010-04-20 14:39:33 UTC (rev 7342) @@ -0,0 +1 @@ +@import url("phpwiki.css");body{padding-top:9ex;padding-bottom:9ex;}div#header,div#footer{background:#FFFFF0;margin:0;padding:0;position:fixed;left:0;right:0;padding-top:1ex;padding-bottom:1ex;padding-left:1em;padding-right:1em;}hr.toolbar{display:none;}div#header{top:0;padding-top:1.5ex;border-bottom:1px solid #b2b2b2;}div#navbuttons{padding-bottom:1ex;}div#footer{border-top:1px solid #b2b2b2;bo... [truncated message content] |
From: <var...@us...> - 2010-05-21 09:33:26
|
Revision: 7439 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7439&view=rev Author: vargenau Date: 2010-05-21 09:33:20 +0000 (Fri, 21 May 2010) Log Message: ----------- run make Modified Paths: -------------- trunk/themes/default/highlight-min.css trunk/themes/default/moacdropdown/css/dropdown-min.css trunk/themes/default/phpwiki-min.css trunk/themes/default/wikicommon-min.js Modified: trunk/themes/default/highlight-min.css =================================================================== --- trunk/themes/default/highlight-min.css 2010-05-21 09:31:51 UTC (rev 7438) +++ trunk/themes/default/highlight-min.css 2010-05-21 09:33:20 UTC (rev 7439) @@ -1 +1 @@ -pre{color:#000;background-color:#fff;font-size:10pt;font-family:Courier;}.key{color:#000;font-weight:bold;}.num{color:#2928ff;}.typ{color:#830000;}.esc{color:#f0f;}.str{color:#f00;}.dstr{color:#818100;}.com{color:#838183;font-style:italic;}.dir{color:#008200;}.sym{color:#000;}.line{color:#555;} \ No newline at end of file +pre{color:#000;background-color:#fff;font-size:10pt;font-family:Courier,monospace;}.key{color:#000;font-weight:bold;}.num{color:#2928ff;}.typ{color:#830000;}.esc{color:#f0f;}.str{color:#f00;}.dstr{color:#818100;}.com{color:#838183;font-style:italic;}.dir{color:#008200;}.sym{color:#000;}.line{color:#555;} \ No newline at end of file Modified: trunk/themes/default/moacdropdown/css/dropdown-min.css =================================================================== --- trunk/themes/default/moacdropdown/css/dropdown-min.css 2010-05-21 09:31:51 UTC (rev 7438) +++ trunk/themes/default/moacdropdown/css/dropdown-min.css 2010-05-21 09:33:20 UTC (rev 7439) @@ -1 +1 @@ -div.acinputContainer{position:relative;float:left;height:20px;margin:0;padding:0;border-width:1px;border-style:solid;border-color:#aaa #eee #eee #aaa;background-color:buttonface;-moz-box-sizing:border-box;}div.acinputContainer input{position:relative;float:left;height:100%;border-width:1px;margin:0;padding:0;clear:none;float:left;-moz-box-sizing:border-box;}div.acinputContainer input.search{background-color:#b41b00;-moz-box-sizing:border-box;}div.acinputContainer input.button{position:relative;float:left;font-size:2px;width:18px;height:100%;border-width:1px;background-image:url(../i/arrowdown.gif);background-repeat:no-repeat;background-position:2px 2px;-moz-box-sizing:border-box;}input.dropdown{border:1px solid #AAA;border-color:#888 #aaa #aaa #888;margin-bottom:2px;-moz-box-sizing:border-box;}div.autocomplete_holder{position:absolute;font-size:95%;visibility:hidden;background-color:#fff;-moz-box-sizing:border-box;}div.autocomplete_firstborder{border-width:1px;border-style:solid;border-color:buttonshadow;padding:0;margin-left:3px;margin-bottom:5px;-moz-box-sizing:border-box;}div.autocomplete_secondborder{border-style:none;padding:2px;-moz-box-sizing:border-box;}ul.autocomplete{width:100%;height:95px;overflow-y:auto;overflow:-moz-scrollbars-vertical;font:menu;margin:0;margin-left:0;padding-left:0;text-indent:0;list-style-type:none;vertical-align:middle;background-repeat:no-repeat;-moz-box-sizing:border-box;}ul.autocomplete li a,ul.autocomplete li a:hover,ul.autocomplete li a.selected,ul.autocomplete li a:hover.selected{display:block;width:100%;padding:2px;text-decoration:none;color:#333;border:1px solid #fff;-moz-box-sizing:border-box;margin-left:-14px;voice-family:"\"}\"";voice-family:inherit;margin-left:0;}ul.autocomplete li{padding:0;padding-left:5px;background-position:2px 0;background-repeat:no-repeat;line-height:13px;vertical-align:top;margin:0;-moz-box-sizing:border-box;}ul.autocomplete li a:hover{color:highlighttext;background-color:highlight;border-color:#e0e0e0;}ul.autocomplete li a.selected{border:1px solid #444;color:#fff;background-color:#004ba6;}ul.autocomplete li a:hover.selected{border:1px solid #e0e0e0;color:white;background-color:#004ba6;background-image:none;} \ No newline at end of file +div.acinputContainer{position:relative;float:left;height:20px;margin:0;padding:0;border-width:1px;border-style:solid;border-color:#aaa #eee #eee #aaa;background-color:ButtonFace;-moz-box-sizing:border-box;}div.acinputContainer input{position:relative;float:left;height:100%;border-width:1px;margin:0;padding:0;clear:none;float:left;-moz-box-sizing:border-box;}div.acinputContainer input.search{background-color:#b41b00;-moz-box-sizing:border-box;}div.acinputContainer input.button{position:relative;float:left;font-size:2px;width:18px;height:100%;border-width:1px;background-image:url(../i/arrowdown.gif);background-repeat:no-repeat;background-position:2px 2px;-moz-box-sizing:border-box;}input.dropdown{border:1px solid #AAA;border-color:#888 #aaa #aaa #888;margin-bottom:2px;-moz-box-sizing:border-box;}div.autocomplete_holder{position:absolute;font-size:95%;visibility:hidden;background-color:#fff;-moz-box-sizing:border-box;}div.autocomplete_firstborder{border-width:1px;border-style:solid;border-color:ButtonShadow;padding:0;margin-left:3px;margin-bottom:5px;-moz-box-sizing:border-box;}div.autocomplete_secondborder{border-style:none;padding:2px;-moz-box-sizing:border-box;}ul.autocomplete{width:100%;height:95px;overflow-y:auto;overflow:-moz-scrollbars-vertical;font:menu;margin:0;margin-left:0;padding-left:0;text-indent:0;list-style-type:none;vertical-align:middle;background-repeat:no-repeat;-moz-box-sizing:border-box;}ul.autocomplete li a,ul.autocomplete li a:hover,ul.autocomplete li a.selected,ul.autocomplete li a:hover.selected{display:block;width:100%;padding:2px;text-decoration:none;color:#333;border:1px solid #fff;-moz-box-sizing:border-box;margin-left:-14px;voice-family:"\"}\"";voice-family:inherit;margin-left:0;}ul.autocomplete li{padding:0;padding-left:5px;background-position:2px 0;background-repeat:no-repeat;line-height:13px;vertical-align:top;margin:0;-moz-box-sizing:border-box;}ul.autocomplete li a:hover{color:HighlightText;background-color:Highlight;border-color:#e0e0e0;}ul.autocomplete li a.selected{border:1px solid #444;color:#fff;background-color:#004ba6;}ul.autocomplete li a:hover.selected{border:1px solid #e0e0e0;color:white;background-color:#004ba6;background-image:none;} \ No newline at end of file Modified: trunk/themes/default/phpwiki-min.css =================================================================== --- trunk/themes/default/phpwiki-min.css 2010-05-21 09:31:51 UTC (rev 7438) +++ trunk/themes/default/phpwiki-min.css 2010-05-21 09:33:20 UTC (rev 7439) @@ -1 +1 @@ -img{border:0;}form{margin:0;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}body{background:#fffff0;font-family:Arial,Helvetica,sans-serif;font-size:85%;margin:1.5ex 1em;}div.wikitext hr{height:1px;}div.wikitext pre{font-family:monospace;}div.wikitext{margin-top:1ex;margin-bottom:.5ex;background-color:white;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;padding-left:.8em;padding-right:.8em;padding-top:.5ex;padding-bottom:.5ex;clear:both;}div#browse{margin-top:1px;margin-bottom:.5px;}input#inp-openid{background:url('images/openid.png') bottom left no-repeat;background-repeat:no-repeat;padding-left:18px!important;}.pageinfo-majoredit{font-weight:bold;}.wiki-summary{font-size:94%;font-style:italic;}body.sidebar{font-size:smaller;margin:.5em;}body.sidebar div.wikitext{padding:.5em;}body.sidebar div.wikitext ul{padding-left:1em;}body.sidebar h2{margin-top:0;}div.wikiaction{background-color:#eee;}form.wikiadmin div{background-color:#fee;}form.wikiformrich{background-color:#eee;}.wiki,.named-wiki{text-decoration:none;font-weight:bold;}.wiki relation,.named-wiki relation,.wiki attribute,.named-wiki attribute{font-style:oblique;font-weight:bold;}span.relation-symbol{font-weight:bold;font-family:monospace;letter-spacing:.1em;}a.wikiaction,a.wikiadmin,a.wiki-rc-action,a.wikiunsafe,input.wikiaction,input.button,input.wikiadmin{text-decoration:none;font-family:Arial,Helvetica,sans-serif;white-space:nowrap;}a.wikiaction,a.wikiaction:visited,input.wikiaction,input.button{background-color:#ddd;}.wikiunsafe{background-color:#fcc;}a.wikiadmin,a.wikiadmin:visited,input.wikiadmin{background-color:#fdd;}.wikiunknown,.named-wikiunknown{font-weight:normal;font-size:100%;}.wikiunknown a,.named-wikiunknown a{color:#447;background-color:#eee;text-decoration:none;font-weight:normal;font-size:smaller;}.backlinks{text-decoration:underline;color:#006;}h1 .backlinks{text-decoration:underline;}.wikipage{font-weight:normal;}.interwiki{text-decoration:none;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}a.wikibutton,a.wikibutton:visited,input.wikibutton{background-color:white;}h1,h2,h3,h4,h5,h6{font-family:Arial,Helvetica,sans-serif;}h1{margin:0;font-size:140%;}table,td{font-family:Arial,Helvetica,sans-serif;}caption{font-family:Arial,Helvetica,sans-serif;}.pagelist{font-size:smaller;}.pagelist thead td{background:#e8e8e8;text-decoration:none;font-weight:bold;}.pagelist thead td u{text-decoration:none;}.pagelist tr.evenrow{background:#eee;}.pagelist tr.oddrow{background:white;}th.gridbutton{background-color:ThreedLightShadow;color:black;font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:small;font-weight:normal;white-space:nowrap;margin:5px 0;max-height:24px;padding:5px 0 5px 0;border-width:1px;border-style:solid;border-color:ThreedHighlight ThreedDarkShadow ThreedDarkShadow ThreedHighlight;}input.gridbutton,a.gridbutton,a:hover.gridbutton,a:visited.gridbutton{text-decoration:none;font-size:small;font-weight:normal;font-family:Tahoma,sans-serif,Arial,Helvetica;background-color:ThreedLightShadow;color:black;}.toolbar,input.button,#signin{font-family:Arial,Helvetica,sans-serif;}.toolbar{padding:0;margin:0;}.edit-toolbar{padding:0;margin:0;}.edit-toolbar img,.edit-toolbar input{background-color:#fff;border:1px solid ButtonFace;}#navbuttons{padding-right:4em;padding-bottom:1ex;}.editdate{font-family:Arial,Helvetica,sans-serif;margin:0;padding:0;padding-top:.25ex;}#logo img{float:right;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;}textarea.wikiedit{width:100%;margin-bottom:.5ex;margin-top:.5ex;padding:2px;}#editarea-size{margin-top:1ex;text-align:right;font-size:smaller;}#search-replace{margin-top:1ex;text-align:left;font-size:smaller;}#toolbar{padding:0;}#searchholder{display:inline;}.search-context{background:white;font-style:oblique;}.search-term{background:yellow;font-weight:normal;}#LSResult{position:absolute;text-align:left;display:none;z-index:100;background-color:white;border:1px solid #d0d0d0;font-size:9px;overflow:hidden;}#LSHighlight{background-color:#f08000;}#LSResult .evenrow{background-color:#f0f0f0;}.LSEnd{text-align:right;}.LSRow:hover{background-color:white;}.LSRow{padding:1px;}ul.LSRes{margin:0;padding:0;}li.LSRow{margin:0;list-style-image:none;}.transclusion-title{text-align:right;font-style:oblique;font-size:smaller;text-decoration:underline;margin-bottom:.25ex;margin-right:.25em;}.transclusion,.wiki-edithelp{font-size:smaller;}.transclusion{border:1px solid gray;padding-left:.8em;padding-right:.8em;padding-top:0;padding-bottom:0;margin-left:.25em;margin-right:.25em;margin-bottom:.1ex;}.wiki-edithelp{background:white;border:medium solid #fff8dc;padding-left:.5em;padding-right:.5em;padding-top:.75ex;padding-bottom:.75ex;margin-left:0;margin-right:0;margin-top:1ex;margin-bottom:1ex;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;padding-left:.5em;padding-right:.5em;padding-top:.5ex;padding-bottom:.5ex;margin:0;}table.cal{border:1px outset gray;background:white;margin:.5ex .5em;padding:1px;empty-cells:hide;}table.cal td{background:white;text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;}.cal-arrow{font-weight:bold;text-decoration:none;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:underline;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{margin:1px;border:1px solid gray;}.diff{margin-top:1ex;margin-bottom:.5ex;background:white;border:1px #ccc solid;color:black;border-top:1px solid #494f5d;border-left:1px solid #494f5d;border-bottom:1px solid #c6d2de;border-right:1px solid #c6d2de;padding-top:1px;padding-bottom:1px;padding-left:.125em;padding-right:.125em;padding:0;clear:both;}.diff .block{background:#ddd;padding-left:1em;}.diff .context{background:white;border:none;}.difftext{margin-top:0;margin-bottom:0;background:white;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;clear:both;}.diff .block tt{font-weight:normal;font-family:monospace;color:black;margin-left:0;border:none;}.diff del,.diff ins{font-weight:bold;text-decoration:none;}.diff .original,.diff .deleted,.diff .final,.diff .added{background:white;}.diff .original,.diff .deleted{background:#fcc;border:none;}.diff .final,.diff .added{background:#cfc;border:none;}.diff del{background:#f99;}.diff ins{background:#9f9;}td.pageinfo{font-weight:bold;}.pageinfo-minoredit,.pageinfo-authorid{font-size:smaller;font-style:oblique;}.printer,.no-css{display:none;}div.errors{color:black;background:#eee;margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;border:medium solid red;clear:both;}h4.errors{color:red;margin:0;padding:0;text-decoration:underline;}div.warning{color:black;background:#eee;margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;border:thin solid blue;clear:both;}.error{font-family:monospace;font-size:120%;}.error ul{font-family:monospace;}.debug{color:black;background:white;font-family:monospace;font-size:smaller;margin:1ex 0;padding:.5ex .5em;border:medium solid #fff8dc;}.hint{color:black;background:#eee;font-style:italic;margin-left:3em;padding:.5ex .5em;border:thin solid #aaa;}span.hint{padding:0;}.disabled-plugin{clear:both;margin:1ex 0;padding:0;}.disabled-plugin .title{color:#400;background-color:inherit;font-size:x-small;text-align:right;padding:0 .5em;}.disabled-plugin pre{color:black;background:#ddd;margin:0;padding:.3ex .5em;}span.redirectfrom{font-size:small;font-style:oblique;font-weight:normal;padding-left:1em;}.wiki-dl-table{border-collapse:collapse;border:2px #444 solid;}.wiki-dl-table tr{border-top:2px #444 solid;border-bottom:2px #444 solid;border-left:none;border-right:none;}.wiki-dl-table th,.wiki-dl-table td{padding:.25em .5em;}.wiki-dl-table th{vertical-align:top;text-align:right;border-right:1px #444 solid;border-left:none;border-top:none;border-bottom:none;}.wiki-dl-table td{border:none;}blockquote.mail-style-quote{border-left:medium #284 solid;padding-left:1em;margin-left:0;margin-right:0;}.mail-style-quote blockquote.mail-style-quote{margin-left:-0.6em;}.floatleft{float:left;}.floatright{float:right;}div.wikiblog{margin:1ex 2em;padding:0;}div.wikiblog>div{margin:0;padding:.5ex .5em;}div.wikiblog>div.wikiblog-footer{padding:.2ex .5em;}h3.wikiblog-summary{font-size:medium;font-weight:bold;margin:0 0 1ex 0;}table.wikiblog-form{width:auto;border-collapse:collapse;margin:.25em 0;}.wikiblog-form caption{caption-side:top;font-weight:bold;text-align:left;padding:.5ex .5em;}.wikiblog-form th{vertical-align:top;text-align:right;padding:0 0 .3em .5em;}.wikiblog-form td{padding:.25em .5em;}.wikiblog-form td.submit-button{padding:0;}.wikiblog-form input[type=text],.wikiblog-form textarea{margin:0;width:100%;}div.wikicomment div.wikicomment-footer{padding:.2ex .5em;}div.wikicomment div.wikicomment-footer named-wiki{font-size:small;}table.interwiki-map{margin:1em 2em;}.interwiki-map th{text-decoration:underline;text-align:left;padding-left:1em;}.interwiki-map td.interwiki-url{padding-left:2em;}.interwiki-map th.interwiki-url{padding-left:3em;}.dialog{background-color:#cdf;color:black;margin:2em auto 2em auto;border:thin black solid;width:50%;}.dialog h1,.dialog p,.dialog div{text-align:center;}.dialog h1{font-size:large;margin:.5em 0 1em 0;}.dialog div.message{background-color:white;color:black;color:black;margin:0 1em;padding:.5em .5em;}.dialog p.buttons{margin:1em 0 .5em 0;}.clear-floats{clear:both;}.gensmall{font-size:10px;}.genmed{font-size:11px;}td.cat{font-weight:bold;letter-spacing:1px;color:#000;background:url(./images/cellpic1.png);height:27px;}td.row1{background:#eaedf4;color:#000;}td.row2{background:#d9e2ec;color:#000;}td.row3{background:#cad9ea;color:#000;}td.spacerow{background:#cad9ea;color:#000;}.forumline{background:#fff;color:#000;border:1px solid #069;}.box{background:#fff;border:1px solid silver;}.box-title{font-family:Tahoma,Arial,Helvetica,sans-serif;font-weight:normal;background-color:#ccc;color:black;text-align:center;border:none;padding:2px 0 2px 0;}.box-data{width:160px;font-size:9pt;font-weight:normal;border:none;}.box-data .wiki{font-weight:normal;}td.sidebar{border-spacing:0;margin:0;}div.boxright{background-color:#e9fbff;width:200px;right:10px;padding:.5em;float:right;border:thin solid #888;padding:.5em;}div.rss{margin:1em;padding:1em;font-size:.9em;background-color:#eee;border:thin dashed #aaa;}div.feed{color:#333;margin:-0.5em;margin-bottom:0;padding:.3em;font-weight:bold;background-color:#f2f2f2;font-size:1.2em;}div.itemdesc{padding-left:1em;}div.rssitem{border-top:thin dashed #aaa;}a.rssicon{font-weight:normal;font-size:small;vertical-align:middle;}table.sqlresult{border:1px outset gray;background:white;margin:.5ex .5em;padding:1px;}.sqlresult tr.evenrow{background:#eee;}.sqlresult tr.oddrow{background:white;}table.sqlresult td{margin:1px;border:1px solid gray;}img.tex{border:0;vertical-align:middle;}.boldsmall{font-weight:bold;font-size:11px;}.wikiwyg_toolbar{background:#D3D3D3;border:1px outset;letter-spacing:0;padding:2px;}span.wikiwyg_control_link a{padding-right:8px;}.wikiwyg_button{background:#D3D3D3;border:1px solid #D3D3D3;cursor:pointer;width:20px;height:20px;vertical-align:bottom;}.wikiwyg_button:hover{border:1px outset;}.wikiwyg_button:active{border:1px inset;}.wikiwyg_separator{background:#D3D3D3;border:1px solid #D3D3D3;width:9px;height:20px;vertical-align:bottom;}.wikiwyg_selector{width:70px;}.wikiwyg_wysiwyg table{border-collapse:collapse;margin-bottom:.2em;}.wikiwyg_wysiwyg table td{border:1px;border-style:solid;padding:.2em;vertical-align:top;}div.br{display:none;}.toolbar,div.toolbar{margin:.5ex 0;}div.wikitext{width:auto;}img{vertical-align:baseline;}input{margin:.1em;}input.numeric{text-align:right;}div.wikiaction,form.wikiadmin div{border-bottom:1px solid #d8d8e7;border-right:1px solid #d8d8e7;border-top:1px solid #96a2ae;border-left:1px solid #96a2ae;margin-top:.5ex;margin-bottom:.5ex;padding:.5ex .5em;display:table;}div.wikiaction input[type=text],div.wikiadmin input[type=text],form.wikiadmin input[type=file]{margin-right:.5em;}a.wikiaction,a.wikiadmin,a.wikiunsafe,input.wikiaction,input.wikiadmin,input.wikiunsafe,input.button{color:black;border:1px outset;padding:.05ex .25em .1ex .25em;height:auto;width:auto;line-height:2.6ex;}div#navbuttons,div#signin,div#actionbuttons{line-height:3.0ex;}.wikiunknown a,.named-wikiunknown a{border-top:1px solid #c6d2de;border-left:1px solid #c6d2de;border-bottom:1px solid #a2a2a2;border-right:1px solid #a2a2a2;padding-left:1px;padding-right:1px;padding-top:1px;margin-right:.15em;}img.linkicon{vertical-align:middle;}div#actionbuttons a#btn-edit{background:url('images/Edit-chalk-10g.png') bottom left no-repeat;background-repeat:no-repeat;padding-left:20px!important;padding-right:.5em!important;}a.wikibutton,a.wikibutton:visited,input.wikibutton{background-color:white;border:0;}.diff .prefix{position:relative;left:-1em;}.diff del,.diff ins{padding-left:1px;padding-right:1px;}div.errors{font-size:smaller;}table.boxed,table.bordered,table.bordered th,table.bordered td{border-width:1px;border-style:solid;border-collapse:collapse;vertical-align:top;}table.boxed td,table.bordered td,table.boxed th,table.bordered th{padding-left:5px;padding-right:5px;padding-top:0;padding-bottom:0;}table.boxed caption,table.bordered caption{text-align:center;font-weight:bold;caption-side:bottom;padding-top:.8em;}table.boxed th,table.bordered th{font-weight:bold;background-color:#d8d8d8;}#edit-public,h1.firstHeading-public,h1.firstHeading-rating-public{background-color:#ffce7b;border:1px solid #ffa500;} \ No newline at end of file +img{border:0;}form{margin:0;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}body{background:#fffff0;font-family:Arial,Helvetica,sans-serif;font-size:85%;margin:1.5ex 1em;}div.wikitext hr{height:1px;}div.wikitext pre{font-family:monospace;}div.wikitext{margin-top:1ex;margin-bottom:.5ex;background-color:white;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;padding-left:.8em;padding-right:.8em;padding-top:.5ex;padding-bottom:.5ex;clear:both;}div#browse{margin-top:1px;margin-bottom:.5px;}input#inp-openid{background:url('images/openid.png') bottom left no-repeat;background-repeat:no-repeat;padding-left:18px!important;}.pageinfo-majoredit{font-weight:bold;}.wiki-summary{font-size:94%;font-style:italic;}body.sidebar{font-size:smaller;margin:.5em;}body.sidebar div.wikitext{padding:.5em;}body.sidebar div.wikitext ul{padding-left:1em;}body.sidebar h2{margin-top:0;}div.wikiaction{background-color:#eee;}form.wikiadmin div{background-color:#fee;}form.wikiformrich{background-color:#eee;}.wiki,.named-wiki{text-decoration:none;font-weight:bold;}.wiki relation,.named-wiki relation,.wiki attribute,.named-wiki attribute{font-style:oblique;font-weight:bold;}span.relation-symbol{font-weight:bold;font-family:monospace;letter-spacing:.1em;}a.wikiaction,a.wikiadmin,a.wiki-rc-action,a.wikiunsafe,input.wikiaction,input.button,input.wikiadmin{text-decoration:none;font-family:Arial,Helvetica,sans-serif;white-space:nowrap;}a.wikiaction,a.wikiaction:visited,input.wikiaction,input.button{background-color:#ddd;}.wikiunsafe{background-color:#fcc;}a.wikiadmin,a.wikiadmin:visited,input.wikiadmin{background-color:#fdd;}.wikiunknown,.named-wikiunknown{font-weight:normal;font-size:100%;}.wikiunknown a,.named-wikiunknown a{color:#447;background-color:#eee;text-decoration:none;font-weight:normal;font-size:smaller;}.backlinks{text-decoration:underline;color:#006;}h1 .backlinks{text-decoration:underline;}.wikipage{font-weight:normal;}.interwiki{text-decoration:none;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}a.wikibutton,a.wikibutton:visited,input.wikibutton{background-color:white;}h1,h2,h3,h4,h5,h6{font-family:Arial,Helvetica,sans-serif;}h1{margin:0;font-size:140%;}table,td{font-family:Arial,Helvetica,sans-serif;}caption{font-family:Arial,Helvetica,sans-serif;}.pagelist{font-size:smaller;}.pagelist thead td{background:#e8e8e8;text-decoration:none;font-weight:bold;}.pagelist thead td u{text-decoration:none;}.pagelist tr.evenrow{background:#eee;}.pagelist tr.oddrow{background:white;}th.gridbutton{background-color:ThreeDLightShadow;color:black;font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:small;font-weight:normal;white-space:nowrap;margin:5px 0;max-height:24px;padding:5px 0 5px 0;border-width:1px;border-style:solid;border-color:ThreeDHighlight ThreeDDarkShadow ThreeDDarkShadow ThreeDHighlight;}input.gridbutton,a.gridbutton,a:hover.gridbutton,a:visited.gridbutton{text-decoration:none;font-size:small;font-weight:normal;font-family:Tahoma,Arial,Helvetica,sans-serif;background-color:ThreeDLightShadow;color:black;}.toolbar,input.button,#signin{font-family:Arial,Helvetica,sans-serif;}.toolbar{padding:0;margin:0;}.edit-toolbar{padding:0;margin:0;}.edit-toolbar img,.edit-toolbar input{background-color:#fff;border:1px solid ButtonFace;}#navbuttons{padding-right:4em;padding-bottom:1ex;}.editdate{font-family:Arial,Helvetica,sans-serif;margin:0;padding:0;padding-top:.25ex;}#logo img{float:right;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;}textarea.wikiedit{width:100%;margin-bottom:.5ex;margin-top:.5ex;padding:2px;}#editarea-size{margin-top:1ex;text-align:right;font-size:smaller;}#search-replace{margin-top:1ex;text-align:left;font-size:smaller;}#toolbar{padding:0;}#searchholder{display:inline;}.search-context{background:white;font-style:oblique;}.search-term{background:yellow;font-weight:normal;}#LSResult{position:absolute;text-align:left;display:none;z-index:100;background-color:white;border:1px solid #d0d0d0;font-size:9px;overflow:hidden;}#LSHighlight{background-color:#f08000;}#LSResult .evenrow{background-color:#f0f0f0;}.LSEnd{text-align:right;}.LSRow:hover{background-color:white;}.LSRow{padding:1px;}ul.LSRes{margin:0;padding:0;}li.LSRow{margin:0;list-style-image:none;}.transclusion-title{text-align:right;font-style:oblique;font-size:smaller;text-decoration:underline;margin-bottom:.25ex;margin-right:.25em;}.transclusion,.wiki-edithelp{font-size:smaller;}.transclusion{border:1px solid gray;padding-left:.8em;padding-right:.8em;padding-top:0;padding-bottom:0;margin-left:.25em;margin-right:.25em;margin-bottom:.1ex;}.wiki-edithelp{background:white;border:medium solid #fff8dc;padding-left:.5em;padding-right:.5em;padding-top:.75ex;padding-bottom:.75ex;margin-left:0;margin-right:0;margin-top:1ex;margin-bottom:1ex;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;padding-left:.5em;padding-right:.5em;padding-top:.5ex;padding-bottom:.5ex;margin:0;}table.cal{border:1px outset gray;background:white;margin:.5ex .5em;padding:1px;empty-cells:hide;}table.cal td{background:white;text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;}.cal-arrow{font-weight:bold;text-decoration:none;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:underline;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{margin:1px;border:1px solid gray;}.diff{margin-top:1ex;margin-bottom:.5ex;background:white;border:1px #ccc solid;color:black;border-top:1px solid #494f5d;border-left:1px solid #494f5d;border-bottom:1px solid #c6d2de;border-right:1px solid #c6d2de;padding-top:1px;padding-bottom:1px;padding-left:.125em;padding-right:.125em;padding:0;clear:both;}.diff .block{background:#ddd;padding-left:1em;}.diff .context{background:white;border:none;}.difftext{margin-top:0;margin-bottom:0;background:white;border:1px black solid;border-top:1px #e8e6df solid;border-left:1px #e8e6df solid;border-bottom:1px #d2d2d2 solid;border-right:1px #b2b2b2 solid;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;clear:both;}.diff .block tt{font-weight:normal;font-family:monospace;color:black;margin-left:0;border:none;}.diff del,.diff ins{font-weight:bold;text-decoration:none;}.diff .original,.diff .deleted,.diff .final,.diff .added{background:white;}.diff .original,.diff .deleted{background:#fcc;border:none;}.diff .final,.diff .added{background:#cfc;border:none;}.diff del{background:#f99;}.diff ins{background:#9f9;}td.pageinfo{font-weight:bold;}.pageinfo-minoredit,.pageinfo-authorid{font-size:smaller;font-style:oblique;}.printer,.no-css{display:none;}div.errors{color:black;background:#eee;margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;border:medium solid red;clear:both;}h4.errors{color:red;margin:0;padding:0;text-decoration:underline;}div.warning{color:black;background:#eee;margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;border:thin solid blue;clear:both;}.error{font-family:monospace;font-size:120%;}.error ul{font-family:monospace;}.debug{color:black;background:white;font-family:monospace;font-size:smaller;margin:1ex 0;padding:.5ex .5em;border:medium solid #fff8dc;}.hint{color:black;background:#eee;font-style:italic;margin-left:3em;padding:.5ex .5em;border:thin solid #aaa;}span.hint{padding:0;}.disabled-plugin{clear:both;margin:1ex 0;padding:0;}.disabled-plugin .title{color:#400;background-color:inherit;font-size:x-small;text-align:right;padding:0 .5em;}.disabled-plugin pre{color:black;background:#ddd;margin:0;padding:.3ex .5em;}span.redirectfrom{font-size:small;font-style:oblique;font-weight:normal;padding-left:1em;}.wiki-dl-table{border-collapse:collapse;border:2px #444 solid;}.wiki-dl-table tr{border-top:2px #444 solid;border-bottom:2px #444 solid;border-left:none;border-right:none;}.wiki-dl-table th,.wiki-dl-table td{padding:.25em .5em;}.wiki-dl-table th{vertical-align:top;text-align:right;border-right:1px #444 solid;border-left:none;border-top:none;border-bottom:none;}.wiki-dl-table td{border:none;}blockquote.mail-style-quote{border-left:medium #284 solid;padding-left:1em;margin-left:0;margin-right:0;}.mail-style-quote blockquote.mail-style-quote{margin-left:-0.6em;}.floatleft{float:left;}.floatright{float:right;}div.wikiblog{margin:1ex 2em;padding:0;}div.wikiblog>div{margin:0;padding:.5ex .5em;}div.wikiblog>div.wikiblog-footer{padding:.2ex .5em;}h3.wikiblog-summary{font-size:medium;font-weight:bold;margin:0 0 1ex 0;}table.wikiblog-form{width:auto;border-collapse:collapse;margin:.25em 0;}.wikiblog-form caption{caption-side:top;font-weight:bold;text-align:left;padding:.5ex .5em;}.wikiblog-form th{vertical-align:top;text-align:right;padding:0 0 .3em .5em;}.wikiblog-form td{padding:.25em .5em;}.wikiblog-form td.submit-button{padding:0;}.wikiblog-form input[type=text],.wikiblog-form textarea{margin:0;width:100%;}div.wikicomment div.wikicomment-footer{padding:.2ex .5em;}div.wikicomment div.wikicomment-footer named-wiki{font-size:small;}table.interwiki-map{margin:1em 2em;}.interwiki-map th{text-decoration:underline;text-align:left;padding-left:1em;}.interwiki-map td.interwiki-url{padding-left:2em;}.interwiki-map th.interwiki-url{padding-left:3em;}.dialog{background-color:#cdf;color:black;margin:2em auto 2em auto;border:thin black solid;width:50%;}.dialog h1,.dialog p,.dialog div{text-align:center;}.dialog h1{font-size:large;margin:.5em 0 1em 0;}.dialog div.message{background-color:white;color:black;color:black;margin:0 1em;padding:.5em .5em;}.dialog p.buttons{margin:1em 0 .5em 0;}.clear-floats{clear:both;}.gensmall{font-size:10px;}.genmed{font-size:11px;}td.cat{font-weight:bold;letter-spacing:1px;color:#000;background:url(./images/cellpic1.png);height:27px;}td.row1{background:#eaedf4;color:#000;}td.row2{background:#d9e2ec;color:#000;}td.row3{background:#cad9ea;color:#000;}td.spacerow{background:#cad9ea;color:#000;}.forumline{background:#fff;color:#000;border:1px solid #069;}.box{background:#fff;border:1px solid silver;}.box-title{font-family:Tahoma,Arial,Helvetica,sans-serif;font-weight:normal;background-color:#ccc;color:black;text-align:center;border:none;padding:2px 0 2px 0;}.box-data{width:160px;font-size:9pt;font-weight:normal;border:none;}.box-data .wiki{font-weight:normal;}td.sidebar{border-spacing:0;margin:0;}div.boxright{background-color:#e9fbff;width:200px;right:10px;padding:.5em;float:right;border:thin solid #888;padding:.5em;}div.rss{margin:1em;padding:1em;font-size:.9em;background-color:#eee;border:thin dashed #aaa;}div.feed{color:#333;margin:-0.5em;margin-bottom:0;padding:.3em;font-weight:bold;background-color:#f2f2f2;font-size:1.2em;}div.itemdesc{padding-left:1em;}div.rssitem{border-top:thin dashed #aaa;}a.rssicon{font-weight:normal;font-size:small;vertical-align:middle;}table.sqlresult{border:1px outset gray;background:white;margin:.5ex .5em;padding:1px;}.sqlresult tr.evenrow{background:#eee;}.sqlresult tr.oddrow{background:white;}table.sqlresult td{margin:1px;border:1px solid gray;}img.tex{border:0;vertical-align:middle;}.boldsmall{font-weight:bold;font-size:11px;}.wikiwyg_toolbar{background:#D3D3D3;border:1px outset;letter-spacing:0;padding:2px;}span.wikiwyg_control_link a{padding-right:8px;}.wikiwyg_button{background:#D3D3D3;border:1px solid #D3D3D3;cursor:pointer;width:20px;height:20px;vertical-align:bottom;}.wikiwyg_button:hover{border:1px outset;}.wikiwyg_button:active{border:1px inset;}.wikiwyg_separator{background:#D3D3D3;border:1px solid #D3D3D3;width:9px;height:20px;vertical-align:bottom;}.wikiwyg_selector{width:70px;}.wikiwyg_wysiwyg table{border-collapse:collapse;margin-bottom:.2em;}.wikiwyg_wysiwyg table td{border:1px;border-style:solid;padding:.2em;vertical-align:top;}div.br{display:none;}.toolbar,div.toolbar{margin:.5ex 0;}div.wikitext{width:auto;}img{vertical-align:baseline;}input{margin:.1em;}input.numeric{text-align:right;}div.wikiaction,form.wikiadmin div{border-bottom:1px solid #d8d8e7;border-right:1px solid #d8d8e7;border-top:1px solid #96a2ae;border-left:1px solid #96a2ae;margin-top:.5ex;margin-bottom:.5ex;padding:.5ex .5em;display:table;}div.wikiaction input[type=text],div.wikiadmin input[type=text],form.wikiadmin input[type=file]{margin-right:.5em;}a.wikiaction,a.wikiadmin,a.wikiunsafe,input.wikiaction,input.wikiadmin,input.wikiunsafe,input.button{color:black;border:1px outset;padding:.05ex .25em .1ex .25em;height:auto;width:auto;line-height:2.6ex;}div#navbuttons,div#signin,div#actionbuttons{line-height:3.0ex;}.wikiunknown a,.named-wikiunknown a{border-top:1px solid #c6d2de;border-left:1px solid #c6d2de;border-bottom:1px solid #a2a2a2;border-right:1px solid #a2a2a2;padding-left:1px;padding-right:1px;padding-top:1px;margin-right:.15em;}img.linkicon{vertical-align:middle;}div#actionbuttons a#btn-edit{background:url('images/UEB16.png') bottom left no-repeat;background-repeat:no-repeat;padding-left:20px!important;padding-right:.5em!important;}a.wikibutton,a.wikibutton:visited,input.wikibutton{background-color:white;border:0;}.diff .prefix{position:relative;left:-1em;}.diff del,.diff ins{padding-left:1px;padding-right:1px;}div.errors{font-size:smaller;}table.boxed,table.bordered,table.bordered th,table.bordered td{border-width:1px;border-style:solid;border-collapse:collapse;vertical-align:top;}table.boxed td,table.bordered td,table.boxed th,table.bordered th{padding-left:5px;padding-right:5px;padding-top:0;padding-bottom:0;}table.boxed caption,table.bordered caption{text-align:center;font-weight:bold;caption-side:bottom;padding-top:.8em;}table.boxed th,table.bordered th{font-weight:bold;background-color:#d8d8d8;}#edit-public,h1.firstHeading-public,h1.firstHeading-rating-public{background-color:#ffce7b;border:1px solid #ffa500;} \ No newline at end of file Modified: trunk/themes/default/wikicommon-min.js =================================================================== --- trunk/themes/default/wikicommon-min.js 2010-05-21 09:31:51 UTC (rev 7438) +++ trunk/themes/default/wikicommon-min.js 2010-05-21 09:33:20 UTC (rev 7439) @@ -1 +1 @@ -function WikiURL(a){if(typeof a=="undefined"){a=pagename}if(use_path_info){return script_url+"/"+escapeQuotes(a)+"?"}else{return script_url+"?pagename="+escapeQuotes(a)+"&"}}function flipAll(a){var c=-1;for(var b=0;b<a.length;b++){fldObj=a.elements[b];if((fldObj.type=="checkbox")&&(fldObj.name.substring(0,2)=="p[")){if(c==-1){c=(fldObj.checked)?true:false}fldObj.checked=(c)?false:true}}}function toggletoc(b,c,e,d){var f=document.getElementById(d);if(f.style.display=="none"){f.style.display="block";b.title='"._("Click to hide the TOC")."';b.src=c}else{f.style.display="none";b.title='"._("Click to display")."';b.src=e}}var doneOnloadHook;if(!window.onloadFuncts){var onloadFuncts=[]}function addOnloadHook(a){onloadFuncts[onloadFuncts.length]=a}function hookEvent(b,a){if(window.addEventListener){window.addEventListener(b,a,false)}else{if(window.attachEvent){window.attachEvent("on"+b,a)}}}function showHideFolder(e){var d=document.getElementById(e+"-body");if(d==null){return}var b=document.getElementById(e+"-img");var a=new Date();a.setTime(a.getTime()+(30*24*60*60*1000));var c=" expires="+a.toGMTString();if(d.style.display=="none"){d.style.display="block";b.src=folderArrowPath+"/folderArrowOpen.png";document.cookie="folder_"+e+"=Open;"+c}else{d.style.display="none";b.src=folderArrowPath+"/folderArrowClosed.png";document.cookie="folder_"+e+"=Closed;"+c}}function setupshowHideFolder(){var e=["p-tb","p-tbx","p-tags","p-rc"];for(var d=0;d<e.length;d++){if(e[d]){var f=e[d];var b="folder_"+f+"=";var c=document.cookie.indexOf(b);if(c>-1){var a=document.getElementById(f+"-body");if(a){a.style.display=document.cookie.charAt(c+b.length)=="C"?"block":"none"}showHideFolder(f)}}}}hookEvent("load",setupshowHideFolder);var ts_image_up="sort_up.gif";var ts_image_down="sort_down.gif";var ts_image_none="sort_none.gif";var wgContentLanguage="en";var ts_europeandate=true;var ts_alternate_row_colors=true;var SORT_COLUMN_INDEX;function sortables_init(){var a=0;var b=getElementsByClassName(document,"table","sortable");for(var c=0;c<b.length;c++){if(!b[c].id){b[c].setAttribute("id","sortable_table_id_"+a);++a}ts_makeSortable(b[c])}}function ts_makeSortable(d){var e;var c=stylepath+"images/";if(d.rows&&d.rows.length>0){if(d.tHead&&d.tHead.rows.length>0){e=d.tHead.rows[d.tHead.rows.length-1]}else{e=d.rows[0]}}if(!e){return}for(var b=0;b<e.cells.length;b++){var a=e.cells[b];if((" "+a.className+" ").indexOf(" unsortable ")==-1){a.innerHTML+=' <a href="#" class="sortheader" onclick="ts_resortTable(this);return false;"><span class="sortarrow"><img src="'+c+ts_image_none+'" alt="↓"/></span></a>'}}if(ts_alternate_row_colors){ts_alternate(d)}}function ts_getInnerText(d){if(typeof d=="string"){return d}if(typeof d=="undefined"){return d}if(d.innerText){return d.innerText}var e="";var c=d.childNodes;var a=c.length;for(var b=0;b<a;b++){switch(c[b].nodeType){case 1:e+=ts_getInnerText(c[b]);break;case 3:e+=c[b].nodeValue;break}}return e}function ts_parseFloat(a){if(!a){return 0}a=parseFloat(a.replace(/,/,""));return(isNaN(a)?0:a)}function ts_sort_date(d,c){var e=ts_dateToSortKey(d[1]);var f=ts_dateToSortKey(c[1]);return(e<f?-1:e>f?1:d[2]-c[2])}function ts_sort_currency(d,c){var e=ts_parseFloat(d[1].replace(/[^0-9.]/g,""));var f=ts_parseFloat(c[1].replace(/[^0-9.]/g,""));return(e!=f?e-f:d[2]-c[2])}function ts_sort_numeric(d,c){var e=ts_parseFloat(d[1]);var f=ts_parseFloat(c[1]);return(e!=f?e-f:d[2]-c[2])}function ts_sort_caseinsensitive(d,c){var e=d[1].toLowerCase();var f=c[1].toLowerCase();return(e<f?-1:e>f?1:d[2]-c[2])}function ts_sort_default(d,c){return(d[1]<c[1]?-1:d[1]>c[1]?1:d[2]-c[2])}function ts_alternate(h){var f=h.getElementsByTagName("tbody");for(var e=0;e<f.length;e++){var g=f[e].getElementsByTagName("tr");for(var d=0;d<g.length;d++){var c=g[d].className.split(" ");var b="";for(var a=0;a<c.length;a++){if(c[a]!=""&&c[a]!="even"&&c[a]!="odd"){b+=c[a]+" "}}g[d].className=b+(d%2==0?"even":"odd")}}}function runOnloadHook(){if(doneOnloadHook||!(document.getElementById&&document.getElementsByTagName)){return}doneOnloadHook=true;sortables_init();for(var a=0;a<onloadFuncts.length;a++){onloadFuncts[a]()}}hookEvent("load",runOnloadHook);function getAllSheets(){if(!window.ScriptEngine&&navigator.__ice_version){return document.styleSheets}if(document.getElementsByTagName){var c=document.getElementsByTagName("link"),d=document.getElementsByTagName("style")}else{if(document.styleSheets&&document.all){var c=document.all.tags("LINK"),d=document.all.tags("STYLE")}else{return[]}}for(var b=0,e=[];c[b];b++){var a=c[b].rel?c[b].rel:c[b].getAttribute?c[b].getAttribute("rel"):"";if(typeof(a)=="string"&&a.toLowerCase().indexOf("style")+1){e[e.length]=c[b]}}for(var b=0;d[b];b++){e[e.length]=d[b]}return e}function changeStyle(){for(var a=0,b=getAllSheets();b[a];a++){if(b[a].title){b[a].disabled=true}for(var c=0;c<arguments.length;c++){if(b[a].title==arguments[c]){b[a].disabled=false}}}}function PrinterStylesheet(){changeStyle("Printer")}; \ No newline at end of file +function escapeQuotes(b){var a=new RegExp("'","g");b=b.replace(a,"\\'");a=new RegExp('"',"g");b=b.replace(a,""");a=new RegExp("\\n","g");b=b.replace(a,"\\n");return b}function WikiURL(a){if(typeof a=="undefined"){a=pagename}if(use_path_info){return script_url+"/"+escapeQuotes(a)+"?"}else{return script_url+"?pagename="+escapeQuotes(a)+"&"}}function flipAll(a){var c=-1;for(var b=0;b<a.length;b++){fldObj=a.elements[b];if((fldObj.type=="checkbox")&&(fldObj.name.substring(0,2)=="p[")){if(c==-1){c=(fldObj.checked)?true:false}fldObj.checked=(c)?false:true}}}function toggletoc(b,c,e,d){var f=document.getElementById(d);if(f.style.display=="none"){f.style.display="block";b.title='"._("Click to hide the TOC")."';b.src=c}else{f.style.display="none";b.title='"._("Click to display")."';b.src=e}}var doneOnloadHook;if(!window.onloadFuncts){var onloadFuncts=[]}function addOnloadHook(a){onloadFuncts[onloadFuncts.length]=a}function hookEvent(b,a){if(window.addEventListener){window.addEventListener(b,a,false)}else{if(window.attachEvent){window.attachEvent("on"+b,a)}}}function showHideFolder(e){var d=document.getElementById(e+"-body");if(d==null){return}var b=document.getElementById(e+"-img");var a=new Date();a.setTime(a.getTime()+(30*24*60*60*1000));var c=" expires="+a.toGMTString();if(d.style.display=="none"){d.style.display="block";b.src=folderArrowPath+"/folderArrowOpen.png";document.cookie="folder_"+e+"=Open;"+c}else{d.style.display="none";b.src=folderArrowPath+"/folderArrowClosed.png";document.cookie="folder_"+e+"=Closed;"+c}}function setupshowHideFolder(){var e=["p-tb","p-tbx","p-tags","p-rc"];for(var d=0;d<e.length;d++){if(e[d]){var f=e[d];var b="folder_"+f+"=";var c=document.cookie.indexOf(b);if(c>-1){var a=document.getElementById(f+"-body");if(a){a.style.display=document.cookie.charAt(c+b.length)=="C"?"block":"none"}showHideFolder(f)}}}}hookEvent("load",setupshowHideFolder);function runOnloadHook(){if(doneOnloadHook||!(document.getElementById&&document.getElementsByTagName)){return}doneOnloadHook=true;sortables_init();for(var a=0;a<onloadFuncts.length;a++){onloadFuncts[a]()}}hookEvent("load",runOnloadHook);function getAllSheets(){if(!window.ScriptEngine&&navigator.__ice_version){return document.styleSheets}if(document.getElementsByTagName){var c=document.getElementsByTagName("link"),d=document.getElementsByTagName("style")}else{if(document.styleSheets&&document.all){var c=document.all.tags("LINK"),d=document.all.tags("STYLE")}else{return[]}}for(var b=0,e=[];c[b];b++){var a=c[b].rel?c[b].rel:c[b].getAttribute?c[b].getAttribute("rel"):"";if(typeof(a)=="string"&&a.toLowerCase().indexOf("style")+1){e[e.length]=c[b]}}for(var b=0;d[b];b++){e[e.length]=d[b]}return e}function changeStyle(){for(var a=0,b=getAllSheets();b[a];a++){if(b[a].title){b[a].disabled=true}for(var c=0;c<arguments.length;c++){if(b[a].title==arguments[c]){b[a].disabled=false}}}}function PrinterStylesheet(){changeStyle("Printer")}; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2010-09-13 12:41:41
|
Revision: 7686 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7686&view=rev Author: vargenau Date: 2010-09-13 12:41:32 +0000 (Mon, 13 Sep 2010) Log Message: ----------- Center pop-up windows Modified Paths: -------------- trunk/themes/default/toolbar.js Added Paths: ----------- trunk/themes/default/toolbar.css Property Changed: ---------------- trunk/themes/default/sortable.js trunk/themes/default/wikicommon.js Property changes on: trunk/themes/default/sortable.js ___________________________________________________________________ Modified: svn:keywords - id + Id Added: trunk/themes/default/toolbar.css =================================================================== --- trunk/themes/default/toolbar.css (rev 0) +++ trunk/themes/default/toolbar.css 2010-09-13 12:41:32 UTC (rev 7686) @@ -0,0 +1,26 @@ +/* + * $Id$ + * + */ + +body { + font-family: Tahoma,Arial,Helvetica,sans-serif; + font-size: 10pt; + background-color: #dddddd; +} + +input { + font-weight: bold; + margin-left: 2px; + margin-right: 2px; +} + +option, td { + font-size: 9pt +} + +#buttons { + background-color: #dddddd; + padding-right: 10px; + width: 180px; +} Property changes on: trunk/themes/default/toolbar.css ___________________________________________________________________ Added: svn:keywords + Id Modified: trunk/themes/default/toolbar.js =================================================================== --- trunk/themes/default/toolbar.js 2010-09-13 12:27:54 UTC (rev 7685) +++ trunk/themes/default/toolbar.js 2010-09-13 12:41:32 UTC (rev 7686) @@ -1,6 +1,10 @@ // Toolbar JavaScript support functions. Taken from mediawiki // $Id$ +// Some "constants" +var doctype = '<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; +var cssfile = '<link rel="stylesheet" type="text/css" href="'+data_path+'/themes/default/toolbar.css" />' + // Un-trap us from framesets if( window.top != window ) window.top.location = window.location; var pullwin; @@ -36,17 +40,24 @@ //} // pages is either an array of strings or an array of array(name,value) function showPulldown(title, pages, okbutton, closebutton, fromid) { - height = new String(Math.min(315, 80 + (pages.length * 12))); // 270 or smaller - pullwin = window.open('','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,height='+height+',width=200'); - pullwin.window.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>'+escapeQuotes(title)+'</title><style type=\"text/css\"><'+'!'+'-- body {font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:10pt;background-color:#dddddd;} input { font-weight:bold;margin-left:2px;margin-right:2px;} option {font-size:9pt} #buttons { background-color:#dddddd;padding-right:10px;width:180px;} --'+'></style></head>'); - pullwin.window.document.write('\n<body bgcolor=\"#dddddd\"><form action=\"\"><div id=\"buttons\"><input type=\"button\" value=\"'+okbutton+'\" onclick=\"if(self.opener)self.opener.do_pulldown(document.forms[0].select.value,\''+fromid+'\'); return false;\"><input type=\"button\" value=\"'+closebutton+'\" onClick=\"self.close(); return false;\"></div>\n<select style=\"margin-top:10px;width:190px;\" name=\"select\" size=\"'+((pages.length>20)?'20':new String(pages.length))+'\" onDblClick=\"if(self.opener)self.opener.do_pulldown(document.forms[0].select.value,\''+fromid+'\'); return false;\">'); + var height = new String(Math.min(315, 80 + (pages.length * 12))); // 270 or smaller + var width = 500; + var h = (screen.height-height)/2; + var w = (screen.width-width)/2; + pullwin = window.open('','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,top='+h+',left='+w+',height='+height+',width='+width); + pullwin.window.document.writeln(doctype); + pullwin.window.document.writeln('<html>\n<head>\n<title>'+escapeQuotes(title)+'</title>'); + pullwin.window.document.writeln(cssfile); + pullwin.window.document.writeln('</head>\n<body>'); + pullwin.window.document.writeln('<p>\nYou can double-click to insert.\n</p>'); + pullwin.window.document.writeln('<form action=\"\"><div id=\"buttons\"><input type=\"button\" value=\"'+okbutton+'\" onclick=\"if(self.opener)self.opener.do_pulldown(document.forms[0].select.value,\''+fromid+'\'); return false;\" /><input type=\"button\" value=\"'+closebutton+'\" onclick=\"self.close(); return false;\" /></div>\n<div>\n<select style=\"margin-top:10px;width:190px;\" name=\"select\" size=\"'+((pages.length>20)?'20':new String(pages.length))+'\" ondblclick=\"if(self.opener)self.opener.do_pulldown(document.forms[0].select.value,\''+fromid+'\'); return false;\">'); for (i=0; i<pages.length; i++){ if (typeof pages[i] == 'string') pullwin.window.document.write('<option value="'+pages[i]+'">'+escapeQuotes(pages[i])+'</option>\n'); else // array=object pullwin.window.document.write('<option value="'+pages[i][1]+'">'+escapeQuotes(pages[i][0])+'</option>\n'); } - pullwin.window.document.write('</select></form></body></html>'); + pullwin.window.document.writeln('</select>\n</div>\n</form>\n</body>\n</html>'); pullwin.window.document.close(); return false; } @@ -183,8 +194,16 @@ } } function replace() { - replacewin = window.open('','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,height=90,width=450'); - replacewin.window.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>'+msg_repl_title+"</title><style type=\"text/css\"><'+'!'+'-- body, input {font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:10pt;font-weight:bold;} td {font-size:9pt} --'+'></style></head><body bgcolor=\"#dddddd\" onload=\"if(document.forms[0].searchinput.focus) document.forms[0].searchinput.focus(); return false;\"><form action=\"\"><center><table><tr><td align=\"right\">"+msg_repl_search+":</td><td align=\"left\"><input type=\"text\" name=\"searchinput\" size=\"45\" maxlength=\"500\"></td></tr><tr><td align=\"right\">"+msg_repl_replace_with+":</td><td align=\"left\"><input type=\"text\" name=\"replaceinput\" size=\"45\" maxlength=\"500\"></td></tr><tr><td colspan=\"2\" align=\"center\"><input type=\"button\" value=\" "+msg_repl_ok+" \" onclick=\"if(self.opener)self.opener.do_replace(); return false;\"> <input type=\"button\" value=\""+msg_repl_close+"\" onclick=\"self.close(); return false;\"></td></tr></table></center></form></body></html>"); + var height = 120; + var width = 600; + var h = (screen.height-height)/2; + var w = (screen.width-width)/2; + replacewin = window.open('','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,top='+h+',left='+w+',height='+height+',width='+width); + replacewin.window.document.writeln(doctype); + replacewin.window.document.writeln('<html>\n<head>\n<title>'+msg_repl_title+'</title>'); + replacewin.window.document.writeln(cssfile); + replacewin.window.document.writeln('</head>'); + replacewin.window.document.writeln("<body onload=\"if(document.forms[0].searchinput.focus) document.forms[0].searchinput.focus(); return false;\">\n<form action=\"\">\n<center>\n<table>\n<tr>\n<td align=\"right\">"+msg_repl_search+":\n</td>\n<td align=\"left\">\n<input type=\"text\" name=\"searchinput\" size=\"45\" maxlength=\"500\" />\n</td>\n</tr>\n<tr>\n<td align=\"right\">"+msg_repl_replace_with+":\n</td>\n<td align=\"left\">\n<input type=\"text\" name=\"replaceinput\" size=\"45\" maxlength=\"500\" />\n</td>\n</tr>\n<tr>\n<td colspan=\"2\" align=\"center\">\n<input type=\"button\" value=\" "+msg_repl_ok+" \" onclick=\"if(self.opener)self.opener.do_replace(); return false;\" /> <input type=\"button\" value=\""+msg_repl_close+"\" onclick=\"self.close(); return false;\" />\n</td>\n</tr>\n</table>\n</center>\n</form>\n</body>\n</html>"); replacewin.window.document.close(); return false; } Property changes on: trunk/themes/default/wikicommon.js ___________________________________________________________________ Modified: svn:keywords - id + Id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2010-09-13 14:52:55
|
Revision: 7687 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7687&view=rev Author: vargenau Date: 2010-09-13 14:52:49 +0000 (Mon, 13 Sep 2010) Log Message: ----------- Minify toolbar.css Modified Paths: -------------- trunk/themes/default/Makefile Added Paths: ----------- trunk/themes/default/toolbar-min.css Modified: trunk/themes/default/Makefile =================================================================== --- trunk/themes/default/Makefile 2010-09-13 12:41:32 UTC (rev 7686) +++ trunk/themes/default/Makefile 2010-09-13 14:52:49 UTC (rev 7687) @@ -7,6 +7,7 @@ CSS_SRC = IEFixes.css phpwiki-printer.css phpwiki.css \ highlight.css phpwiki-modern.css phpwiki-topbottombars.css \ + toolbar.css \ moacdropdown/css/dropdown.css MAIN = wikicommon JS_MAIN = wikicommon.js sortable.js ajax.js moacdropdown.js toolbar.js Added: trunk/themes/default/toolbar-min.css =================================================================== --- trunk/themes/default/toolbar-min.css (rev 0) +++ trunk/themes/default/toolbar-min.css 2010-09-13 14:52:49 UTC (rev 7687) @@ -0,0 +1 @@ +body{font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:10pt;background-color:#ddd;}input{font-weight:bold;margin-left:2px;margin-right:2px;}option,td{font-size:9pt;}#buttons{background-color:#ddd;padding-right:10px;width:180px;} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2010-09-13 15:05:35
|
Revision: 7688 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7688&view=rev Author: vargenau Date: 2010-09-13 15:05:24 +0000 (Mon, 13 Sep 2010) Log Message: ----------- Minify ajax.js moacdropdown.js toolbar.js sortable.js Modified Paths: -------------- trunk/themes/default/Makefile Added Paths: ----------- trunk/themes/default/ajax-min.js trunk/themes/default/moacdropdown-min.js trunk/themes/default/sortable-min.js trunk/themes/default/toolbar-min.js Modified: trunk/themes/default/Makefile =================================================================== --- trunk/themes/default/Makefile 2010-09-13 14:52:49 UTC (rev 7687) +++ trunk/themes/default/Makefile 2010-09-13 15:05:24 UTC (rev 7688) @@ -10,8 +10,8 @@ toolbar.css \ moacdropdown/css/dropdown.css MAIN = wikicommon -JS_MAIN = wikicommon.js sortable.js ajax.js moacdropdown.js toolbar.js -JS_REST = ASCIIsvg.js +JS_MAIN = wikicommon.js +JS_REST = ASCIIsvg.js sortable.js ajax.js moacdropdown.js toolbar.js CSS_FILES = $(patsubst %.css,%-min.css,$(CSS_SRC)) Added: trunk/themes/default/ajax-min.js =================================================================== --- trunk/themes/default/ajax-min.js (rev 0) +++ trunk/themes/default/ajax-min.js 2010-09-13 15:05:24 UTC (rev 7688) @@ -0,0 +1 @@ +function showHide(a){this.init(a)}showHide.prototype.onXmlHttpLoad=function(){if(this.hXMLHttp.readyState==4){var d=this.hXMLHttp.parseError;var c=document.getElementById(this.id+"-img");if(d&&d.errorCode!=0){alert(d.reason)}else{var a=document.getElementById(this.id+"-body");var b=this.hXMLHttp.responseXML;if(b!=null){if(b.firstChild&&b.firstChild.nodeName=="xml"){b=b.firstChild.nextSibling.nextSibling}if(b.firstChild&&b.firstChild.nodeName=="html"){b=b.childNodes[1]}if(b==null){alert("showHideDone "+this.id+"\nno xml children from "+this.hXMLHttp.responseText)}var e=CreateHtmlFromXml(b);e.className="wikitext";a.appendChild(e);a.style.display="block"}else{alert("showHideDone "+this.id+"\nerror no xml from "+this.hXMLHttp.responseText)}}if(c){if(!folderArrowPath){folderArrowPath=stylepath+"images/"}c.src=folderArrowPath+"/folderArrowOpen.png"}}};showHide.prototype.init=function(b){this.id=b;this.hXMLHttp=XmlHttp.create();var a=this;this.hXMLHttp.onreadystatechange=function(){a.onXmlHttpLoad()}};var cShowHide;function CreateHtmlFromXml(a){if(a==null){return document.createElement("xml")}var d=a.nodeName;var c;if(d=="#text"){c=document.createTextNode(a.nodeValue);c.nodeValue=a.nodeValue;if(a.attributes&&(a.attributes!=null)){for(var b=0;b<a.attributes.length;b++){c.setAttribute(a.attributes[b].name,a.attributes[b].value)}}}else{c=document.createElement(d);if(a.nodeValue){c.nodeValue=a.nodeValue}if(a.attributes&&(a.attributes!=null)){for(var b=0;b<a.attributes.length;b++){c.setAttribute(a.attributes[b].name,a.attributes[b].value)}}if(a.hasChildNodes()){for(var b=0;b<a.childNodes.length;b++){c.appendChild(CreateHtmlFromXml(a.childNodes[b]))}}}return c}function showHideAsync(c,d){var a=document.getElementById(d+"-body");if(!a){alert("Error: id="+d+"-body missing.");return}if(a.hasChildNodes()){showHideFolder(d)}else{if(!folderArrowPath){folderArrowPath=stylepath+"images/"}var b=document.getElementById(d+"-img");if(b){b.src=folderArrowPath+"/folderArrowLoading.gif"}cShowHide=new showHide(d);cShowHide.hXMLHttp.open("GET",c,true);cShowHide.hXMLHttp.send(null)}}function showHideDone(b){var a=document.getElementById(b+"-body");a.parentNode.replaceChild(cShowHide.hXMLHttp.responseText,a);alert("showHideDone "+b+"\ngot "+cShowHide.hXMLHttp.responseText);showHideFolder(b)}function showHideDelayed(a){window.setTimeout("doshowHide("+a+")",400)}function doshowHide(b){document.getElementById(b).style.display="none";var a=document.getElementById("LSHighlight");if(a){a.removeAttribute("id")}}; \ No newline at end of file Added: trunk/themes/default/moacdropdown-min.js =================================================================== --- trunk/themes/default/moacdropdown-min.js (rev 0) +++ trunk/themes/default/moacdropdown-min.js 2010-09-13 15:05:24 UTC (rev 7688) @@ -0,0 +1 @@ +function cBrowser(){var a=navigator.userAgent.toLowerCase();this.version=parseInt(navigator.appVersion);this.subVersion=parseFloat(navigator.appVersion);this.ns=((a.indexOf("mozilla")!=-1)&&((a.indexOf("spoofer")==-1)&&(a.indexOf("compatible")==-1)));this.ns2=(this.ns&&(this.version==2));this.ns3=(this.ns&&(this.version==3));this.ns4b=(this.ns&&(this.subVersion<4.04));this.ns4=(this.ns&&(this.version==4));this.ns5=(this.ns&&(this.version==5));this.ie=(a.indexOf("msie")!=-1);this.ie3=(this.ie&&(this.version==2));this.ie4=(this.ie&&(this.version==4)&&(a.indexOf("msie 4.")!=-1));this.ie5=(this.ie&&(this.version==4)&&(a.indexOf("msie 5.0")!=-1));this.ie55=(this.ie&&(this.version==4)&&(a.indexOf("msie 5.5")!=-1));this.ie6=(this.ie&&(this.version==4)&&(a.indexOf("msie 6.0")!=-1));this.op3=(a.indexOf("opera")!=-1);this.win=(a.indexOf("win")!=-1);this.mac=(a.indexOf("mac")!=-1);this.unix=(a.indexOf("x11")!=-1);this.name=navigator.appName;this.dom=this.ns5||this.ie5||this.ie55||this.ie6}var bw=new cBrowser();cDomEvent={e:null,type:"",button:0,key:0,x:0,y:0,pagex:0,pagey:0,target:null,from:null,to:null};cDomEvent.init=function(a){if(window.event){a=window.event}this.e=a;this.type=a.type;this.button=(a.which)?a.which:a.button;this.key=(a.which)?a.which:a.keyCode;this.target=(a.srcElement)?a.srcElement:a.originalTarget;this.currentTarget=(a.currentTarget)?a.currentTarget:a.srcElement;this.from=(a.originalTarget)?a.originalTarget:(a.fromElement)?a.fromElement:null;this.to=(a.currentTarget)?a.currentTarget:(a.toElement)?a.toElement:null;this.x=(a.layerX)?a.layerX:(a.offsetX)?a.offsetX:null;this.y=(a.layerY)?a.layerY:(a.offsetY)?a.offsetY:null;this.screenX=a.screenX;this.screenY=a.screenY;this.pageX=(a.pageX)?a.pageX:a.x+document.body.scrollLeft;this.pageY=(a.pageY)?a.pageY:a.y+document.body.scrollTop};cDomEvent.getEvent=function(a){if(window.event){a=window.event}return{e:a,type:a.type,button:(a.which)?a.which:a.button,key:(a.which)?a.which:a.keyCode,target:(a.srcElement)?a.srcElement:a.originalTarget,currentTarget:(a.currentTarget)?a.currentTarget:a.srcElement,from:(a.originalTarget)?a.originalTarget:(a.fromElement)?a.fromElement:null,to:(a.currentTarget)?a.currentTarget:(a.toElement)?a.toElement:null,x:(a.layerX)?a.layerX:(a.offsetX)?a.offsetX:null,y:(a.layerY)?a.layerY:(a.offsetY)?a.offsetY:null,screenX:a.screenX,screenY:a.screenY,pageX:(a.pageX)?a.pageX:(a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)),pageY:(a.pageY)?a.pageY:(a.clientY+(document.documentElement.scrollTop||document.body.scrollTop))}};cDomEvent.cancelEvent=function(a){if(a.preventDefault){a.preventDefault()}a.returnValue=false;a.cancelBubble=true;return false};cDomEvent.addEvent=function(hElement,sEvent,handler,bCapture){if(hElement.addEventListener){hElement.addEventListener(sEvent,handler,bCapture);return true}else{if(hElement.attachEvent){return hElement.attachEvent("on"+sEvent,handler)}else{if(document.all||hElement.captureEvents){if(hElement.captureEvents){eval("hElement.captureEvents( Event."+sEvent.toUpperCase()+" )")}eval("hElement.on"+sEvent+" = "+handler)}else{alert("Not implemented yet!")}}}};cDomEvent.encapsulateEvent=function(a){return function(b){b=cDomEvent.getEvent(b);a.call(b.target,b.e)}};cDomEvent.addEvent2=function(c,d,a,b){if(c){if(c.addEventListener){c.addEventListener(d,cDomEvent.encapsulateEvent(a),b);return true}else{if(c.attachEvent){return c.attachEvent("on"+d,cDomEvent.encapsulateEvent(a))}else{alert("Not implemented yet!")}}}else{}};cDomEvent.addCustomEvent2=function(b,c,a){if(b){b[c]=a}else{}};cDomEvent.removeEvent=function(hElement,sEvent,handler,bCapture){if(hElement.addEventListener){hElement.removeEventListener(sEvent,handler,bCapture);return true}else{if(hElement.attachEvent){return hElement.detachEvent("on"+sEvent,handler)}else{if(document.all||hElement.captureEvents){eval("hElement.on"+sEvent+" = null")}else{alert("Not implemented yet!")}}}};function MouseButton(){if(document.layers){this.left=1;this.middle=2;this.right=3}else{if(document.all){this.left=1;this.middle=4;this.right=2}else{this.left=0;this.middle=1;this.right=2}}}var MB=new MouseButton();if(document.ELEMENT_NODE==null){document.ELEMENT_NODE=1;document.TEXT_NODE=3}function getSubNodeByName(a,f){if(a!=null){var c=0;var e=0;var b=a.childNodes;var d=null;while(e<b.length){d=b.item(e++);if((d.nodeType==1)&&(d.nodeName.toLowerCase()==f)){return d}}}return null}function getPrevNodeSibling(a){if(a!=null){do{a=a.previousSibling}while(a!=null&&a.nodeType!=1);return a}}function getNextNodeSibling(a){if(a!=null){do{a=a.nextSibling}while(a!=null&&a.nodeType!=1);return a}}function getLastSubNodeByName(a,g){if(a!=null){var c=0;var f=0;var b=a.childNodes;var d=null;var e=b.length-1;while(e>=0){d=b.item(e);if((d.nodeType==1)&&(d.nodeName.toLowerCase()==g)){return d}e--}}return null}function getSubNodeByProperty(hNode,sProperty,sPropValue){if(hNode!=null){var nNc=0;var nC=0;var hNodeChildren=hNode.childNodes;var hCNode=null;var sAttribute;var hProp;sPropValue=sPropValue.toLowerCase();while(nC<hNodeChildren.length){hCNode=hNodeChildren.item(nC++);if(hCNode.nodeType==document.ELEMENT_NODE){hProp=eval("hCNode."+sProperty);if(typeof(sPropValue)!="undefined"){if(hProp.toLowerCase()==sPropValue){return hCNode}}else{return hCNode}}nNc++}}return null}function findAttribute(a,c){c=c.toLowerCase();for(var b=0;b<a.attributes.length;b++){if(a.attributes.item(b).nodeName.toLowerCase()==c){return a.attributes.item(b).nodeValue}}return null}function getSubNodeByAttribute(b,f,e){if(b!=null){var d=0;var h=0;var c=b.childNodes;var g=null;var a;e=e.toLowerCase();while(h<c.length){g=c.item(h++);if(g.nodeType==document.ELEMENT_NODE){a=g.getAttribute(f);if(a&&a.toLowerCase()==e){return g}}d++}}return null}function getLastSubNodeByAttribute(a,e,d){if(a!=null){var c=0;var h=0;var b=a.childNodes;var f=null;var g=b.length-1;while(g>=0){f=b.item(g);if(f.nodeType==document.ELEMENT_NODE){sAttribute=f.getAttribute(e);if(sAttribute&&sAttribute.toLowerCase()==d){return f}}g--}}return null}function getParentByTagName(a,b){while((a.tagName)&&!(/(body|html)/i.test(a.tagName))){if(a.tagName==b){return a}a=a.parentNode}return null}function getParentByAttribute(a,d,b){while((a.tagName)&&!(/(body|html)/i.test(a.tagName))){var c=a.getAttribute(d);if(c!=null&&c.toString().length>0){if(b!==null){if(c==b){return a}}else{return a}}a=a.parentNode}return null}function getParentByProperty(hNode,sProperty,sPropValue){while((hNode.tagName)&&!(/(body|html)/i.test(hNode.tagName))){var hProp=eval("hNode."+sProperty);if(hProp!=null&&hProp.toString().length>0){if(sPropValue!==null){if(hProp==sPropValue){return hNode}}else{return hNode}}hNode=hNode.parentNode}return null}function getNodeText(a){if(a==null){return""}var b;if(a.hasChildNodes()){b=a.childNodes.item(0).nodeValue}else{b=a.text}return b}function cDomExtension(a,b,c){this.hParent=a;this.aSelectors=b;this.hInitFunction=c}cDomExtensionManager={aExtensions:new Array()};cDomExtensionManager.register=function(a){cDomExtensionManager.aExtensions.push(a)};cDomExtensionManager.initSelector=function(f,i,d){var a;var c;var b;var h;var e;a=/([a-z0-9_]*)\[?([^\]]*)\]?/i;c=/([a-z0-9_]*)([\*\^\$]?)(=?)(([a-z0-9_=]*))/i;if(a.test(i)&&!/[@#\.]/.test(i)){b=a.exec(i);if(b[1]!=""){g=f.getElementsByTagName(b[1].toLowerCase());for(nI=0;nI<g.length;nI++){g[nI].markExt=true}for(nI=0;nI<g.length;nI++){if(!g[nI].markExt){continue}else{g[nI].markExt=false}if(b[2]==""){if(g[nI].tagName.toLowerCase()==b[1].toLowerCase()){d(g[nI])}}else{h=c.exec(b[2]);if(h[1]=="class"){e=g[nI].className}else{e=g[nI].getAttribute(h[1])}if(e!=null&&e.length>0){if(h[3]=="="){if(h[2]==""){if(e==h[4]){d(g[nI])}}else{switch(h[2]){case"^":if(e.indexOf(h[4])==0){d(g[nI])}break;case"$":if(e.lastIndexOf(h[4])==e.length-h[4].length){d(g[nI])}break;case"*":if(e.indexOf(h[4])>=0){d(g[nI])}break}}}else{d(g[nI])}}}}return}}a=/([a-z0-9_]*)([\.#@]?)([a-z0-9_=~]*)/i;c=/([a-z0-9_]*)([=~])?([a-z0-9_]*)/i;b=a.exec(i);if(b[1]!=""){var g=f.getElementsByTagName(b[1]);for(nI=0;nI<g.length;nI++){g[nI].markExt=true}for(nI=0;nI<g.length;nI++){if(!g[nI].markExt){continue}else{g[nI].markExt=false}if(b[2]!=""){switch(b[2]){case".":if(g[nI].className==b[3]){d(g[nI])}break;case"#":if(g[nI].id==b[3]){d(g[nI])}break;case"@":h=c.exec(b[3]);e=g[nI].getAttribute(h[1]);if(e!=null&&e.length>0){if(h[3]!=""){if(h[2]=="="){if(e==h[3]){d(g[nI])}}else{if(e.indexOf(h[3])>=0){d(g[nI])}}}else{d(g[nI])}}break}}}}};cDomExtensionManager.initialize=function(){var d=null;var c;for(var a in cDomExtensionManager.aExtensions){c=cDomExtensionManager.aExtensions[a].aSelectors;for(var b in c){cDomExtensionManager.initSelector(cDomExtensionManager.aExtensions[a].hParent,c[b],cDomExtensionManager.aExtensions[a].hInitFunction)}}};if(window.addEventListener){window.addEventListener("load",cDomExtensionManager.initialize,false)}else{if(window.attachEvent){window.attachEvent("onload",cDomExtensionManager.initialize)}}function cDomObject(a){if(bw.dom||bw.ie){this.hElement=document.getElementById(a);this.hStyle=this.hElement.style}}cDomObject.prototype.getWidth=function(){return cDomObject.getWidth(this.hElement)};cDomObject.getWidth=function(b){if(b.currentStyle){var a=parseInt(b.currentStyle.width);if(isNaN(a)){return parseInt(b.offsetWidth)}else{return a}}else{return parseInt(b.offsetWidth)}};cDomObject.prototype.getHeight=function(){return cDomObject.getHeight(this.hElement)};cDomObject.getHeight=function(b){if(b.currentStyle){var a=parseInt(b.currentStyle.height);if(isNaN(a)){return parseInt(b.offsetHeight)}else{return a}}else{return parseInt(b.offsetHeight)}};cDomObject.prototype.getLeft=function(){return cDomObject.getLeft(this.hElement)};cDomObject.getLeft=function(a){return parseInt(a.offsetLeft)};cDomObject.prototype.getTop=function(){return cDomObject.getTop(this.hElement)};cDomObject.getTop=function(a){return parseInt(a.offsetTop)};cDomObject.getOffsetParam=function(hElement,sParam,hLimitParent){var nRes=0;if(hLimitParent==null){hLimitParent=document.body.parentElement}while(hElement!=hLimitParent){nRes+=eval("hElement."+sParam);if(!hElement.offsetParent){break}hElement=hElement.offsetParent}return nRes};cDomObject.getScrollOffset=function(hElement,sParam,hLimitParent){nRes=0;if(hLimitParent==null){hLimitParent=document.body.parentElement}while(hElement!=hLimitParent){nRes+=eval("hElement.scroll"+sParam);if(!hElement.offsetParent){break}hElement=hElement.parentNode}return nRes};function getDomDocumentPrefix(){if(getDomDocumentPrefix.prefix){return getDomDocumentPrefix.prefix}var c=["MSXML2","Microsoft","MSXML","MSXML3"];var d;for(var b=0;b<c.length;b++){try{d=new ActiveXObject(c[b]+".DomDocument");return getDomDocumentPrefix.prefix=c[b]}catch(a){}}throw new Error("Could not find an installed XML parser")}function getXmlHttpPrefix(){if(getXmlHttpPrefix.prefix){return getXmlHttpPrefix.prefix}var c=["MSXML2","Microsoft","MSXML","MSXML3"];var d;for(var b=0;b<c.length;b++){try{d=new ActiveXObject(c[b]+".XmlHttp");return getXmlHttpPrefix.prefix=c[b]}catch(a){}}throw new Error("Could not find an installed XML parser")}function XmlHttp(){}XmlHttp.create=function(){try{if(window.XMLHttpRequest){var b=new XMLHttpRequest();if(b.readyState==null){b.readyState=1;b.addEventListener("load",function(){b.readyState=4;if(typeof b.onreadystatechange=="function"){b.onreadystatechange()}},false)}return b}if(window.ActiveXObject){return new ActiveXObject(getXmlHttpPrefix()+".XmlHttp")}}catch(a){}throw new Error("Your browser does not support XmlHttp objects")};function XmlDocument(){}XmlDocument.create=function(){try{if(document.implementation&&document.implementation.createDocument){var b=document.implementation.createDocument("","",null);if(b.readyState==null){b.readyState=1;b.addEventListener("load",function(){b.readyState=4;if(typeof b.onreadystatechange=="function"){b.onreadystatechange()}},false)}return b}if(window.ActiveXObject){return new ActiveXObject(getDomDocumentPrefix()+".DomDocument")}}catch(a){}throw new Error("Your browser does not support XmlDocument objects")};if(window.DOMParser&&window.XMLSerializer&&window.Node&&Node.prototype&&Node.prototype.__defineGetter__){Document.prototype.loadXML=function(b){var c=(new DOMParser()).parseFromString(b,"text/xml");while(this.hasChildNodes()){this.removeChild(this.lastChild)}for(var a=0;a<c.childNodes.length;a++){this.appendChild(this.importNode(c.childNodes[a],true))}};Document.prototype.__defineGetter__("xml",function(){return(new XMLSerializer()).serializeToString(this)})}function cAutocomplete(a){this.init(a)}var xmlrpc_url;cAutocomplete.CS_NAME="Autocomplete component";cAutocomplete.CS_OBJ_NAME="AC_COMPONENT";cAutocomplete.CS_LIST_PREFIX="ACL_";cAutocomplete.CS_BUTTON_PREFIX="ACB_";cAutocomplete.CS_INPUT_PREFIX="AC_";cAutocomplete.CS_HIDDEN_INPUT_PREFIX="ACH_";cAutocomplete.CS_INPUT_CLASSNAME="dropdown";cAutocomplete.CB_AUTOINIT=true;cAutocomplete.CB_AUTOCOMPLETE=false;cAutocomplete.CB_FORCECORRECT=false;cAutocomplete.CB_MATCHSUBSTRING=false;cAutocomplete.CS_SEPARATOR=",";cAutocomplete.CS_ARRAY_SEPARATOR=",";cAutocomplete.CB_MATCHSTRINGBEGIN=true;cAutocomplete.CN_OFFSET_TOP=2;cAutocomplete.CN_OFFSET_LEFT=-1;cAutocomplete.CN_LINE_HEIGHT=19;cAutocomplete.CN_NUMBER_OF_LINES=10;cAutocomplete.CN_HEIGHT_FIX=2;cAutocomplete.CN_CLEAR_TIMEOUT=300;cAutocomplete.CN_SHOW_TIMEOUT=400;cAutocomplete.CN_REMOTE_SHOW_TIMEOUT=1000;cAutocomplete.CN_MARK_TIMEOUT=400;cAutocomplete.hListDisplayed=null;cAutocomplete.nCount=0;cAutocomplete.autoInit=function(){var a=0;var f=null;var c;var g=document.getElementsByTagName("INPUT").length;for(a=0;a<g;a++){if(document.getElementsByTagName("INPUT")[a].type.toLowerCase()=="text"){c=document.getElementsByTagName("INPUT")[a].getAttribute("acdropdown");if(c!=null&&c.length>0){if(document.getElementsByTagName("INPUT")[a].id==null||document.getElementsByTagName("INPUT")[a].id.length==0){document.getElementsByTagName("INPUT")[a].id=cAutocomplete.CS_OBJ_NAME+cAutocomplete.nCount}f=new cAutocomplete(document.getElementsByTagName("INPUT")[a].id)}}}var b=document.getElementsByTagName("TEXTAREA").length;for(a=0;a<b;a++){c=document.getElementsByTagName("TEXTAREA")[a].getAttribute("acdropdown");if(c!=null&&c.length>0){if(document.getElementsByTagName("TEXTAREA")[a].id==null||document.getElementsByTagName("TEXTAREA")[a].id.length==0){document.getElementsByTagName("TEXTAREA")[a].id=cAutocomplete.CS_OBJ_NAME+cAutocomplete.nCount}f=new cAutocomplete(document.getElementsByTagName("TEXTAREA")[a].id)}}var e=document.getElementsByTagName("SELECT").length;var d=null;for(a=0;a<e;a++){d=document.getElementsByTagName("SELECT")[a];c=d.getAttribute("acdropdown");if(c!=null&&c.length>0){if(d.id==null||d.id.length==0){d.id=cAutocomplete.CS_OBJ_NAME+cAutocomplete.nCount}f=new cAutocomplete(d.id);e--;a--}}};if(cAutocomplete.CB_AUTOINIT){if(window.attachEvent){window.attachEvent("onload",cAutocomplete.autoInit)}else{if(window.addEventListener){window.addEventListener("load",cAutocomplete.autoInit,false)}}}cAutocomplete.prototype.init=function(sInputId){this.bDebug=false;this.sInputId=sInputId;this.sListId=cAutocomplete.CS_LIST_PREFIX+sInputId;this.sObjName=cAutocomplete.CS_OBJ_NAME+"_obj_"+(cAutocomplete.nCount++);this.hObj=this.sObjName;this.hActiveSelection=null;this.nSelectedItemIdx=-1;this.sLastActiveValue="";this.sActiveValue="";this.bListDisplayed=false;this.nItemsDisplayed=0;this.bAssociative=true;this.sHiddenInputId=null;this.bHasButton=false;this.aData=null;this.aSearchData=new Array();this.bSorted=false;this.nLastMatchLength=0;this.bForceCorrect=cAutocomplete.CB_FORCECORRECT;var sForceCorrect=document.getElementById(this.sInputId).getAttribute("autocomplete_forcecorrect");if(sForceCorrect!=null&&sForceCorrect.length>0){this.bForceCorrect=eval(sForceCorrect)}this.bMatchBegin=cAutocomplete.CB_MATCHSTRINGBEGIN;var sMatchBegin=document.getElementById(this.sInputId).getAttribute("autocomplete_matchbegin");if(sMatchBegin!=null&&sMatchBegin.length>0){this.bMatchBegin=eval(sMatchBegin)}this.bMatchSubstring=cAutocomplete.CB_MATCHSUBSTRING;var sMatchSubstring=document.getElementById(this.sInputId).getAttribute("autocomplete_matchsubstring");if(sMatchSubstring!=null&&sMatchSubstring.length>0){this.bMatchSubstring=eval(sMatchSubstring)}this.bAutoComplete=cAutocomplete.CB_AUTOCOMPLETE;this.bAutocompleted=false;var sAutoComplete=document.getElementById(this.sInputId).getAttribute("autocomplete_complete");if(sAutoComplete!=null&&sAutoComplete.length>0){this.bAutoComplete=eval(sAutoComplete)}this.formatOptions=null;var sFormatFunction=document.getElementById(this.sInputId).getAttribute("autocomplete_format");if(sFormatFunction!=null&&sFormatFunction.length>0){this.formatOptions=eval(sFormatFunction)}this.onSelect=null;var sOnSelectFunction=document.getElementById(this.sInputId).getAttribute("autocomplete_onselect");if(sOnSelectFunction!=null&&sOnSelectFunction.length>0){this.onSelect=eval(sOnSelectFunction)}if(this.getListArrayType()=="url"||this.getListArrayType()=="xmlrpc"){this.bAssociative=false;this.bRemoteList=true;this.sListURL=this.getListURL();this.hXMLHttp=XmlHttp.create();this.bXMLRPC=(this.getListArrayType()=="xmlrpc")}else{this.bRemoteList=false}var sAssociative=document.getElementById(this.sInputId).getAttribute("autocomplete_assoc");if(sAssociative!=null&&sAssociative.length>0){this.bAssociative=eval(sAssociative)}this.initListArray();this.initListContainer();this.initInput();eval(this.hObj+"= this")};cAutocomplete.prototype.initInput=function(){var g=document.getElementById(this.sInputId);g.hAutocomplete=this;var c=document.getElementById(this.sListId);c.hAutocomplete=this;var i=g.offsetWidth;if(!i||i==0){var f=g.cloneNode(true);f.style.position="absolute";f.style.top="-1000px";document.body.appendChild(f);var i=f.offsetWidth;document.body.removeChild(f)}var d=g.name;var e=g.form;var n=false;var h=g.value;var k=g.type.toLowerCase()=="text"?g.value:"";var b=g.getAttribute("autocomplete_button");if(b!=null&&b.length>0){n=true}if(g.type.toLowerCase()=="select-one"){n=true;if(g.selectedIndex>=0){h=g.options[g.selectedIndex].value;k=g.options[g.selectedIndex].text}}if(e){var j=document.createElement("INPUT");j.id=cAutocomplete.CS_HIDDEN_INPUT_PREFIX+this.sInputId;j.type="hidden";e.appendChild(j);if(this.bAssociative){j.name=d;g.name=cAutocomplete.CS_INPUT_PREFIX+d}else{j.name=cAutocomplete.CS_INPUT_PREFIX+d}j.value=h;this.sHiddenInputId=j.id}if(n){this.bHasButton=true;var l=document.createElement("DIV");l.className="acinputContainer";l.style.width=i;var a=document.createElement("INPUT");a.id=cAutocomplete.CS_BUTTON_PREFIX+this.sInputId;a.type="button";a.className="button";a.tabIndex=g.tabIndex+1;a.hAutocomplete=this;var m=document.createElement("INPUT");if(this.bAssociative){m.name=cAutocomplete.CS_INPUT_PREFIX+d}else{m.name=d}m.type="text";m.value=k;m.style.width=i-22;m.className=cAutocomplete.CS_INPUT_CLASSNAME;m.tabIndex=g.tabIndex;m.hAutocomplete=this;l.appendChild(m);l.appendChild(a);g.parentNode.replaceChild(l,g);m.id=this.sInputId;g=m}if(g.attachEvent){g.attachEvent("onkeyup",cAutocomplete.onInputKeyUp);g.attachEvent("onkeyup",cAutocomplete.saveCaretPosition);g.attachEvent("onkeydown",cAutocomplete.onInputKeyDown);g.attachEvent("onblur",cAutocomplete.onInputBlur);g.attachEvent("onfocus",cAutocomplete.onInputFocus);if(a){a.attachEvent("onclick",cAutocomplete.onButtonClick)}}else{if(g.addEventListener){g.addEventListener("keyup",cAutocomplete.onInputKeyUp,false);g.addEventListener("keyup",cAutocomplete.saveCaretPosition,false);g.addEventListener("keydown",cAutocomplete.onInputKeyDown,false);g.addEventListener("keypress",cAutocomplete.onInputKeyPress,false);g.addEventListener("blur",cAutocomplete.onInputBlur,false);g.addEventListener("focus",cAutocomplete.onInputFocus,false);if(a){a.addEventListener("click",cAutocomplete.onButtonClick,false)}}}g.setAttribute("autocomplete","OFF");if(e){if(e.attachEvent){e.attachEvent("onsubmit",cAutocomplete.onFormSubmit);if(this.bDebug){this.debug("attachEvent added")}}else{if(e.addEventListener){e.addEventListener("submit",cAutocomplete.onFormSubmit,false);if(this.bDebug){this.debug("addEventListener")}}}}};cAutocomplete.prototype.initListContainer=function(){var b=document.getElementById(this.sInputId);var e=document.createElement("DIV");e.className="autocomplete_holder";e.id=this.sListId;e.style.zIndex=10000+cAutocomplete.nCount;e.hAutocomplete=this;var d=document.createElement("DIV");d.className="autocomplete_firstborder";var c=document.createElement("DIV");c.className="autocomplete_secondborder";var a=document.createElement("UL");a.className="autocomplete";c.appendChild(a);d.appendChild(c);e.appendChild(d);document.body.appendChild(e);if(e.attachEvent){e.attachEvent("onblur",cAutocomplete.onListBlur);e.attachEvent("onfocus",cAutocomplete.onListFocus)}else{if(b.addEventListener){e.addEventListener("blur",cAutocomplete.onListBlur,false);e.addEventListener("focus",cAutocomplete.onListFocus,false)}}if(e.attachEvent){e.attachEvent("onclick",cAutocomplete.onItemClick)}else{if(e.addEventListener){e.addEventListener("click",cAutocomplete.onItemClick,false)}}};cAutocomplete.prototype.createList=function(){var f=document.getElementById(this.sInputId);var a=document.getElementById(this.sListId);var k=a.getElementsByTagName("UL")[0];if(k){k=k.parentNode.removeChild(k);while(k.hasChildNodes()){k.removeChild(k.childNodes[0])}}var j=null;var h=null;var e=null;var l=null;var d=this.aData;var g=0;var b;for(e in d){l=d[e];j=document.createElement("LI");h=document.createElement("A");h.setAttribute("itemvalue",e);var c=l.split(cAutocomplete.CS_ARRAY_SEPARATOR);if(c.length>1){this.aData[e]=c[0];h.setAttribute("itemdata",l.substring(l.indexOf(cAutocomplete.CS_ARRAY_SEPARATOR)+1));b=c[0]}else{b=l}h.href="#";h.appendChild(document.createTextNode(b));h.realText=b;if(g==this.nSelectedItemIdx){this.hActiveSelection=h;this.hActiveSelection.className="selected"}j.appendChild(h);k.appendChild(j);this.aSearchData[g++]=b.toLowerCase()}var i=a.firstChild.firstChild;i.appendChild(k);this.bListUpdated=false};cAutocomplete.prototype.initListArray=function(){var hInput=document.getElementById(this.sInputId);var hArr=null;if(hInput.type.toLowerCase()=="select-one"){hArr=new Object();for(var nI=0;nI<hInput.options.length;nI++){hArrKey=hInput.options.item(nI).value;sArrEl=hInput.options.item(nI).text;hArr[hArrKey]=sArrEl;if(hInput.options.item(nI).selected){this.nSelectedItemIdx=nI}}}else{var sAA=hInput.getAttribute("autocomplete_list");var sAAS=hInput.getAttribute("autocomplete_list_sort");var sArrayType=this.getListArrayType();switch(sArrayType){case"array":hArr=eval(sAA.substring(6));break;case"list":hArr=new Array();var hTmpArray=sAA.substring(5).split("|");var aValueArr;for(hKey in hTmpArray){aValueArr=hTmpArray[hKey].split(cAutocomplete.CS_ARRAY_SEPARATOR);if(aValueArr.length==1){hArr[hKey]=hTmpArray[hKey];this.bAssociative=false}else{hArr[aValueArr[0]]=aValueArr[1]}}break}if(sAAS!=null&&eval(sAAS)){this.bSorted=true;this.aData=hArr.sort();hArr=hArr.sort()}}this.setArray(hArr)};cAutocomplete.prototype.setArray=function(sArray){if(typeof sArray=="string"){this.aData=eval(sArray)}else{this.aData=sArray}this.bListUpdated=true};cAutocomplete.prototype.setListArray=function(a){this.setArray(a);this.updateAndShowList()};cAutocomplete.prototype.getListArrayType=function(){var b=document.getElementById(this.sInputId);var a=b.getAttribute("autocomplete_list");if(a!=null&&a.length>0){if(a.indexOf("array:")>=0){return"array"}else{if(a.indexOf("list:")>=0){return"list"}else{if(a.indexOf("url:")>=0){return"url"}else{if(a.indexOf("xmlrpc:")>=0){return"xmlrpc"}}}}}};cAutocomplete.prototype.getListURL=function(){var b=document.getElementById(this.sInputId);var a=b.getAttribute("autocomplete_list");if(a!=null&&a.length>0){if(a.indexOf("url:")>=0){return a.substring(4)}if(a.indexOf("xmlrpc:")>=0){return a.substring(7)}}};cAutocomplete.prototype.setListURL=function(a){this.sListURL=a};cAutocomplete.prototype.onXmlHttpLoad=function(){if(this.hXMLHttp.readyState==4){var a=this.hXMLHttp.parseError;if(a&&a.errorCode!=0){alert(a.reason)}else{this.afterRemoteLoad()}}};cAutocomplete.prototype.onXMLRPCHttpLoad=function(){if(this.hXMLHttp.readyState==4){var a=this.hXMLHttp.parseError;if(a&&a.errorCode!=0){alert(a.reason)}else{this.afterRemoteLoadXMLRPC()}}};cAutocomplete.prototype.loadXMLRPCListArray=function(){var f=this.sListURL;var i=data_path+"/RPC2.php";var h=f.split(" ");var g=h[0];var b=this.getStringForAutocompletion(this.sActiveValue,this.nInsertPoint);b=b.replace(/^\s/,"");b=b.replace(/\s$/,"");if(g.indexOf("?")>0){g=g.replace("/^.+?/","");f=f.replace("/?.+$/","")}else{f=i}if(g.length<1){var d=document.getElementById(this.sInputId);d.value=this.sActiveValue;return}var c="<?xml version='1.0' encoding=\"utf-8\" ?>\n";c+="<methodCall><methodName>"+g+"</methodName>\n";if(h.length<=1){c+="<params/>\n"}else{c+="<params>\n";for(var e=1;e<h.length;e++){var j=h[e];if(j.indexOf("[S]")>=0){j=j.replace("[S]",b)}c+="<param><value><string>";c+=j;c+="</string></value></param>\n"}c+="</params>\n"}c+="</methodCall>";if(this.bDebug){this.debug('url: "'+f+'" sRequest: "'+c.substring(20)+'"')}this.hXMLHttp.open("POST",f,true);var a=this;this.hXMLHttp.onreadystatechange=function(){a.onXMLRPCHttpLoad()};this.hXMLHttp.send(c)};cAutocomplete.prototype.loadListArray=function(){var b=this.sListURL;var a=this.getStringForAutocompletion(this.sActiveValue,this.nInsertPoint);a=a.replace(/^\s/,"");a=a.replace(/\s$/,"");if(b.indexOf("[S]")>=0){b=b.replace("[S]",a)}else{b+=this.sActiveValue}this.hXMLHttp.open("GET",b,true);var c=this;this.hXMLHttp.onreadystatechange=function(){c.onXmlHttpLoad()};this.hXMLHttp.send(null)};cAutocomplete.prototype.afterRemoteLoad=function(){var d=document.getElementById(this.sInputId);var c=new Array();var b=this.hXMLHttp.responseText.split("|");var a;for(hKey in b){a=b[hKey].split(cAutocomplete.CS_ARRAY_SEPARATOR);if(a.length==1){c[hKey]=b[hKey]}else{c[a[0]]=b[hKey].substr(b[hKey].indexOf(cAutocomplete.CS_ARRAY_SEPARATOR)+1)}}d.className="";d.readonly=false;d.value=this.sActiveValue;this.setListArray(c)};cAutocomplete.prototype.afterRemoteLoadXMLRPC=function(){var d=document.getElementById(this.sInputId);var b=new Array();sResult=this.hXMLHttp.responseText;if(this.bDebug){this.debug("response: "+sResult.substring(70,190))}sResult.replace("\n","");sResult.replace("\r","");var e=0;var c=sResult.indexOf("<string>");while(c>=0){var a;sResult=sResult.substring(c+8);a=sResult.indexOf("</string>");b[e]=sResult.substring(0,a);e+=1;sResult=sResult.substring(a+9);c=sResult.indexOf("<string>")}d.className="";d.readonly=false;d.value=this.sActiveValue;this.setListArray(b)};cAutocomplete.prototype.prepareList=function(a){var c=document.getElementById(this.sInputId);this.sActiveValue=c.value;var d=this.getStringForAutocompletion(this.sActiveValue,this.nInsertPoint);var b=this.getStringForAutocompletion(this.sLastActiveValue,this.nInsertPoint);if(b!=d||a||!this.bListDisplayed||this.bMatchSubstring){if(this.bRemoteList){c.className="search";this.bXMLRPC?this.loadXMLRPCListArray():this.loadListArray();return}this.updateAndShowList(a)}};cAutocomplete.prototype.updateAndShowList=function(a){var b=document.getElementById(this.sListId);var h=b.getElementsByTagName("UL")[0];var f=document.getElementById(this.sInputId);if(this.bListUpdated){this.createList()}var e=this.bMatchSubstring?this.getStringForAutocompletion(this.sActiveValue,this.nInsertPoint):this.sActiveValue;var i=this.bMatchSubstring?this.getStringForAutocompletion(this.sLastActiveValue,this.nInsertPoint):this.sLastActiveValue;if(e==i){if(!this.bMatchSubstring){a=true}}this.filterOptions(a);if(this.nItemsDisplayed==0){if(this.bForceCorrect){var g=this.getInsertPos(this.sActiveValue,this.nInsertPoint,"");cAutocomplete.markInputRange(f,this.nLastMatchLength,g[0])}}this.sLastActiveValue=this.sActiveValue;if(this.nItemsDisplayed>0){if(!a||this.bMatchSubstring){this.deselectOption()}if(this.bAutoComplete&&this.nItemsDisplayed==1){var c=this.getStringForAutocompletion(this.sActiveValue,this.nInsertPoint);var d=h.getElementsByTagName("LI")[this.nFirstDisplayed].getElementsByTagName("A")[0].realText;if(c.toLowerCase()==d.toLowerCase()){this.selectOption(h.getElementsByTagName("LI")[this.nFirstDisplayed].getElementsByTagName("A")[0]);this.hideOptions();return}}if(this.bAutoComplete&&!a){this.selectOption(h.getElementsByTagName("LI")[this.nFirstDisplayed].getElementsByTagName("A")[0])}this.showList()}else{this.clearList()}};cAutocomplete.prototype.showList=function(){if(cAutocomplete.hListDisplayed){cAutocomplete.hListDisplayed.clearList()}var e=document.getElementById(this.sInputId);var b=cDomObject.getOffsetParam(e,"offsetTop");var d=cDomObject.getOffsetParam(e,"offsetLeft");var f=document.getElementById(this.sListId);var a=f.getElementsByTagName("UL")[0];if(this.bHasButton){f.style.width=document.getElementById(this.sInputId).parentNode.offsetWidth}else{f.style.width=document.getElementById(this.sInputId).offsetWidth}var c=(this.nItemsDisplayed<cAutocomplete.CN_NUMBER_OF_LINES)?this.nItemsDisplayed:cAutocomplete.CN_NUMBER_OF_LINES;a.style.height=c*cAutocomplete.CN_LINE_HEIGHT+cAutocomplete.CN_HEIGHT_FIX+"px";f.style.top=b+e.offsetHeight+cAutocomplete.CN_OFFSET_TOP+"px";f.style.left=d+cAutocomplete.CN_OFFSET_LEFT+"px";f.style.display="none";f.style.visibility="visible";f.style.display="block";cAutocomplete.hListDisplayed=this;this.bListDisplayed=true};cAutocomplete.prototype.binarySearch=function(f){var a=0;var b=this.aSearchData.length-1;var c;var g,e;var h;var i=f.length;var d;while(a<=b){c=(a+b)/2;g=(c<1)?0:parseInt(c);h=this.aSearchData[g].substr(0,i);if(h<f){a=g+1;continue}if(h>f){b=g-1;continue}if(h==f){b=g-1;e=g;continue}return g}if(typeof(e)!="undefined"){return e}else{return null}};cAutocomplete.prototype.getStringForAutocompletion=function(e,c){if(e==null||e.length==0){return""}if(this.bMatchSubstring){var d=e.lastIndexOf(cAutocomplete.CS_SEPARATOR,c-1);d=d<0?0:d;var b=e.indexOf(cAutocomplete.CS_SEPARATOR,c);b=b<0?e.length:b;var a=e.substr(d,b-d);a=a.replace(/^(\,?)(\s*)(\S*)(\s*)(\,?)$/g,"$3");return a}else{return e}};cAutocomplete.prototype.insertString=function(f,d,a){if(this.bMatchSubstring){var e=f.lastIndexOf(cAutocomplete.CS_SEPARATOR,d-1);e=e<0?0:e;var c=f.indexOf(cAutocomplete.CS_SEPARATOR,d);c=c<0?f.length:c;var b=f.substr(e,c-e);b=b.replace(/^(\,?)(\s*)(\S?[\S\s]*\S?)(\s*)(\,?)$/g,"$1$2"+a+"$4$5");b=f.substr(0,e)+b+f.substr(c);return b}else{return a}};cAutocomplete.prototype.getInsertPos=function(f,d,a){d=d==null?0:d;var e=f.lastIndexOf(cAutocomplete.CS_SEPARATOR,d-1);e=e<0?0:e;var c=f.indexOf(cAutocomplete.CS_SEPARATOR,d);c=c<0?f.length:c;var b=f.substr(e,c-e);b=b.replace(/^(\,?)(\s*)(\S?[\S\s]*\S?)(\s*)(\,?)$/g,"$1$2"+a);return[d,e+b.length]};cAutocomplete.prototype.filterOptions=function(j){if(this.hActiveSelection&&!j){this.hActiveSelection.className=""}if(typeof j=="undefined"){j=false}var g=document.getElementById(this.sInputId);var c=this.getStringForAutocompletion(this.sActiveValue,this.nInsertPoint);if(j){c=""}var b=document.getElementById(this.sListId);var n=b.getElementsByTagName("UL")[0];var k=n.childNodes.length;var d=null;var a=0;var h=n.parentNode;var n=n.parentNode.removeChild(n);var l=n.childNodes;this.nItemsDisplayed=0;if(c.length==0){for(var i=0;i<k;i++){if(this.formatOptions){l[i].childNodes[0].innerHTML=this.formatOptions(l[i].childNodes[0].realText,i)}l[i].style.display="block"}a=k;if(k>0){this.nFirstDisplayed=0;this.nLastDisplayed=k-1}else{this.nFirstDisplayed=this.nLastDisplayed=-1}var f=this.getInsertPos(this.sActiveValue,this.nInsertPoint,c);this.nLastMatchLength=f[0]}else{this.nFirstDisplayed=this.nLastDisplayed=-1;c=c.toLowerCase();var m=false;if(this.bSorted&&this.bMatchBegin){var e=this.binarySearch(c);for(var i=0;i<k;i++){l[i].style.display="none";if(i>=e&&!m){if(!m&&this.aSearchData[i].indexOf(c)!=0){m=true;continue}if(this.formatOptions){l[i].childNodes[0].innerHTML=this.formatOptions(l[i].childNodes[0].realText,i)}l[i].style.display="block";a++;if(this.nFirstDisplayed<0){this.nFirstDisplayed=i}this.nLastDisplayed=i}}}else{for(var i=0;i<k;i++){l[i].style.display="none";if((this.bMatchBegin&&this.aSearchData[i].indexOf(c)==0)||(!this.bMatchBegin&&this.aSearchData[i].indexOf(c)>=0)){if(this.formatOptions){l[i].childNodes[0].innerHTML=this.formatOptions(l[i].childNodes[0].realText,i)}l[i].style.display="block";a++;if(this.nFirstDisplayed<0){this.nFirstDisplayed=i}this.nLastDisplayed=i}}}if(a>0){var f=this.getInsertPos(this.sActiveValue,this.nInsertPoint,c);this.nLastMatchLength=f[0]}}h.appendChild(n);this.nItemsDisplayed=a};cAutocomplete.prototype.hideOptions=function(){var a=document.getElementById(this.sListId);a.style.visibility="hidden";a.style.display="none";this.hListDisplayed=null};cAutocomplete.prototype.markAutocompletedValue=function(){var c=document.getElementById(this.sInputId);var e=this.hActiveSelection.realText;if(this.bMatchSubstring){var a=this.getInsertPos(this.sLastActiveValue,this.nInsertPoint,e);var d=a[0];var b=a[1]}else{var d=this.nInsertPoint;var b=e.length}this.nStartAC=d;this.nEndAC=b;if(this.hMarkRangeTimeout!=null){clearTimeout(this.hMarkRangeTimeout)}this.hMarkRangeTimeout=setTimeout(function(){cAutocomplete.markInputRange2(c.id)},cAutocomplete.CN_MARK_TIMEOUT)};cAutocomplete.prototype.selectOptionByIndex=function(b){if(this.bListUpdated){this.createList()}var d=document.getElementById(this.sListId);var a=d.getElementsByTagName("UL")[0];var c=a.childNodes.length;if(b>=0&&b<c){this.selectOption(a.childNodes[b].getElementsByTagName("A")[0])}};cAutocomplete.prototype.selectOptionByValue=function(f){if(this.bListUpdated){this.createList()}f=f.toLowerCase();var e=document.getElementById(this.sListId);var a=e.getElementsByTagName("UL")[0];var c=a.childNodes.length;var d=-1;for(var b=0;b<c;b++){if(this.aSearchData[b].indexOf(f)==0){d=b}}if(d>=0){this.selectOption(a.childNodes[d].getElementsByTagName("A")[0])}};cAutocomplete.prototype.selectOption=function(b){if(this.hActiveSelection){if(this.hActiveSelection==b){return}else{this.hActiveSelection.className=""}}this.hActiveSelection=b;var c=document.getElementById(this.sInputId);if(this.hActiveSelection!=null){if(this.sHiddenInputId!=null){if(this.bMatchSubstring){document.getElementById(this.sHiddenInputId).value=this.hActiveSelection.getAttribute("itemvalue")}else{document.getElementById(this.sHiddenInputId).value=this.hActiveSelection.getAttribute("itemvalue")}}this.hActiveSelection.className="selected";if(this.bAutoComplete){c.value=this.insertString(this.sLastActiveValue,this.nInsertPoint,this.hActiveSelection.realText);this.bAutocompleted=true;this.markAutocompletedValue()}else{var a=this.getInsertPos(this.sLastActiveValue,this.nInsertPoint,this.hActiveSelection.realText);c.value=this.insertString(this.sActiveValue,this.nInsertPoint,this.hActiveSelection.realText);cAutocomplete.setInputCaretPosition(c,a[1])}this.sActiveValue=c.value;if(this.onSelect){this.onSelect()}}else{c.value=this.sActiveValue;cAutocomplete.setInputCaretPosition(c,this.nInsertPoint)}};cAutocomplete.prototype.deselectOption=function(){if(this.hActiveSelection!=null){this.hActiveSelection.className="";this.hActiveSelection=null}};cAutocomplete.prototype.clearList=function(){this.hideOptions();this.bListDisplayed=false};cAutocomplete.prototype.getPrevDisplayedItem=function(a){if(a==null){var b=document.getElementById(this.sListId);a=b.getElementsByTagName("UL")[0].childNodes.item(b.getElementsByTagName("UL")[0].childNodes.length-1)}else{a=getPrevNodeSibling(a.parentNode)}while(a!=null){if(a.style.display=="block"){return a}a=a.previousSibling}return null};cAutocomplete.prototype.getNextDisplayedItem=function(a){if(a==null){var b=document.getElementById(this.sListId);a=b.getElementsByTagName("UL")[0].childNodes.item(0)}else{a=getNextNodeSibling(a.parentNode)}while(a!=null){if(a.style.display=="block"){return a}a=a.nextSibling}return null};cAutocomplete.prototype.debug=function(b){if(this.bDebug){var a=document.getElementById(this.sInputId);var c=document.createElement("DIV");c.className="debug";c.innerHTML=b;a.form.appendChild(c)}};cAutocomplete.onInputKeyDown=function(g){if(g==null){g=window.event}var d=(g.srcElement)?g.srcElement:g.originalTarget;var a=d.hAutocomplete;var b=document.getElementById(a.sListId);var f=document.getElementById(a.sInputId);var i=b.getElementsByTagName("UL")[0];var h=getParentByTagName(d,"A");if(b!=null&&a.bListDisplayed){var j=null;var c=null;if((g.keyCode==13)||(g.keyCode==27)){var e=g.keyCode==13?true:false;a.clearList();if(a.bDebug){a.debug("key "+g.keyCode+" new active selection")}}if(g.keyCode==38){if(a.bDebug){a.debug("key "+g.keyCode+" up")}c=a.getPrevDisplayedItem(a.hActiveSelection);if(c!=null){a.selectOption(c.childNodes.item(0));if(a.nItemsDisplayed>cAutocomplete.CN_NUMBER_OF_LINES){if(i.scrollTop<5&&c.offsetTop>i.offsetHeight){i.scrollTop=i.scrollHeight-i.offsetHeight}if(c.offsetTop-i.scrollTop<0){i.scrollTop-=c.offsetHeight}}}else{a.selectOption(null)}}else{if(g.keyCode==40){if(a.bDebug){a.debug("key "+g.keyCode+" down")}c=a.getNextDisplayedItem(a.hActiveSelection);if(c!=null){a.selectOption(c.childNodes.item(0));if(a.nItemsDisplayed>cAutocomplete.CN_NUMBER_OF_LINES){if(i.scrollTop>0&&i.scrollTop>c.offsetTop){i.scrollTop=0}if(Math.abs(c.offsetTop-i.scrollTop-i.offsetHeight)<5){i.scrollTop+=c.offsetHeight}}}else{a.selectOption(null)}}}}if(f.form){f.form.bLocked=true;if(a.bDebug){a.debug("onInputKeyDown form blocked")}}if(g.keyCode==13||g.keyCode==27||g.keyCode==38||g.keyCode==40){if(g.preventDefault){g.preventDefault()}else{if(a.bDebug){a.debug("no preventDefault return false")}}g.cancelBubble=true;g.returnValue=false;return false}};cAutocomplete.onInputKeyPress=function(a){if(a.keyCode==13||a.keyCode==38||a.keyCode==40){if(a.preventDefault){a.preventDefault()}a.cancelBubble=true;a.returnValue=false;return false}};cAutocomplete.onInputKeyUp=function(e){if(e==null){e=window.event}var b=(e.srcElement)?e.srcElement:e.originalTarget;var d=b.hAutocomplete;var a=document.getElementById(d.sInputId);switch(e.keyCode){case 8:if(d.bAutoComplete&&d.bAutocompleted){d.bAutocompleted=false;return false}break;case 38:case 40:if(d.bListDisplayed){if(e.preventDefault){e.preventDefault()}e.cancelBubble=true;e.returnValue=false;return false}break;case 32:case 46:case 35:case 36:break;default:if(e.keyCode<48){if(e.preventDefault){e.preventDefault()}if(d.bDebug){d.debug("keyUp: hEvent.returnValue = false")}e.cancelBubble=true;e.returnValue=false;return false}break}if(d.hMarkRangeTimeout!=null){clearTimeout(d.hMarkRangeTimeout)}if(d.hShowTimeout){clearTimeout(d.hShowTimeout);d.hShowTimeout=null}var c=d.bRemoteList?cAutocomplete.CN_REMOTE_SHOW_TIMEOUT:cAutocomplete.CN_SHOW_TIMEOUT;d.hShowTimeout=setTimeout(function(){d.prepareList()},c);if(d.bDebug){d.debug("setTimeout "+c)}};cAutocomplete.onInputBlur=function(c){if(c==null){c=window.event}var a=(c.srcElement)?c.srcElement:c.originalTarget;if(a.form){a.form.bLocked=false}var b=a.hAutocomplete;if(!b.hClearTimeout){b.hClearTimeout=setTimeout(function(){b.clearList()},cAutocomplete.CN_CLEAR_TIMEOUT)}};cAutocomplete.onInputFocus=function(c){if(c==null){c=window.event}var a=(c.srcElement)?c.srcElement:c.originalTarget;var b=a.hAutocomplete;if(b.hClearTimeout){clearTimeout(b.hClearTimeout);b.hClearTimeout=null}};cAutocomplete.saveCaretPosition=function(d){if(d==null){d=window.event}var b=(d.srcElement)?d.srcElement:d.originalTarget;var c=b.hAutocomplete;var a=document.getElementById(c.sInputId);if(d.keyCode!=38&&d.keyCode!=40){c.nInsertPoint=cAutocomplete.getInputCaretPosition(a)}};cAutocomplete.getInputCaretPosition=function(c){if(typeof c.selectionStart!="undefined"){if(c.selectionStart==c.selectionEnd){return c.selectionStart}else{return c.selectionStart}}else{if(c.createTextRange){var e=document.selection.createRange();if(c.tagName.toLowerCase()=="textarea"){var a=e.duplicate();var b=e.duplicate();e.moveToElementText(c);a.setEndPoint("StartToStart",e);return a.text.length}else{e.moveStart("character",-1*c.value.length);var d=e.text.length;return d}}}return null};cAutocomplete.setInputCaretPosition=function(c,a){if(c.setSelectionRange){c.setSelectionRange(a,a)}else{if(c.createTextRange){var b=c.createTextRange();b.moveStart("character",a);b.moveEnd("character",a);b.collapse(true);b.select()}}};cAutocomplete.markInputRange=function(c,d,a){if(c.setSelectionRange){c.focus();c.setSelectionRange(d,a)}else{if(c.createTextRange){var b=c.createTextRange();b.collapse(true);b.moveStart("character",d);b.moveEnd("character",a-d);b.select()}}};cAutocomplete.markInputRange2=function(a){var c=document.getElementById(a);var d=c.hAutocomplete.nStartAC;var b=c.hAutocomplete.nEndAC;cAutocomplete.markInputRange(c,d,b)};cAutocomplete.onListBlur=function(c){if(c==null){c=window.event}var a=(c.srcElement)?c.srcElement:c.originalTarget;a=getParentByProperty(a,"className","autocomplete_holder");var b=a.hAutocomplete;if(!b.hClearTimeout){b.hClearTimeout=setTimeout(function(){b.clearList()},cAutocomplete.CN_CLEAR_TIMEOUT)}};cAutocomplete.onListFocus=function(c){if(c==null){c=window.event}var a=(c.srcElement)?c.srcElement:c.originalTarget;a=getParentByProperty(a,"className","autocomplete_holder");var b=a.hAutocomplete;if(b.hClearTimeout){clearTimeout(b.hClearTimeout);b.hClearTimeout=null}};cAutocomplete.onItemClick=function(d){if(d==null){d=window.event}var a=(d.srcElement)?d.srcElement:d.originalTarget;var e=getParentByProperty(a,"className","autocomplete_holder");var c=getParentByTagName(a,"A");if(e!=null){var b=e.hAutocomplete;b.selectOption(c);document.getElementById(b.sInputId).focus();b.clearList()}if(d.preventDefault){d.preventDefault()}d.cancelBubble=true;d.returnValue=false;return false};cAutocomplete.onButtonClick=function(d){if(d==null){d=window.event}var b=(d.srcElement)?d.srcElement:d.originalTarget;var c=b.hAutocomplete;var a=document.getElementById(c.sInputId);if(a.disabled){return}if(c.bDebug){c.debug("onButtonClick")}c.prepareList(true);var a=document.getElementById(c.sInputId);a.focus()};cAutocomplete.onFormSubmit=function(c){if(c==null){c=window.event}var a=(c.srcElement)?c.srcElement:c.originalTarget;if(a.bLocked){var b=a.hAutocomplete;if(b.bDebug){b.debug("onSubmit: hElement.bLocked")}a.bLocked=false;c.returnValue=false;if(c.preventDefault){c.preventDefault()}return false}}; \ No newline at end of file Added: trunk/themes/default/sortable-min.js =================================================================== --- trunk/themes/default/sortable-min.js (rev 0) +++ trunk/themes/default/sortable-min.js 2010-09-13 15:05:24 UTC (rev 7688) @@ -0,0 +1 @@ +var image_path="/images/";var image_up="sort_up.gif";var image_down="sort_down.gif";var image_none="sort_none.gif";var europeandate=true;var alternate_row_colors=true;addEvent(window,"load",sortables_init);var SORT_COLUMN_INDEX;var thead=false;function sortables_init(){if(!document.getElementsByTagName){return}tbls=document.getElementsByTagName("table");for(ti=0;ti<tbls.length;ti++){thisTbl=tbls[ti];if(((" "+thisTbl.className+" ").indexOf("sortable")!=-1)&&(thisTbl.id)){ts_makeSortable(thisTbl)}}}function ts_makeSortable(d){if(d.rows&&d.rows.length>0){if(d.tHead&&d.tHead.rows.length>0){var e=d.tHead.rows[d.tHead.rows.length-1];thead=true}else{var e=d.rows[0]}}if(!e){return}for(var c=0;c<e.cells.length;c++){var b=e.cells[c];var a=ts_getInnerText(b);if(b.className!="unsortable"&&b.className.indexOf("unsortable")==-1){b.innerHTML='<a href="#" class="sortheader" onclick="ts_resortTable(this, '+c+');return false;">'+a+'<span class="sortarrow"> <img src="'+image_path+image_none+'" alt="↓"/></span></a>'}}if(alternate_row_colors){alternate(d)}}function ts_getInnerText(d){if(typeof d=="string"){return d}if(typeof d=="undefined"){return d}if(d.innerText){return d.innerText}var e="";var c=d.childNodes;var a=c.length;for(var b=0;b<a;b++){switch(c[b].nodeType){case 1:e+=ts_getInnerText(c[b]);break;case 3:e+=c[b].nodeValue;break}}return e}function ts_resortTable(g,l){var n;for(var p=0;p<g.childNodes.length;p++){if(g.childNodes[p].tagName&&g.childNodes[p].tagName.toLowerCase()=="span"){n=g.childNodes[p]}}var a=ts_getInnerText(n);var b=g.parentNode;var c=l||b.cellIndex;var o=getParent(b,"TABLE");if(o.rows.length<=1){return}var h="";var e=0;while(h==""&&e<o.tBodies[0].rows.length){var h=ts_getInnerText(o.tBodies[0].rows[e].cells[c]);h=trim(h);if(h.substr(0,4)=="<!--"||h.length==0){h=""}e++}if(h==""){return}sortfn=ts_sort_caseinsensitive;if(h.match(/^\d\d[\/\.-][a-zA-z][a-zA-Z][a-zA-Z][\/\.-]\d\d\d\d$/)){sortfn=ts_sort_date}if(h.match(/^\d\d[\/\.-]\d\d[\/\.-]\d\d\d{2}?$/)){sortfn=ts_sort_date}if(h.match(/^-?[�$�ۢ�]\d/)){sortfn=ts_sort_numeric}if(h.match(/^\d+ *(B|KB|MB)$/)){sortfn=ts_sort_numeric}if(h.match(/^-?(\d+[,\.]?)+(E[-+][\d]+)?%?$/)){sortfn=ts_sort_numeric}SORT_COLUMN_INDEX=c;var d=new Array();var f=new Array();for(k=0;k<o.tBodies.length;k++){for(e=0;e<o.tBodies[k].rows[0].length;e++){d[e]=o.tBodies[k].rows[0][e]}}for(k=0;k<o.tBodies.length;k++){if(!thead){for(j=1;j<o.tBodies[k].rows.length;j++){f[j-1]=o.tBodies[k].rows[j]}}else{for(j=0;j<o.tBodies[k].rows.length;j++){f[j]=o.tBodies[k].rows[j]}}}f.sort(sortfn);if(n.getAttribute("sortdir")=="down"){ARROW=' <img src="'+image_path+image_down+'" alt="↓"/>';f.reverse();n.setAttribute("sortdir","up")}else{ARROW=' <img src="'+image_path+image_up+'" alt="↑"/>';n.setAttribute("sortdir","down")}for(e=0;e<f.length;e++){if(!f[e].className||(f[e].className&&(f[e].className.indexOf("sortbottom")==-1))){o.tBodies[0].appendChild(f[e])}}for(e=0;e<f.length;e++){if(f[e].className&&(f[e].className.indexOf("sortbottom")!=-1)){o.tBodies[0].appendChild(f[e])}}var m=document.getElementsByTagName("span");for(var p=0;p<m.length;p++){if(m[p].className=="sortarrow"){if(getParent(m[p],"table")==getParent(g,"table")){m[p].innerHTML=' <img src="'+image_path+image_none+'" alt="↓"/>'}}}n.innerHTML=ARROW;alternate(o)}function getParent(b,a){if(b==null){return null}else{if(b.nodeType==1&&b.tagName.toLowerCase()==a.toLowerCase()){return b}else{return getParent(b.parentNode,a)}}}function sort_date(b){dt="00000000";if(b.length==11){mtstr=b.substr(3,3);mtstr=mtstr.toLowerCase();switch(mtstr){case"jan":var a="01";break;case"feb":var a="02";break;case"mar":var a="03";break;case"apr":var a="04";break;case"may":var a="05";break;case"jun":var a="06";break;case"jul":var a="07";break;case"aug":var a="08";break;case"sep":var a="09";break;case"oct":var a="10";break;case"nov":var a="11";break;case"dec":var a="12";break}dt=b.substr(7,4)+a+b.substr(0,2);return dt}else{if(b.length==10){if(europeandate==false){dt=b.substr(6,4)+b.substr(0,2)+b.substr(3,2);return dt}else{dt=b.substr(6,4)+b.substr(3,2)+b.substr(0,2);return dt}}else{if(b.length==8){yr=b.substr(6,2);if(parseInt(yr)<50){yr="20"+yr}else{yr="19"+yr}if(europeandate==true){dt=yr+b.substr(3,2)+b.substr(0,2);return dt}else{dt=yr+b.substr(0,2)+b.substr(3,2);return dt}}}}return dt}function ts_sort_date(d,c){dt1=sort_date(ts_getInnerText(d.cells[SORT_COLUMN_INDEX]));dt2=sort_date(ts_getInnerText(c.cells[SORT_COLUMN_INDEX]));if(dt1==dt2){return 0}if(dt1<dt2){return -1}return 1}function ts_sort_numeric(d,c){var e=ts_getInnerText(d.cells[SORT_COLUMN_INDEX]);e=clean_num(e);var f=ts_getInnerText(c.cells[SORT_COLUMN_INDEX]);f=clean_num(f);return compare_numeric(e,f)}function compare_numeric(d,c){var e=parseFloat(d);e=(isNaN(e)?0:e);var f=parseFloat(c);f=(isNaN(f)?0:f);return e-f}function ts_sort_caseinsensitive(d,c){var e=ts_getInnerText(d.cells[SORT_COLUMN_INDEX]).toLowerCase();var f=ts_getInnerText(c.cells[SORT_COLUMN_INDEX]).toLowerCase();if(e==f){return 0}if(e<f){return -1}return 1}function ts_sort_default(d,c){var e=ts_getInnerText(d.cells[SORT_COLUMN_INDEX]);var f=ts_getInnerText(c.cells[SORT_COLUMN_INDEX]);if(e==f){return 0}if(e<f){return -1}return 1}function addEvent(e,d,b,a){if(e.addEventListener){e.addEventListener(d,b,a);return true}else{if(e.attachEvent){var c=e.attachEvent("on"+d,b);return c}else{alert("Handler could not be removed");return false}}}function clean_num(a){a=a.replace(new RegExp(/[^-?0-9.]/g),"");return a}function trim(a){return a.replace(/^\s+|\s+$/g,"")}function alternate(e){var c=e.getElementsByTagName("tbody");for(var b=0;b<c.length;b++){var d=c[b].getElementsByTagName("tr");for(var a=0;a<d.length;a++){if((a%2)==0){if(!(d[a].className.indexOf("odd")==-1)){d[a].className=d[a].className.replace("odd","even")}else{if(d[a].className.indexOf("even")==-1){d[a].className+=" even"}}}else{if(!(d[a].className.indexOf("even")==-1)){d[a].className=d[a].className.replace("even","odd")}else{if(d[a].className.indexOf("odd")==-1){d[a].className+=" odd"}}}}}}; \ No newline at end of file Added: trunk/themes/default/toolbar-min.js =================================================================== --- trunk/themes/default/toolbar-min.js (rev 0) +++ trunk/themes/default/toolbar-min.js 2010-09-13 15:05:24 UTC (rev 7688) @@ -0,0 +1 @@ +var doctype='<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';var cssfile='<link rel="stylesheet" type="text/css" href="'+data_path+'/themes/default/toolbar.css" />';if(window.top!=window){window.top.location=window.location}var pullwin;function addButton(e,a,d,b){var c;a=escapeQuotes(a);document.write('<a href="javascript:'+d+"(");for(c=0;c<b.length;c++){if(c>0){document.write(",")}document.write("'"+escapeQuotes(b[c])+"'")}document.write(');"><img src="'+e+'" width="18" height="18" border="0" alt="'+a+'" title="'+a+'">');document.write("</a>");return}function addTagButton(e,a,c,b,d){addButton(e,a,"insertTags",[c,b,d]);return}function showPulldown(j,c,g,a,d){var l=new String(Math.min(315,80+(c.length*12)));var b=500;var e=(screen.height-l)/2;var k=(screen.width-b)/2;pullwin=window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,top="+e+",left="+k+",height="+l+",width="+b);pullwin.window.document.writeln(doctype);pullwin.window.document.writeln("<html>\n<head>\n<title>"+escapeQuotes(j)+"</title>");pullwin.window.document.writeln(cssfile);pullwin.window.document.writeln("</head>\n<body>");pullwin.window.document.writeln("<p>\nYou can double-click to insert.\n</p>");pullwin.window.document.writeln('<form action=""><div id="buttons"><input type="button" value="'+g+'" onclick="if(self.opener)self.opener.do_pulldown(document.forms[0].select.value,\''+d+'\'); return false;" /><input type="button" value="'+a+'" onclick="self.close(); return false;" /></div>\n<div>\n<select style="margin-top:10px;width:190px;" name="select" size="'+((c.length>20)?"20":new String(c.length))+'" ondblclick="if(self.opener)self.opener.do_pulldown(document.forms[0].select.value,\''+d+"'); return false;\">");for(i=0;i<c.length;i++){if(typeof c[i]=="string"){pullwin.window.document.write('<option value="'+c[i]+'">'+escapeQuotes(c[i])+"</option>\n")}else{pullwin.window.document.write('<option value="'+c[i][1]+'">'+escapeQuotes(c[i][0])+"</option>\n")}}pullwin.window.document.writeln("</select>\n</div>\n</form>\n</body>\n</html>");pullwin.window.document.close();return false}function do_pulldown(b,a){if(a=="tb-categories"){var c=document.getElementById("edit-content");b=unescapeSpecial(b);c.value+="\n"+b}else{insertTags(b,"","\n")}return}function addInfobox(c){var b=navigator.userAgent.toLowerCase();var a=((b.indexOf("gecko")!=-1)&&(b.indexOf("spoofer")==-1)&&(b.indexOf("khtml")==-1));if(!document.selection&&!a){c=escapeQuotesHTML(c);document.write("<form name='infoform' id='infoform'><input size=80 id='infobox' name='infobox' value=\""+c+'" readonly="readonly"></form>')}}function escapeQuotes(b){var a=new RegExp("'","g");b=b.replace(a,"\\'");a=new RegExp('"',"g");b=b.replace(a,""");a=new RegExp("\\n","g");b=b.replace(a,"\\n");return b}function escapeQuotesHTML(b){var a=new RegExp('"',"g");b=b.replace(a,""");return b}function unescapeSpecial(b){var a=new RegExp("%0A","g");b=b.replace(a,"\n");var a=new RegExp("%22","g");b=b.replace(a,'"');var a=new RegExp("%27","g");b=b.replace(a,"'");var a=new RegExp("%09","g");b=b.replace(a," ");var a=new RegExp("%7C","g");b=b.replace(a,"|");var a=new RegExp("%5B","g");b=b.replace(a,"[");var a=new RegExp("%5D","g");b=b.replace(a,"]");var a=new RegExp("%5C","g");b=b.replace(a,"\\");return b}function insertTags(g,a,b){var j=document.getElementById("edit-content");g=unescapeSpecial(g);if(document.selection){var k=document.selection.createRange().text;if(!k){k=b}j.focus();if(k.charAt(k.length-1)==" "){k=k.substring(0,k.length-1);document.selection.createRange().text=g+k+a+" "}else{document.selection.createRange().text=g+k+a}}else{if(j.selectionStart||j.selectionStart=="0"){var h=j.selectionStart;var c=j.selectionEnd;var e=j.scrollTop;var d=(j.value).substring(h,c);if(!d){d=b}if(d.charAt(d.length-1)==" "){subst=g+d.substring(0,(d.length-1))+a+" "}else{subst=g+d+a}j.value=j.value.substring(0,h)+subst+j.value.substring(c,j.value.length);j.focus();var l=h+(g.length+d.length+a.length);j.selectionStart=l;j.selectionEnd=l;j.scrollTop=e}else{j.value+=g+b+a;j.focus()}}if(j.createTextRange){j.caretPos=document.selection.createRange().duplicate()}}var f,sr_undo,replacewin,undo_buffer=new Array(),undo_buffer_index=0;function define_f(){f=document.getElementById("editpage");f.editarea=document.getElementById("edit-content");sr_undo=document.getElementById("sr_undo");undo_enable(false);f.editarea.focus()}function undo_enable(a){if(a){sr_undo.src=uri_undo_btn;sr_undo.alt=msg_undo_alt;sr_undo.disabled=false}else{sr_undo.src=uri_undo_d_btn;sr_undo.alt=msg_undo_d_alt;sr_undo.disabled=true;if(sr_undo.blur){sr_undo.blur()}}}function replace(){var a=120;var d=600;var c=(screen.height-a)/2;var b=(screen.width-d)/2;replacewin=window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,top="+c+",left="+b+",height="+a+",width="+d);replacewin.window.document.writeln(doctype);replacewin.window.document.writeln("<html>\n<head>\n<title>"+msg_repl_title+"</title>");replacewin.window.document.writeln(cssfile);replacewin.window.document.writeln("</head>");replacewin.window.document.writeln('<body onload="if(document.forms[0].searchinput.focus) document.forms[0].searchinput.focus(); return false;">\n<form action="">\n<center>\n<table>\n<tr>\n<td align="right">'+msg_repl_search+':\n</td>\n<td align="left">\n<input type="text" name="searchinput" size="45" maxlength="500" />\n</td>\n</tr>\n<tr>\n<td align="right">'+msg_repl_replace_with+':\n</td>\n<td align="left">\n<input type="text" name="replaceinput" size="45" maxlength="500" />\n</td>\n</tr>\n<tr>\n<td colspan="2" align="center">\n<input type="button" value=" '+msg_repl_ok+' " onclick="if(self.opener)self.opener.do_replace(); return false;" /> <input type="button" value="'+msg_repl_close+'" onclick="self.close(); return false;" />\n</td>\n</tr>\n</table>\n</center>\n</form>\n</body>\n</html>');replacewin.window.document.close();return false}function do_replace(){var a=undo_buffer[undo_buffer_index]=f.editarea.value;var d=new RegExp(replacewin.document.forms[0].searchinput.value,"g");var b=replacewin.document.forms[0].replaceinput.value;if(d==""||d==null){if(replacewin){replacewin.window.document.forms[0].searchinput.focus()}return}var c=a.match(d)?a.match(d).length:0;a=a.replace(d,b);d=d.toString().substring(1,d.toString().length-2);msg_replfound=msg_replfound.replace("\1",d).replace("\2",c).replace("\3",b);msg_replnot=msg_replnot.replace("%s",d);result(c,msg_replfound,a,msg_replnot);replacewin.window.focus();replacewin.window.document.forms[0].searchinput.focus();return false}function result(c,a,d,b){if(c>0){if(window.confirm(a)==true){f.editarea.value=d;undo_save();undo_enable(true)}}else{alert(b)}}function do_undo(){if(undo_buffer_index==0){return}else{if(undo_buffer_index>0){f.editarea.value=undo_buffer[undo_buffer_index-1];undo_buffer[undo_buffer_index]=null;undo_buffer_index--;if(undo_buffer_index==0){alert(msg_do_undo);undo_enable(false)}}}}function undo_save(){undo_buffer[undo_buffer_index]=f.editarea.value;undo_buffer_index++;undo_enable(true)}; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2011-01-26 22:37:09
|
Revision: 7911 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7911&view=rev Author: vargenau Date: 2011-01-26 17:15:59 +0000 (Wed, 26 Jan 2011) Log Message: ----------- Do not print portlet Modified Paths: -------------- trunk/themes/default/phpwiki-printer-min.css trunk/themes/default/phpwiki-printer.css Modified: trunk/themes/default/phpwiki-printer-min.css =================================================================== --- trunk/themes/default/phpwiki-printer-min.css 2011-01-26 17:04:39 UTC (rev 7910) +++ trunk/themes/default/phpwiki-printer-min.css 2011-01-26 17:15:59 UTC (rev 7911) @@ -1 +1 @@ -html{background:white;}body{margin:1em;padding:0;color:black;background:white;}div.wikitext{border:0;padding:0;margin:0;margin-top:1ex;background:white;}img{border:0;vertical-align:baseline;}form{margin:0;}input{margin:.1em;}input.numeric{text-align:right;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}a{color:black;text-decoration:none;}.wiki{text-decoration:underline;font-weight:bold;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.wikipage{text-decoration:underline;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}.rawurl{text-decoration:underline;}.wikiblog-form{display:none;}#header,#logo,#footer{background:white;}table+br.clear-floats{display:none;}#navbuttons,#actionbuttons,#signin{display:none;}p.editdate{font-size:smaller;margin-top:0;background:white;}hr.toolbar{display:none;}hr.printer{display:block;background:white;}.wiki-rc-action{display:none;}img{vertical-align:baseline;border:0 none white;}.linkicon{display:none;}.rssicon{display:none;}textarea.wikiedit{width:100%;margin-bottom:.5ex;margin-top:.5ex;padding:2px;}#editarea-size{display:none;}.transclusion-title{text-align:right;font-style:oblique;font-size:smaller;text-decoration:underline;margin-bottom:.25ex;margin-right:.25em;}.transclusion,.wiki-edithelp{font-size:smaller;}.transclusion{background:inherit;border:1pt solid gray;padding-left:.8em;padding-right:.8em;padding-top:0;padding-bottom:0;margin-left:.25em;margin-right:.25em;margin-bottom:.1ex;}.wiki-edithelp{border:1pt solid black;padding-left:.5em;padding-right:.5em;padding-top:.75ex;padding-bottom:.75ex;margin-left:0;margin-right:0;margin-top:1ex;margin-bottom:1ex;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;padding-left:.5em;padding-right:.5em;padding-top:.5ex;padding-bottom:.5ex;margin:0;}table.cal{border:thin outset gray;margin:.5ex .5em;padding:1px;empty-cells:hide;}table.cal td{text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;background:inherit;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:underline;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{background:inherit;margin:1px;border:1px solid black;}#xhtml-validator{display:none;}.error{margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;font-size:smaller;border:.5pt solid black;clear:both;}.debug{display:none;} \ No newline at end of file +html{background:white;}body{margin:1em;padding:0;color:black;background:white;}div.wikitext{border:0;padding:0;margin:0;margin-top:1ex;background:white;}img{border:0;vertical-align:baseline;}form{margin:0;}input{margin:.1em;}input.numeric{text-align:right;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}a{color:black;text-decoration:none;}.wiki{text-decoration:underline;font-weight:bold;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.wikipage{text-decoration:underline;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}.rawurl{text-decoration:underline;}.wikiblog-form{display:none;}#header,#logo,#footer{background:white;}table+br.clear-floats{display:none;}#navbuttons,#actionbuttons,#signin{display:none;}p.editdate{font-size:smaller;margin-top:0;background:white;}hr.toolbar{display:none;}hr.printer{display:block;background:white;}.wiki-rc-action{display:none;}img{vertical-align:baseline;border:0 none white;}.linkicon{display:none;}.rssicon{display:none;}textarea.wikiedit{width:100%;margin-bottom:.5ex;margin-top:.5ex;padding:2px;}#editarea-size{display:none;}.transclusion-title{text-align:right;font-style:oblique;font-size:smaller;text-decoration:underline;margin-bottom:.25ex;margin-right:.25em;}.transclusion,.wiki-edithelp{font-size:smaller;}.transclusion{background:inherit;border:1pt solid gray;padding-left:.8em;padding-right:.8em;padding-top:0;padding-bottom:0;margin-left:.25em;margin-right:.25em;margin-bottom:.1ex;}.wiki-edithelp{border:1pt solid black;padding-left:.5em;padding-right:.5em;padding-top:.75ex;padding-bottom:.75ex;margin-left:0;margin-right:0;margin-top:1ex;margin-bottom:1ex;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;padding-left:.5em;padding-right:.5em;padding-top:.5ex;padding-bottom:.5ex;margin:0;}table.cal{border:thin outset gray;margin:.5ex .5em;padding:1px;empty-cells:hide;}table.cal td{text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;background:inherit;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:underline;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{background:inherit;margin:1px;border:1px solid black;}#xhtml-validator{display:none;}.error{margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;font-size:smaller;border:.5pt solid black;clear:both;}.debug{display:none;}.portlet{display:none;} \ No newline at end of file Modified: trunk/themes/default/phpwiki-printer.css =================================================================== --- trunk/themes/default/phpwiki-printer.css 2011-01-26 17:04:39 UTC (rev 7910) +++ trunk/themes/default/phpwiki-printer.css 2011-01-26 17:15:59 UTC (rev 7911) @@ -271,6 +271,10 @@ display: none; } +.portlet { + display: none; +} + /* For emacs users * * Local Variables: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2011-01-26 22:37:34
|
Revision: 7913 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7913&view=rev Author: vargenau Date: 2011-01-26 17:48:29 +0000 (Wed, 26 Jan 2011) Log Message: ----------- Do not print logo, rate-it, footer Modified Paths: -------------- trunk/themes/default/phpwiki-printer-min.css trunk/themes/default/phpwiki-printer.css Modified: trunk/themes/default/phpwiki-printer-min.css =================================================================== --- trunk/themes/default/phpwiki-printer-min.css 2011-01-26 17:36:20 UTC (rev 7912) +++ trunk/themes/default/phpwiki-printer-min.css 2011-01-26 17:48:29 UTC (rev 7913) @@ -1 +1 @@ -html{background:white;}body{margin:1em;padding:0;color:black;background:white;}div.wikitext{border:0;padding:0;margin:0;margin-top:1ex;background:white;}img{border:0;vertical-align:baseline;}form{margin:0;}input{margin:.1em;}input.numeric{text-align:right;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}a{color:black;text-decoration:none;}.wiki{text-decoration:underline;font-weight:bold;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.wikipage{text-decoration:underline;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}.rawurl{text-decoration:underline;}.wikiblog-form{display:none;}#header,#logo,#footer{background:white;}table+br.clear-floats{display:none;}#navbuttons,#actionbuttons,#signin{display:none;}p.editdate{font-size:smaller;margin-top:0;background:white;}hr.toolbar{display:none;}hr.printer{display:block;background:white;}.wiki-rc-action{display:none;}img{vertical-align:baseline;border:0 none white;}.linkicon{display:none;}.rssicon{display:none;}textarea.wikiedit{width:100%;margin-bottom:.5ex;margin-top:.5ex;padding:2px;}#editarea-size{display:none;}.transclusion-title{text-align:right;font-style:oblique;font-size:smaller;text-decoration:underline;margin-bottom:.25ex;margin-right:.25em;}.transclusion,.wiki-edithelp{font-size:smaller;}.transclusion{background:inherit;border:1pt solid gray;padding-left:.8em;padding-right:.8em;padding-top:0;padding-bottom:0;margin-left:.25em;margin-right:.25em;margin-bottom:.1ex;}.wiki-edithelp{border:1pt solid black;padding-left:.5em;padding-right:.5em;padding-top:.75ex;padding-bottom:.75ex;margin-left:0;margin-right:0;margin-top:1ex;margin-bottom:1ex;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;padding-left:.5em;padding-right:.5em;padding-top:.5ex;padding-bottom:.5ex;margin:0;}table.cal{border:thin outset gray;margin:.5ex .5em;padding:1px;empty-cells:hide;}table.cal td{text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;background:inherit;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:underline;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{background:inherit;margin:1px;border:1px solid black;}#xhtml-validator{display:none;}.error{margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;font-size:smaller;border:.5pt solid black;clear:both;}.debug{display:none;}.portlet{display:none;} \ No newline at end of file +html{background:white;}body{margin:1em;padding:0;color:black;background:white;}div.wikitext{border:0;padding:0;margin:0;margin-top:1ex;background:white;}img{border:0;vertical-align:baseline;}form{margin:0;}input{margin:.1em;}input.numeric{text-align:right;}table{border-spacing:1px;empty-cells:show;}caption{caption-side:top;text-align:left;margin-bottom:.5ex;width:100%;}a{color:black;text-decoration:none;}.wiki{text-decoration:underline;font-weight:bold;}.interwiki,i.interwiki .wikipage,em .interwiki .wikipage{font-style:oblique;}.wikipage{text-decoration:underline;}.interwiki .wikipage,i .interwiki,em .interwiki{font-style:normal;}.rawurl{text-decoration:underline;}.wikiblog-form{display:none;}#header,#logo,#footer{background:white;}table+br.clear-floats{display:none;}#navbuttons,#actionbuttons,#signin{display:none;}p.editdate{font-size:smaller;margin-top:0;background:white;}hr.toolbar{display:none;}hr.printer{display:block;background:white;}.wiki-rc-action{display:none;}img{vertical-align:baseline;border:0 none white;}.linkicon{display:none;}.rssicon{display:none;}textarea.wikiedit{width:100%;margin-bottom:.5ex;margin-top:.5ex;padding:2px;}#editarea-size{display:none;}.transclusion-title{text-align:right;font-style:oblique;font-size:smaller;text-decoration:underline;margin-bottom:.25ex;margin-right:.25em;}.transclusion,.wiki-edithelp{font-size:smaller;}.transclusion{background:inherit;border:1pt solid gray;padding-left:.8em;padding-right:.8em;padding-top:0;padding-bottom:0;margin-left:.25em;margin-right:.25em;margin-bottom:.1ex;}.wiki-edithelp{border:1pt solid black;padding-left:.5em;padding-right:.5em;padding-top:.75ex;padding-bottom:.75ex;margin-left:0;margin-right:0;margin-top:1ex;margin-bottom:1ex;}.wiki-edithelp p{font-family:Arial,Helvetica,sans-serif;padding-left:.5em;padding-right:.5em;padding-top:.5ex;padding-bottom:.5ex;margin:0;}table.cal{border:thin outset gray;margin:.5ex .5em;padding:1px;empty-cells:hide;}table.cal td{text-align:right;}table.cal-header{font-size:larger;}table.cal-header tr,table.cal-header td{text-align:center;background:inherit;}.cal-dayname td{text-align:center;font-size:smaller;text-decoration:underline;}a.cal-hide{text-decoration:none;}table.cal td.cal-today{background:inherit;margin:1px;border:1px solid black;}#xhtml-validator{display:none;}.error{margin-top:1em;margin-bottom:1em;padding-left:.8em;padding-right:.8em;padding-top:.8ex;padding-bottom:0;font-size:smaller;border:.5pt solid black;clear:both;}.debug{display:none;}.portlet{display:none;}#img-logo-right,#rateit-widget-top,#footer{display:none;}#content{margin:0;padding:0;border:0;} \ No newline at end of file Modified: trunk/themes/default/phpwiki-printer.css =================================================================== --- trunk/themes/default/phpwiki-printer.css 2011-01-26 17:36:20 UTC (rev 7912) +++ trunk/themes/default/phpwiki-printer.css 2011-01-26 17:48:29 UTC (rev 7913) @@ -275,6 +275,16 @@ display: none; } +#img-logo-right, #rateit-widget-top, #footer { + display: none; +} + +#content { + margin: 0; + padding: 0; + border: 0; +} + /* For emacs users * * Local Variables: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-10-02 14:46:46
|
Revision: 8390 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8390&view=rev Author: vargenau Date: 2012-10-02 14:46:33 +0000 (Tue, 02 Oct 2012) Log Message: ----------- dos2unix Modified Paths: -------------- trunk/themes/default/ASCIIsvg.js trunk/themes/default/moacdropdown.js Modified: trunk/themes/default/ASCIIsvg.js =================================================================== --- trunk/themes/default/ASCIIsvg.js 2012-10-02 14:41:17 UTC (rev 8389) +++ trunk/themes/default/ASCIIsvg.js 2012-10-02 14:46:33 UTC (rev 8390) @@ -1,1093 +1,1093 @@ -/* ASCIIsvg.js -============== -JavaScript routines to dynamically generate Scalable Vector Graphics -using a mathematical xy-coordinate system (y increases upwards) and -very intuitive JavaScript commands (no programming experience required). -ASCIIsvg.js is good for learning math and illustrating online math texts. -Works with Internet Explorer+Adobe SVGviewer and SVG enabled Mozilla/Firefox. - -Ver 1.2.7 Oct 13, 2005 (c) Peter Jipsen http://www.chapman.edu/~jipsen -Latest version at http://www.chapman.edu/~jipsen/svg/ASCIIsvg.js -If you use it on a webpage, please send the URL to ji...@ch... - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or (at -your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License (at http://www.gnu.org/copyleft/gpl.html) -for more details.*/ - -var checkIfSVGavailable = true; -var notifyIfNoSVG = true; -var alertIfNoSVG = false; -var xunitlength = 20; // pixels -var yunitlength = 20; // pixels -var origin = [0,0]; // in pixels (default is bottom left corner) -var defaultwidth = 300; defaultheight = 200; defaultborder = 0; -var border = defaultborder; -var strokewidth, strokedasharray, stroke, fill; -var fontstyle, fontfamily, fontsize, fontweight, fontstroke, fontfill; -var markerstrokewidth = "1"; -var markerstroke = "black"; -var markerfill = "yellow"; -var marker = "none"; -var arrowfill = stroke; -var dotradius = 4; -var ticklength = 4; -var axesstroke = "black"; -var gridstroke = "grey"; -var pointerpos = null; -var coordinates = null; -var above = "above"; -var below = "below"; -var left = "left"; -var right = "right"; -var aboveleft = "aboveleft"; -var aboveright = "aboveright"; -var belowleft = "belowleft"; -var belowright = "belowright"; -var cpi = "\u03C0", ctheta = "\u03B8"; -var pi = Math.PI, ln = Math.log, e = Math.E; -var arcsin = Math.asin, arccos = Math.acos, arctan = Math.atan; -var sec = function(x) { return 1/Math.cos(x) }; -var csc = function(x) { return 1/Math.sin(x) }; -var cot = function(x) { return 1/Math.tan(x) }; -var xmin, xmax, ymin, ymax, xscl, yscl, - xgrid, ygrid, xtick, ytick, initialized; -var isIE = document.createElementNS==null; -var picture, svgpicture, doc, width, height, a, b, c, d, i, n, p, t, x, y; -var arcsec = function(x) { return arccos(1/x) }; -var arccsc = function(x) { return arcsin(1/x) }; -var arccot = function(x) { return arctan(1/x) }; -var sinh = function(x) { return (Math.exp(x)-Math.exp(-x))/2 }; -var cosh = function(x) { return (Math.exp(x)+Math.exp(-x))/2 }; -var tanh = - function(x) { return (Math.exp(x)-Math.exp(-x))/(Math.exp(x)+Math.exp(-x)) }; -var sech = function(x) { return 1/cosh(x) }; -var csch = function(x) { return 1/sinh(x) }; -var coth = function(x) { return 1/tanh(x) }; -var arcsinh = function(x) { return ln(x+Math.sqrt(x*x+1)) }; -var arccosh = function(x) { return ln(x+Math.sqrt(x*x-1)) }; -var arctanh = function(x) { return ln((1+x)/(1-x))/2 }; -var sech = function(x) { return 1/cosh(x) }; -var csch = function(x) { return 1/sinh(x) }; -var coth = function(x) { return 1/tanh(x) }; -var arcsech = function(x) { return arccosh(1/x) }; -var arccsch = function(x) { return arcsinh(1/x) }; -var arccoth = function(x) { return arctanh(1/x) }; -var sign = function(x) { return (x==0?0:(x<0?-1:1)) }; - -function factorial(x,n) { - if (n==null) n=1; - for (var i=x-n; i>0; i-=n) x*=i; - return (x<0?NaN:(x==0?1:x)); -} - -function C(x,k) { - var res=1; - for (var i=0; i<k; i++) res*=(x-i)/(k-i); - return res; -} - -function chop(x,n) { - if (n==null) n=0; - return Math.floor(x*Math.pow(10,n))/Math.pow(10,n); -} - -function ran(a,b,n) { - if (n==null) n=0; - return chop((b+Math.pow(10,-n)-a)*Math.random()+a,n); -} - -function myCreateElementXHTML(t) { - if (isIE) return document.createElement(t); - else return document.createElementNS("http://www.w3.org/1999/xhtml",t); -} - -function isSVGavailable() { - var ua = navigator.userAgent; - if (ua.match("AppleWebKit")) { - return null; - } - if (navigator.appName.slice(0,5)=="Opera") { - return null; - } - var nd = myCreateElementXHTML("center"); - nd.appendChild(document.createTextNode("To view the ")); - var an = myCreateElementXHTML("a"); - an.appendChild(document.createTextNode("ASCIIsvg")); - an.setAttribute("href","http://www.chapman.edu/~jipsen/asciisvg.html"); - nd.appendChild(an); - nd.appendChild(document.createTextNode(" images use Internet Explorer 6+")); - an = myCreateElementXHTML("a"); - an.appendChild(document.createTextNode("Adobe SVGviewer 3.02")); - an.setAttribute("href","http://www.adobe.com/svg"); - nd.appendChild(an); - nd.appendChild(document.createTextNode(" or ")); - an = myCreateElementXHTML("a"); - an.appendChild(document.createTextNode("SVG enabled Mozilla/Firefox")); - an.setAttribute("href", - "http://www.chapman.edu/~jipsen/svg/svgenabledmozillafirefox.html"); - nd.appendChild(an); - if (navigator.appName.slice(0,8)=="Netscape") - if (window['SVGElement']) return null; - else return nd; - else if (navigator.appName.slice(0,9)=="Microsoft") - try { - var oSVG=eval("new ActiveXObject('Adobe.SVGCtl.3');"); - return null; - } catch (e) { - return nd; - } - else return nd; -} - - -function less(x,y) { return x < y } // used for scripts in XML files - // since IE does not handle CDATA well -function setText(st,id) { - var node = document.getElementById(id); - if (node!=null) - if (node.childNodes.length!=0) node.childNodes[0].nodeValue = st; - else node.appendChild(document.createTextNode(st)); -} - -function myCreateElementSVG(t) { - if (isIE) return doc.createElement(t); - else return doc.createElementNS("http://www.w3.org/2000/svg",t); -} - -function getX() { - return (doc.getElementById("pointerpos").getAttribute("cx")-origin[0])/xunitlength; -} - -function getY() { - return (height-origin[1]-doc.getElementById("pointerpos").getAttribute("cy"))/yunitlength; -} - -function mousemove_listener(evt) { - if (svgpicture.getAttribute("xbase")!=null) - pointerpos.cx.baseVal.value = evt.clientX-svgpicture.getAttribute("xbase"); - if (svgpicture.getAttribute("ybase")!=null) - pointerpos.cy.baseVal.value = evt.clientY-svgpicture.getAttribute("ybase"); -} - -function top_listener(evt) { - svgpicture.setAttribute("ybase",evt.clientY); -} - -function bottom_listener(evt) { - svgpicture.setAttribute("ybase",evt.clientY-height+1); -} - -function left_listener(evt) { - svgpicture.setAttribute("xbase",evt.clientX); -} - -function right_listener(evt) { - svgpicture.setAttribute("xbase",evt.clientX-width+1); -} - -function drawPictures() { // main routine; called after webpage has loaded - var src, id, dsvg, onmov, nd, node, ht, index; - var pictures = document.getElementsByTagName("textarea"); - for (index = 0; index<pictures.length; index++) - if (pictures[index].className=="ASCIIsvg"){ - pictures[index].style.display="none"; // hide the textarea - } - pictures = document.getElementsByTagName("embed"); - var len = pictures.length; - if (checkIfSVGavailable) { - nd = isSVGavailable(); - if (nd != null && notifyIfNoSVG && len>0) - if (alertIfNoSVG) - alert("To view the SVG pictures in Internet Explorer\n\ -download the free Adobe SVGviewer from www.adobe.com/svg or\n\ -use Firefox 1.5 preview (called Deerpark)"); - else { - var ASbody = document.getElementsByTagName("body")[0]; - ASbody.insertBefore(nd,ASbody.childNodes[0]); - } - } - if (nd == null) { - for (index = 0; index < len; index++) { - xmin = null; xmax = null; ymin = null; ymax = null; - xscl = null; xgrid = null; yscl = null; ygrid = null; - initialized = false; - picture = (isIE ? pictures[index] : pictures[0]); - src = picture.getAttribute("script"); - if (src==null) src = ""; - ht = picture.getAttribute("height"); - if (ht==null) ht =""; - if (ht!="") defaultborder = 25; - if (ht=="" || src=="") - if (document.getElementById("picture"+(index+1)+"input")==null) { - if (isIE && src.indexOf("nobutton()")==-1) - picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture); - node = myCreateElementXHTML("textarea"); - node.setAttribute("rows","10"); - node.setAttribute("cols","60"); -// node.setAttribute("style","display:block"); - if (isIE) src = src.replace(/([^\r])\n/g,"$1\r").slice(1); - node.appendChild(document.createTextNode(src)); - if (src.indexOf("showcode()")==-1) node.style.display = "none"; - node.setAttribute("id","picture"+(index+1)+"input"); - picture.parentNode.insertBefore(node,picture); - - if (src.indexOf("nobutton()")==-1) { - picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture); - - node = myCreateElementXHTML("button"); - if (isIE) node.onclick = function() { showHideCode(this) }; - else node.setAttribute("onclick","showHideCode(this)"); - node.appendChild(document.createTextNode("Show/Hide")); - picture.parentNode.insertBefore(node,picture); - - node = myCreateElementXHTML("button"); - if (isIE) node.onclick = ASfn[index]; - else node.setAttribute("onclick","updatePicture("+index+")"); - node.appendChild(document.createTextNode("Update")); - if (src.indexOf("showCode()")==-1) node.style.display = "none"; - picture.parentNode.insertBefore(node,picture); - -/* node = myCreateElementXHTML("span"); -// node.setAttribute("id","AScoord"+index); - node.appendChild(document.createTextNode("(x,y)")); - picture.parentNode.insertBefore(node,picture); -*/ - picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture); - } - if (isIE) picture.onmousemove = ASupdateCoords[index]; - else picture.setAttribute("onmousemove","updateCoords"+index+"()"); - } else src = document.getElementById("picture"+(index+1)+"input").value; - src = src.replace(/plot\(\x20*([^\"f\[][^\n\r]+?)\,/g,"plot\(\"$1\","); - src = src.replace(/plot\(\x20*([^\"f\[][^\n\r]+)\)/g,"plot(\"$1\")"); - src = src.replace(/([0-9])([a-zA-Z])/g,"$1*$2"); - src = src.replace(/\)([\(0-9a-zA-Z])/g,"\)*$1"); -// eval(src.replace(/\s\s/g,";")); //for XML version - id = picture.getAttribute("id"); - dsvg = picture.getAttribute("src"); - onmov = picture.getAttribute("onmousemove"); - if (id == null || id == "") { - id = "picture"+(index+1); - picture.setAttribute("id",id); - } - try { - with (Math) eval(src); - } catch(err) {alert(err+"\n"+src)} - if (isIE) src = src.replace(/([^\r])\n/g,"$1\r"); - setText("<embed width=\""+width+"\" height=\""+height+"\" src=\""+ - dsvg+"\" "+(onmov!=null?"onmousemove=\""+onmov+"\"":"")+ - (isIE?"\r":"\n")+"script=\'"+src+"\'>",id+"script"); -// setText(src.replace(/\s\s/g,"\r"),id+"script"); //for XML version - } - } -} - -function switchTo(id) { -//alert(id); - picture = document.getElementById(id); - width = picture.getAttribute("width")-0; - height = picture.getAttribute("height")-0; - strokewidth = "1" // pixel - stroke = "black"; // default line color - fill = "none"; // default fill color - marker = "none"; - if ((picture.nodeName == "EMBED" || picture.nodeName == "embed") && isIE) { - svgpicture = picture.getSVGDocument().getElementById("root"); - doc = picture.getSVGDocument(); - } else { - picture.setAttribute("onmousemove","updateCoords"+(id.slice(id.length-1)-1)+"()"); -//alert(picture.getAttribute("onmousemove")+"***"); - svgpicture = picture; - doc = document; - } - xunitlength = svgpicture.getAttribute("xunitlength")-0; - yunitlength = svgpicture.getAttribute("yunitlength")-0; - xmin = svgpicture.getAttribute("xmin")-0; - xmax = svgpicture.getAttribute("xmax")-0; - ymin = svgpicture.getAttribute("ymin")-0; - ymax = svgpicture.getAttribute("ymax")-0; - origin = [svgpicture.getAttribute("ox")-0,svgpicture.getAttribute("oy")-0]; -} - -function updatePicture(obj) { -//alert(typeof obj) - var src = document.getElementById((typeof obj=="string"? - obj:"picture"+(obj+1)+"input")).value; - xmin = null; xmax = null; ymin = null; ymax = null; - xscl = null; xgrid = null; yscl = null; ygrid = null; - initialized = false; - switchTo((typeof obj=="string"?obj.slice(0,8):"picture"+(obj+1))); - src = src.replace(/plot\(\x20*([^\"f\[][^\n\r]+?)\,/g,"plot\(\"$1\","); - src = src.replace(/plot\(\x20*([^\"f\[][^\n\r]+)\)/g,"plot(\"$1\")"); - src = src.replace(/([0-9])([a-zA-Z])/g,"$1*$2"); - src = src.replace(/\)([\(0-9a-zA-Z])/g,"\)*$1"); -//alert(src); - try { - with (Math) eval(src); - } catch(err) {alert(err+"\n"+src)} -} - -function showHideCode(obj) { - var node = obj.nextSibling; - while (node != null && node.nodeName != "BUTTON" && - node.nodeName != "button") node = node.nextSibling; - if (node.style.display == "none") node.style.display = ""; - else node.style.display = "none"; - while (node != null && node.nodeName != "TEXTAREA" && - node.nodeName != "textarea") node = node.previousSibling; - if (node.style.display == "none") node.style.display = ""; - else node.style.display = "none"; -// updatePicture(node.getAttribute("id")); -} - -function hideCode() { //do nothing -} - -function showcode() { //do nothing -} - -function nobutton() { //do nothing -} - -function setBorder(x) { border = x } - -function initPicture(x_min,x_max,y_min,y_max) { - if (!initialized) { - strokewidth = "1"; // pixel - strokedasharray = null; - stroke = "black"; // default line color - fill = "none"; // default fill color - fontstyle = "italic"; // default shape for text labels - fontfamily = "times"; // default font - fontsize = "16"; // default size - fontweight = "normal"; - fontstroke = "none"; // default font outline color - fontfill = "none"; // default font color - marker = "none"; - initialized = true; - if (x_min!=null) xmin = x_min; - if (x_max!=null) xmax = x_max; - if (y_min!=null) ymin = y_min; - if (y_max!=null) ymax = y_max; - if (xmin==null) xmin = -5; - if (xmax==null) xmax = 5; - if (typeof xmin != "number" || typeof xmax != "number" || xmin >= xmax) - alert("Picture requires at least two numbers: xmin < xmax"); - else if (y_max != null && (typeof y_min != "number" || - typeof y_max != "number" || y_min >= y_max)) - alert("initPicture(xmin,xmax,ymin,ymax) requires numbers ymin < ymax"); - else { - if (width==null) width = picture.getAttribute("width"); - else picture.setAttribute("width",width); - if (width==null || width=="") width=defaultwidth; - if (height==null) height = picture.getAttribute("height"); - else picture.setAttribute("height",height); - if (height==null || height=="") height=defaultheight; - xunitlength = (width-2*border)/(xmax-xmin); - yunitlength = xunitlength; -//alert(xmin+" "+xmax+" "+ymin+" "+ymax) - if (ymin==null) { - origin = [-xmin*xunitlength+border,height/2]; - ymin = -(height-2*border)/(2*yunitlength); - ymax = -ymin; - } else { - if (ymax!=null) yunitlength = (height-2*border)/(ymax-ymin); - else ymax = (height-2*border)/yunitlength + ymin; - origin = [-xmin*xunitlength+border,-ymin*yunitlength+border]; - } -// if (true ||picture.nodeName == "EMBED" || picture.nodeName == "embed") { - if (isIE) { - svgpicture = picture.getSVGDocument().getElementById("root"); - while (svgpicture.childNodes.length()>5) - svgpicture.removeChild(svgpicture.lastChild); - svgpicture.setAttribute("width",width); - svgpicture.setAttribute("height",height); - doc = picture.getSVGDocument(); - } else { - var qnode = document.createElementNS("http://www.w3.org/2000/svg","svg"); - qnode.setAttribute("id",picture.getAttribute("id")); - qnode.setAttribute("style","display:inline"); - qnode.setAttribute("width",picture.getAttribute("width")); - qnode.setAttribute("height",picture.getAttribute("height")); - if (picture.parentNode!=null) - picture.parentNode.replaceChild(qnode,picture); - else - svgpicture.parentNode.replaceChild(qnode,svgpicture); - svgpicture = qnode; - doc = document; - pointerpos = doc.getElementById("pointerpos"); - if (pointerpos==null) { - pointerpos = myCreateElementSVG("circle"); - pointerpos.setAttribute("id","pointerpos"); - pointerpos.setAttribute("cx",0); - pointerpos.setAttribute("cy",0); - pointerpos.setAttribute("r",0.5); - pointerpos.setAttribute("fill","red"); - svgpicture.appendChild(pointerpos); - } - } -// } else { -// svgpicture = picture; -// doc = document; -// } - svgpicture.setAttribute("xunitlength",xunitlength); - svgpicture.setAttribute("yunitlength",yunitlength); - svgpicture.setAttribute("xmin",xmin); - svgpicture.setAttribute("xmax",xmax); - svgpicture.setAttribute("ymin",ymin); - svgpicture.setAttribute("ymax",ymax); - svgpicture.setAttribute("ox",origin[0]); - svgpicture.setAttribute("oy",origin[1]); - var node = myCreateElementSVG("rect"); - node.setAttribute("x","0"); - node.setAttribute("y","0"); - node.setAttribute("width",width); - node.setAttribute("height",height); - node.setAttribute("style","stroke-width:1;fill:white"); - svgpicture.appendChild(node); - if (!isIE && picture.getAttribute("onmousemove")!=null) { - svgpicture.addEventListener("mousemove", mousemove_listener, true); - var st = picture.getAttribute("onmousemove"); - svgpicture.addEventListener("mousemove", eval(st.slice(0,st.indexOf("("))), true); - node = myCreateElementSVG("polyline"); - node.setAttribute("points","0,0 "+width+",0"); - node.setAttribute("style","stroke:white; stroke-width:3"); - node.addEventListener("mousemove", top_listener, true); - svgpicture.appendChild(node); - node = myCreateElementSVG("polyline"); - node.setAttribute("points","0,"+height+" "+width+","+height); - node.setAttribute("style","stroke:white; stroke-width:3"); - node.addEventListener("mousemove", bottom_listener, true); - svgpicture.appendChild(node); - node = myCreateElementSVG("polyline"); - node.setAttribute("points","0,0 0,"+height); - node.setAttribute("style","stroke:white; stroke-width:3"); - node.addEventListener("mousemove", left_listener, true); - svgpicture.appendChild(node); - node = myCreateElementSVG("polyline"); - node.setAttribute("points",(width-1)+",0 "+(width-1)+","+height); - node.setAttribute("style","stroke:white; stroke-width:3"); - node.addEventListener("mousemove", right_listener, true); - svgpicture.appendChild(node); - } - border = defaultborder; - } - } -} - -function line(p,q,id) { // segment connecting points p,q (coordinates in units) - var node; - if (id!=null) node = doc.getElementById(id); - if (node==null) { - node = myCreateElementSVG("path"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - } - node.setAttribute("d","M"+(p[0]*xunitlength+origin[0])+","+ - (height-p[1]*yunitlength-origin[1])+" "+ - (q[0]*xunitlength+origin[0])+","+(height-q[1]*yunitlength-origin[1])); - node.setAttribute("stroke-width", strokewidth); - if (strokedasharray!=null) - node.setAttribute("stroke-dasharray", strokedasharray); - node.setAttribute("stroke", stroke); - node.setAttribute("fill", fill); - if (marker=="dot" || marker=="arrowdot") { - ASdot(p,4,markerstroke,markerfill); - if (marker=="arrowdot") arrowhead(p,q); - ASdot(q,4,markerstroke,markerfill); - } else if (marker=="arrow") arrowhead(p,q); -} - -function path(plist,id,c) { - if (c==null) c=""; - var node, st, i; - if (id!=null) node = doc.getElementById(id); - if (node==null) { - node = myCreateElementSVG("path"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - } - if (typeof plist == "string") st = plist; - else { - st = "M"; - st += (plist[0][0]*xunitlength+origin[0])+","+ - (height-plist[0][1]*yunitlength-origin[1])+" "+c; - for (i=1; i<plist.length; i++) - st += (plist[i][0]*xunitlength+origin[0])+","+ - (height-plist[i][1]*yunitlength-origin[1])+" "; - } - node.setAttribute("d", st); - node.setAttribute("stroke-width", strokewidth); - if (strokedasharray!=null) - node.setAttribute("stroke-dasharray", strokedasharray); - node.setAttribute("stroke", stroke); - node.setAttribute("fill", fill); - if (marker=="dot" || marker=="arrowdot") - for (i=0; i<plist.length; i++) - if (c!="C" && c!="T" || i!=1 && i!=2) - ASdot(plist[i],4,markerstroke,markerfill); -} - -function curve(plist,id) { - path(plist,id,"T"); -} - -function circle(center,radius,id) { // coordinates in units - var node; - if (id!=null) node = doc.getElementById(id); - if (node==null) { - node = myCreateElementSVG("circle"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - } - node.setAttribute("cx",center[0]*xunitlength+origin[0]); - node.setAttribute("cy",height-center[1]*yunitlength-origin[1]); - node.setAttribute("r",radius*xunitlength); - node.setAttribute("stroke-width", strokewidth); - node.setAttribute("stroke", stroke); - node.setAttribute("fill", fill); -} - -function loop(p,d,id) { -// d is a direction vector e.g. [1,0] means loop starts in that direction - if (d==null) d=[1,0]; - path([p,[p[0]+d[0],p[1]+d[1]],[p[0]-d[1],p[1]+d[0]],p],id,"C"); - if (marker=="arrow" || marker=="arrowdot") - arrowhead([p[0]+Math.cos(1.4)*d[0]-Math.sin(1.4)*d[1], - p[1]+Math.sin(1.4)*d[0]+Math.cos(1.4)*d[1]],p); -} - -function arc(start,end,radius,id) { // coordinates in units - var node, v; -//alert([fill, stroke, origin, xunitlength, yunitlength, height]) - if (id!=null) node = doc.getElementById(id); - if (radius==null) { - v=[end[0]-start[0],end[1]-start[1]]; - radius = Math.sqrt(v[0]*v[0]+v[1]*v[1]); - } - if (node==null) { - node = myCreateElementSVG("path"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - } - node.setAttribute("d","M"+(start[0]*xunitlength+origin[0])+","+ - (height-start[1]*yunitlength-origin[1])+" A"+radius*xunitlength+","+ - radius*yunitlength+" 0 0,0 "+(end[0]*xunitlength+origin[0])+","+ - (height-end[1]*yunitlength-origin[1])); - node.setAttribute("stroke-width", strokewidth); - node.setAttribute("stroke", stroke); - node.setAttribute("fill", fill); - if (marker=="arrow" || marker=="arrowdot") { - u = [(end[1]-start[1])/4,(start[0]-end[0])/4]; - v = [(end[0]-start[0])/2,(end[1]-start[1])/2]; -//alert([u,v]) - v = [start[0]+v[0]+u[0],start[1]+v[1]+u[1]]; - } else v=[start[0],start[1]]; - if (marker=="dot" || marker=="arrowdot") { - ASdot(start,4,markerstroke,markerfill); - if (marker=="arrowdot") arrowhead(v,end); - ASdot(end,4,markerstroke,markerfill); - } else if (marker=="arrow") arrowhead(v,end); -} - -function ellipse(center,rx,ry,id) { // coordinates in units - var node; - if (id!=null) node = doc.getElementById(id); - if (node==null) { - node = myCreateElementSVG("ellipse"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - } - node.setAttribute("cx",center[0]*xunitlength+origin[0]); - node.setAttribute("cy",height-center[1]*yunitlength-origin[1]); - node.setAttribute("rx",rx*xunitlength); - node.setAttribute("ry",ry*yunitlength); - node.setAttribute("stroke-width", strokewidth); - node.setAttribute("stroke", stroke); - node.setAttribute("fill", fill); -} - -function rect(p,q,id,rx,ry) { // opposite corners in units, rounded by radii - var node; - if (id!=null) node = doc.getElementById(id); - if (node==null) { - node = myCreateElementSVG("rect"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - } - node.setAttribute("x",p[0]*xunitlength+origin[0]); - node.setAttribute("y",height-q[1]*yunitlength-origin[1]); - node.setAttribute("width",(q[0]-p[0])*xunitlength); - node.setAttribute("height",(q[1]-p[1])*yunitlength); - if (rx!=null) node.setAttribute("rx",rx*xunitlength); - if (ry!=null) node.setAttribute("ry",ry*yunitlength); - node.setAttribute("stroke-width", strokewidth); - node.setAttribute("stroke", stroke); - node.setAttribute("fill", fill); -} - -function text(p,st,pos,id,fontsty) { - var textanchor = "middle"; - var dx = 0; var dy = fontsize/3; - if (pos!=null) { - if (pos.slice(0,5)=="above") dy = -fontsize/2; - if (pos.slice(0,5)=="below") dy = fontsize-0; - if (pos.slice(0,5)=="right" || pos.slice(5,10)=="right") { - textanchor = "start"; - dx = fontsize/2; - } - if (pos.slice(0,4)=="left" || pos.slice(5,9)=="left") { - textanchor = "end"; - dx = -fontsize/2; - } - } - var node; - if (id!=null) node = doc.getElementById(id); - if (node==null) { - node = myCreateElementSVG("text"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - node.appendChild(doc.createTextNode(st)); - } - node.lastChild.nodeValue = st; - node.setAttribute("x",p[0]*xunitlength+origin[0]+dx); - node.setAttribute("y",height-p[1]*yunitlength-origin[1]+dy); - node.setAttribute("font-style",(fontsty!=null?fontsty:fontstyle)); - node.setAttribute("font-family",fontfamily); - node.setAttribute("font-size",fontsize); - node.setAttribute("font-weight",fontweight); - node.setAttribute("text-anchor",textanchor); - if (fontstroke!="none") node.setAttribute("stroke",fontstroke); - if (fontfill!="none") node.setAttribute("fill",fontfill); - return p; -} - -function ASdot(center,radius,s,f) { // coordinates in units, radius in pixel - if (s==null) s = stroke; if (f==null) f = fill; - var node = myCreateElementSVG("circle"); - node.setAttribute("cx",center[0]*xunitlength+origin[0]); - node.setAttribute("cy",height-center[1]*yunitlength-origin[1]); - node.setAttribute("r",radius); - node.setAttribute("stroke-width", strokewidth); - node.setAttribute("stroke", s); - node.setAttribute("fill", f); - svgpicture.appendChild(node); -} - -function dot(center, typ, label, pos, id) { - var node; - var cx = center[0]*xunitlength+origin[0]; - var cy = height-center[1]*yunitlength-origin[1]; - if (id!=null) node = doc.getElementById(id); - if (typ=="+" || typ=="-" || typ=="|") { - if (node==null) { - node = myCreateElementSVG("path"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - } - if (typ=="+") { - node.setAttribute("d", - " M "+(cx-ticklength)+" "+cy+" L "+(cx+ticklength)+" "+cy+ - " M "+cx+" "+(cy-ticklength)+" L "+cx+" "+(cy+ticklength)); - node.setAttribute("stroke-width", .5); - node.setAttribute("stroke", axesstroke); - } else { - if (typ=="-") node.setAttribute("d", - " M "+(cx-ticklength)+" "+cy+" L "+(cx+ticklength)+" "+cy); - else node.setAttribute("d", - " M "+cx+" "+(cy-ticklength)+" L "+cx+" "+(cy+ticklength)); - node.setAttribute("stroke-width", strokewidth); - node.setAttribute("stroke", stroke); - } - } else { - if (node==null) { - node = myCreateElementSVG("circle"); - node.setAttribute("id", id); - svgpicture.appendChild(node); - } - node.setAttribute("cx",cx); - node.setAttribute("cy",cy); - node.setAttribute("r",dotradius); - node.setAttribute("stroke-width", strokewidth); - node.setAttribute("stroke", stroke); - node.setAttribute("fill", (typ=="open"?"white":stroke)); - } - if (label!=null) - text(center,label,(pos==null?"below":pos),(id==null?id:id+"label")) -} - -function arrowhead(p,q) { // draw arrowhead at q (in units) - var up; - var v = [p[0]*xunitlength+origin[0],height-p[1]*yunitlength-origin[1]]; - var w = [q[0]*xunitlength+origin[0],height-q[1]*yunitlength-origin[1]]; - var u = [w[0]-v[0],w[1]-v[1]]; - var d = Math.sqrt(u[0]*u[0]+u[1]*u[1]); - if (d > 0.00000001) { - u = [u[0]/d, u[1]/d]; - up = [-u[1],u[0]]; - var node = myCreateElementSVG("path"); - node.setAttribute("d","M "+(w[0]-15*u[0]-4*up[0])+" "+ - (w[1]-15*u[1]-4*up[1])+" L "+(w[0]-3*u[0])+" "+(w[1]-3*u[1])+" L "+ - (w[0]-15*u[0]+4*up[0])+" "+(w[1]-15*u[1]+4*up[1])+" z"); - node.setAttribute("stroke-width", markerstrokewidth); - node.setAttribute("stroke", stroke); /*was markerstroke*/ - node.setAttribute("fill", stroke); /*was arrowfill*/ - svgpicture.appendChild(node); - } -} - -function chopZ(st) { - var k = st.indexOf("."); - if (k==-1) return st; - for (var i=st.length-1; i>k && st.charAt(i)=="0"; i--); - if (i==k) i--; - return st.slice(0,i+1); -} - -function grid(dx,dy) { // for backward compatibility - axes(dx,dy,null,dx,dy) -} - -function noaxes() { - if (!initialized) initPicture(); -} - -function axes(dx,dy,labels,gdx,gdy) { -//xscl=x is equivalent to xtick=x; xgrid=x; labels=true; - var x, y, ldx, ldy, lx, ly, lxp, lyp, pnode, st; - if (!initialized) initPicture(); - if (typeof dx=="string") { labels = dx; dx = null; } - if (typeof dy=="string") { gdx = dy; dy = null; } - if (xscl!=null) {dx = xscl; gdx = xscl; labels = dx} - if (yscl!=null) {dy = yscl; gdy = yscl} - if (xtick!=null) {dx = xtick} - if (ytick!=null) {dy = ytick} -//alert(null) - dx = (dx==null?xunitlength:dx*xunitlength); - dy = (dy==null?dx:dy*yunitlength); - fontsize = Math.min(dx/2,dy/2,16);//alert(fontsize) - ticklength = fontsize/4; - if (xgrid!=null) gdx = xgrid; - if (ygrid!=null) gdy = ygrid; - if (gdx!=null) { - gdx = (typeof gdx=="string"?dx:gdx*xunitlength); - gdy = (gdy==null?dy:gdy*yunitlength); - pnode = myCreateElementSVG("path"); - st=""; - for (x = origin[0]; x<width; x = x+gdx) - st += " M"+x+",0"+" "+x+","+height; - for (x = origin[0]-gdx; x>0; x = x-gdx) - st += " M"+x+",0"+" "+x+","+height; - for (y = height-origin[1]; y<height; y = y+gdy) - st += " M0,"+y+" "+width+","+y; - for (y = height-origin[1]-gdy; y>0; y = y-gdy) - st += " M0,"+y+" "+width+","+y; - pnode.setAttribute("d",st); - pnode.setAttribute("stroke-width", .5); - pnode.setAttribute("stroke", gridstroke); - pnode.setAttribute("fill", fill); - svgpicture.appendChild(pnode); - } - pnode = myCreateElementSVG("path"); - st="M0,"+(height-origin[1])+" "+width+","+ - (height-origin[1])+" M"+origin[0]+",0 "+origin[0]+","+height; - for (x = origin[0]+dx; x<width; x = x+dx) - st += " M"+x+","+(height-origin[1]+ticklength)+" "+x+","+ - (height-origin[1]-ticklength); - for (x = origin[0]-dx; x>0; x = x-dx) - st += " M"+x+","+(height-origin[1]+ticklength)+" "+x+","+ - (height-origin[1]-ticklength); - for (y = height-origin[1]+dy; y<height; y = y+dy) - st += " M"+(origin[0]+ticklength)+","+y+" "+(origin[0]-ticklength)+","+y; - for (y = height-origin[1]-dy; y>0; y = y-dy) - st += " M"+(origin[0]+ticklength)+","+y+" "+(origin[0]-ticklength)+","+y; - if (labels!=null) with (Math) { - ldx = dx/xunitlength; - ldy = dy/yunitlength; - lx = (xmin>0 || xmax<0?xmin:0); - ly = (ymin>0 || ymax<0?ymin:0); - lxp = (ly==0?"below":"above"); - lyp = (lx==0?"left":"right"); - var ddx = floor(1.1-log(ldx)/log(10))+1; - var ddy = floor(1.1-log(ldy)/log(10))+1; - for (x = ldx; x<=xmax; x = x+ldx) - text([x,ly],chopZ(x.toFixed(ddx)),lxp); - for (x = -ldx; xmin<=x; x = x-ldx) - text([x,ly],chopZ(x.toFixed(ddx)),lxp); - for (y = ldy; y<=ymax; y = y+ldy) - text([lx,y],chopZ(y.toFixed(ddy)),lyp); - for (y = -ldy; ymin<=y; y = y-ldy) - text([lx,y],chopZ(y.toFixed(ddy)),lyp); - } - pnode.setAttribute("d",st); - pnode.setAttribute("stroke-width", .5); - pnode.setAttribute("stroke", axesstroke); - pnode.setAttribute("fill", fill); - svgpicture.appendChild(pnode); -} - -function mathjs(st) { - //translate a math formula to js function notation - // a^b --> pow(a,b) - // na --> n*a - // (...)d --> (...)*d - // n! --> factorial(n) - // sin^-1 --> arcsin etc. - //while ^ in string, find term on left and right - //slice and concat new formula string - st = st.replace(/\s/g,""); - if (st.indexOf("^-1")!=-1) { - st = st.replace(/sin\^-1/g,"arcsin"); - st = st.replace(/cos\^-1/g,"arccos"); - st = st.replace(/tan\^-1/g,"arctan"); - st = st.replace(/sec\^-1/g,"arcsec"); - st = st.replace(/csc\^-1/g,"arccsc"); - st = st.replace(/cot\^-1/g,"arccot"); - st = st.replace(/sinh\^-1/g,"arcsinh"); - st = st.replace(/cosh\^-1/g,"arccosh"); - st = st.replace(/tanh\^-1/g,"arctanh"); - st = st.replace(/sech\^-1/g,"arcsech"); - st = st.replace(/csch\^-1/g,"arccsch"); - st = st.replace(/coth\^-1/g,"arccoth"); - } - st = st.replace(/^e$/g,"(E)"); - st = st.replace(/^e([^a-zA-Z])/g,"(E)$1"); - st = st.replace(/([^a-zA-Z])e([^a-zA-Z])/g,"$1(E)$2"); - st = st.replace(/([0-9])([\(a-zA-Z])/g,"$1*$2"); - st = st.replace(/\)([\(0-9a-zA-Z])/g,"\)*$1"); - var i,j,k, ch, nested; - while ((i=st.indexOf("^"))!=-1) { - //find left argument - if (i==0) return "Error: missing argument"; - j = i-1; - ch = st.charAt(j); - if (ch>="0" && ch<="9") {// look for (decimal) number - j--; - while (j>=0 && (ch=st.charAt(j))>="0" && ch<="9") j--; - if (ch==".") { - j--; - while (j>=0 && (ch=st.charAt(j))>="0" && ch<="9") j--; - } - } else if (ch==")") {// look for matching opening bracket and function name - nested = 1; - j--; - while (j>=0 && nested>0) { - ch = st.charAt(j); - if (ch=="(") nested--; - else if (ch==")") nested++; - j--; - } - while (j>=0 && (ch=st.charAt(j))>="a" && ch<="z" || ch>="A" && ch<="Z") - j--; - } else if (ch>="a" && ch<="z" || ch>="A" && ch<="Z") {// look for variable - j--; - while (j>=0 && (ch=st.charAt(j))>="a" && ch<="z" || ch>="A" && ch<="Z") - j--; - } else { - return "Error: incorrect syntax in "+st+" at position "+j; - } - //find right argument - if (i==st.length-1) return "Error: missing argument"; - k = i+1; - ch = st.charAt(k); - if (ch>="0" && ch<="9" || ch=="-") {// look for signed (decimal) number - k++; - while (k<st.length && (ch=st.charAt(k))>="0" && ch<="9") k++; - if (ch==".") { - k++; - while (k<st.length && (ch=st.charAt(k))>="0" && ch<="9") k++; - } - } else if (ch=="(") {// look for matching closing bracket and function name - nested = 1; - k++; - while (k<st.length && nested>0) { - ch = st.charAt(k); - if (ch=="(") nested++; - else if (ch==")") nested--; - k++; - } - } else if (ch>="a" && ch<="z" || ch>="A" && ch<="Z") {// look for variable - k++; - while (k<st.length && (ch=st.charAt(k))>="a" && ch<="z" || - ch>="A" && ch<="Z") k++; - } else { - return "Error: incorrect syntax in "+st+" at position "+k; - } - st = st.slice(0,j+1)+"pow("+st.slice(j+1,i)+","+st.slice(i+1,k)+")"+ - st.slice(k); - } - while ((i=st.indexOf("!"))!=-1) { - //find left argument - if (i==0) return "Error: missing argument"; - j = i-1; - ch = st.charAt(j); - if (ch>="0" && ch<="9") {// look for (decimal) number - j--; - while (j>=0 && (ch=st.charAt(j))>="0" && ch<="9") j--; - if (ch==".") { - j--; - while (j>=0 && (ch=st.charAt(j))>="0" && ch<="9") j--; - } - } else if (ch==")") {// look for matching opening bracket and function name - nested = 1; - j--; - while (j>=0 && nested>0) { - ch = st.charAt(j); - if (ch=="(") nested--; - else if (ch==")") nested++; - j--; - } - while (j>=0 && (ch=st.charAt(j))>="a" && ch<="z" || ch>="A" && ch<="Z") - j--; - } else if (ch>="a" && ch<="z" || ch>="A" && ch<="Z") {// look for variable - j--; - while (j>=0 && (ch=st.charAt(j))>="a" && ch<="z" || ch>="A" && ch<="Z") - j--; - } else { - return "Error: incorrect syntax in "+st+" at position "+j; - } - st = st.slice(0,j+1)+"factorial("+st.slice(j+1,i)+")"+st.slice(i+1); - } - return st; -} - -function plot(fun,x_min,x_max,points,id) { - var pth = []; - var f = function(x) { return x }, g = fun; - var name = null; - if (typeof fun=="string") - eval("g = function(x){ with(Math) return "+mathjs(fun)+" }"); - else if (typeof fun=="object") { - eval("f = function(t){ with(Math) return "+mathjs(fun[0])+" }"); - eval("g = function(t){ with(Math) return "+mathjs(fun[1])+" }"); - } - if (typeof x_min=="string") { name = x_min; x_min = xmin } - else name = id; - var min = (x_min==null?xmin:x_min); - var max = (x_max==null?xmax:x_max); - var inc = max-min-0.000001*(max-min); - inc = (points==null?inc/200:inc/points); - var gt; -//alert(typeof g(min)) - for (var t = min; t <= max; t += inc) { - gt = g(t); - if (!(isNaN(gt)||Math.abs(gt)=="Infinity")) pth[pth.length] = [f(t), gt]; - } - path(pth,name) - return p; -} - -function slopefield(fun,dx,dy) { - var g = fun; - if (typeof fun=="string") - eval("g = function(x,y){ with(Math) return "+mathjs(fun)+" }"); - var gxy,x,y,u,v,dz; - if (dx==null) dx=1; - if (dy==null) dy=1; - dz = Math.sqrt(dx*dx+dy*dy)/6; - var x_min = Math.ceil(xmin/dx); - var y_min = Math.ceil(ymin/dy); - for (x = x_min; x <= xmax; x += dx) - for (y = y_min; y <= ymax; y += dy) { - gxy = g(x,y); - if (!isNaN(gxy)) { - if (Math.abs(gxy)=="Infinity") {u = 0; v = dz;} - else {u = dz/Math.sqrt(1+gxy*gxy); v = gxy*u;} - line([x-u,y-v],[x+u,y+v]); - } - } -} - -function updateCoords(ind) { - switchTo("picture"+(ind+1)); - var gx=getX(), gy=getY(); - if ((xmax-gx)*xunitlength > 6*fontsize || (gy-ymin)*yunitlength > 2*fontsize) - text([xmax,ymin],"("+gx.toFixed(2)+", "+gy.toFixed(2)+")", - "aboveleft","AScoord"+ind,""); - else text([xmax,ymin]," ","aboveleft","AScoord"+ind,""); -} - -function updateCoords0() {updateCoords(0)} -function updateCoords1() {updateCoords(1)} -function updateCoords2() {updateCoords(2)} -function updateCoords3() {updateCoords(3)} -function updateCoords4() {updateCoords(4)} -function updateCoords5() {updateCoords(5)} -function updateCoords6() {updateCoords(6)} -function updateCoords7() {updateCoords(7)} -function updateCoords8() {updateCoords(8)} -function updateCoords9() {updateCoords(9)} -ASfn = [function() {updatePicture(0)}, - function() {updatePicture(1)}, - function() {updatePicture(2)}, - function() {updatePicture(3)}, - function() {updatePicture(4)}, - function() {updatePicture(5)}, - function() {updatePicture(6)}, - function() {updatePicture(7)}, - function() {updatePicture(8)}, - function() {updatePicture(9)}]; -ASupdateCoords = [function() {updateCoords(0)}, - function() {updateCoords(1)}, - function() {updateCoords(2)}, - function() {updateCoords(3)}, - function() {updateCoords(4)}, - function() {updateCoords(5)}, - function() {updateCoords(6)}, - function() {updateCoords(7)}, - function() {updateCoords(8)}, - function() {updateCoords(9)}]; - -// GO1.1 Generic onload by Brothercake -// http://www.brothercake.com/ -//onload function -function generic() -{ - drawPictures(); -}; -//setup onload function -if(typeof window.addEventListener != 'undefined') -{ - //.. gecko, safari, konqueror and standard - window.addEventListener('load', generic, false); -} -else if(typeof document.addEventListener != 'undefined') -{ - //.. opera 7 - document.addEventListener('load', generic, false); -} -else if(typeof window.attachEvent != 'undefined') -{ - //.. win/ie - window.attachEvent('onload', generic); -} -//** remove this condition to degrade older browsers -else -{ - //.. mac/ie5 and anything else that gets this far - //if there's an existing onload function - if(typeof window.onload == 'function') - { - //store it - var existing = onload; - //add new onload handler - window.onload = function() - { - //call existing onload function - existing(); - //call generic onload function - generic(); - }; - } - else - { - //setup onload function - window.onload = generic; - } -} +/* ASCIIsvg.js +============== +JavaScript routines to dynamically generate Scalable Vector Graphics +using a mathematical xy-coordinate system (y increases upwards) and +very intuitive JavaScript commands (no programming experience required). +ASCIIsvg.js is good for learning math and illustrating online math texts. +Works with Internet Explorer+Adobe SVGviewer and SVG enabled Mozilla/Firefox. + +Ver 1.2.7 Oct 13, 2005 (c) Peter Jipsen http://www.chapman.edu/~jipsen +Latest version at http://www.chapman.edu/~jipsen/svg/ASCIIsvg.js +If you use it on a webpage, please send the URL to ji...@ch... + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License (at http://www.gnu.org/copyleft/gpl.html) +for more details.*/ + +var checkIfSVGavailable = true; +var notifyIfNoSVG = true; +var alertIfNoSVG = false; +var xunitlength = 20; // pixels +var yunitlength = 20; // pixels +var origin = [0,0]; // in pixels (default is bottom left corner) +var defaultwidth = 300; defaultheight = 200; defaultborder = 0; +var border = defaultborder; +var strokewidth, strokedasharray, stroke, fill; +var fontstyle, fontfamily, fontsize, fontweight, fontstroke, fontfill; +var markerstrokewidth = "1"; +var markerstroke = "black"; +var markerfill = "yellow"; +var marker = "none"; +var arrowfill = stroke; +var dotradius = 4; +var ticklength = 4; +var axesstroke = "black"; +var gridstroke = "grey"; +var pointerpos = null; +var coordinates = null; +var above = "above"; +var below = "below"; +var left = "left"; +var right = "right"; +var aboveleft = "aboveleft"; +var aboveright = "aboveright"; +var belowleft = "belowleft"; +var belowright = "belowright"; +var cpi = "\u03C0", ctheta = "\u03B8"; +var pi = Math.PI, ln = Math.log, e = Math.E; +var arcsin = Math.asin, arccos = Math.acos, arctan = Math.atan; +var sec = function(x) { return 1/Math.cos(x) }; +var csc = function(x) { return 1/Math.sin(x) }; +var cot = function(x) { return 1/Math.tan(x) }; +var xmin, xmax, ymin, ymax, xscl, yscl, + xgrid, ygrid, xtick, ytick, initialized; +var isIE = document.createElementNS==null; +var picture, svgpicture, doc, width, height, a, b, c, d, i, n, p, t, x, y; +var arcsec = function(x) { return arccos(1/x) }; +var arccsc = function(x) { return arcsin(1/x) }; +var arccot = function(x) { return arctan(1/x) }; +var sinh = function(x) { return (Math.exp(x)-Math.exp(-x))/2 }; +var cosh = function(x) { return (Math.exp(x)+Math.exp(-x))/2 }; +var tanh = + function(x) { return (Math.exp(x)-Math.exp(-x))/(Math.exp(x)+Math.exp(-x)) }; +var sech = function(x) { return 1/cosh(x) }; +var csch = function(x) { return 1/sinh(x) }; +var coth = function(x) { return 1/tanh(x) }; +var arcsinh = function(x) { return ln(x+Math.sqrt(x*x+1)) }; +var arccosh = function(x) { return ln(x+Math.sqrt(x*x-1)) }; +var arctanh = function(x) { return ln((1+x)/(1-x))/2 }; +var sech = function(x) { return 1/cosh(x) }; +var csch = function(x) { return 1/sinh(x) }; +var coth = function(x) { return 1/tanh(x) }; +var arcsech = function(x) { return arccosh(1/x) }; +var arccsch = function(x) { return arcsinh(1/x) }; +var arccoth = function(x) { return arctanh(1/x) }; +var sign = function(x) { return (x==0?0:(x<0?-1:1)) }; + +function factorial(x,n) { + if (n==null) n=1; + for (var i=x-n; i>0; i-=n) x*=i; + return (x<0?NaN:(x==0?1:x)); +} + +function C(x,k) { + var res=1; + for (var i=0; i<k; i++) res*=(x-i)/(k-i); + return res; +} + +function chop(x,n) { + if (n==null) n=0; + return Math.floor(x*Math.pow(10,n))/Math.pow(10,n); +} + +function ran(a,b,n) { + if (n==null) n=0; + return chop((b+Math.pow(10,-n)-a)*Math.random()+a,n); +} + +function myCreateElementXHTML(t) { + if (isIE) return document.createElement(t); + else return document.createElementNS("http://www.w3.org/1999/xhtml",t); +} + +function isSVGavailable() { + var ua = navigator.userAgent; + if (ua.match("AppleWebKit")) { + return null; + } + if (navigator.appName.slice(0,5)=="Opera") { + return null; + } + var nd = myCreateElementXHTML("center"); + nd.appendChild(document.createTextNode("To view the ")); + var an = myCreateElementXHTML("a"); + an.appendChild(document.createTextNode("ASCIIsvg")); + an.setAttribute("href","http://www.chapman.edu/~jipsen/asciisvg.html"); + nd.appendChild(an); + nd.appendChild(document.createTextNode(" images use Internet Explorer 6+")); + an = myCreateElementXHTML("a"); + an.appendChild(document.createTextNode("Adobe SVGviewer 3.02")); + an.setAttribute("href","http://www.adobe.com/svg"); + nd.appendChild(an); + nd.appendChild(document.createTextNode(" or ")); + an = myCreateElementXHTML("a"); + an.appendChild(document.createTextNode("SVG enabled Mozilla/Firefox")); + an.setAttribute("href", + "http://www.chapman.edu/~jipsen/svg/svgenabledmozillafirefox.html"); + nd.appendChild(an); + if (navigator.appName.slice(0,8)=="Netscape") + if (window['SVGElement']) return null; + else return nd; + else if (navigator.appName.slice(0,9)=="Microsoft") + try { + var oSVG=eval("new ActiveXObject('Adobe.SVGCtl.3');"); + return null; + } catch (e) { + return nd; + } + else return nd; +} + + +function less(x,y) { return x < y } // used for scripts in XML files + // since IE does not handle CDATA well +function setText(st,id) { + var node = document.getElementById(id); + if (node!=null) + if (node.childNodes.length!=0) node.childNodes[0].nodeValue = st; + else node.appendChild(document.createTextNode(st)); +} + +function myCreateElementSVG(t) { + if (isIE) return doc.createElement(t); + else return doc.createElementNS("http://www.w3.org/2000/svg",t); +} + +function getX() { + return (doc.getElementById("pointerpos").getAttribute("cx")-origin[0])/xunitlength; +} + +function getY() { + return (height-origin[1]-doc.getElementById("pointerpos").getAttribute("cy"))/yunitlength; +} + +function mousemove_listener(evt) { + if (svgpicture.getAttribute("xbase")!=null) + pointerpos.cx.baseVal.value = evt.clientX-svgpicture.getAttribute("xbase"); + if (svgpicture.getAttribute("ybase")!=null) + pointerpos.cy.baseVal.value = evt.clientY-svgpicture.getAttribute("ybase"); +} + +function top_listener(evt) { + svgpicture.setAttribute("ybase",evt.clientY); +} + +function bottom_listener(evt) { + svgpicture.setAttribute("ybase",evt.clientY-height+1); +} + +function left_listener(evt) { + svgpicture.setAttribute("xbase",evt.clientX); +} + +function right_listener(evt) { + svgpicture.setAttribute("xbase",evt.clientX-width+1); +} + +function drawPictures() { // main routine; called after webpage has loaded + var src, id, dsvg, onmov, nd, node, ht, index; + var pictures = document.getElementsByTagName("textarea"); + for (index = 0; index<pictures.length; index++) + if (pictures[index].className=="ASCIIsvg"){ + pictures[index].style.display="none"; // hide the textarea + } + pictures = document.getElementsByTagName("embed"); + var len = pictures.length; + if (checkIfSVGavailable) { + nd = isSVGavailable(); + if (nd != null && notifyIfNoSVG && len>0) + if (alertIfNoSVG) + alert("To view the SVG pictures in Internet Explorer\n\ +download the free Adobe SVGviewer from www.adobe.com/svg or\n\ +use Firefox 1.5 preview (called Deerpark)"); + else { + var ASbody = document.getElementsByTagName("body")[0]; + ASbody.insertBefore(nd,ASbody.childNodes[0]); + } + } + if (nd == null) { + for (index = 0; index < len; index++) { + xmin = null; xmax = null; ymin = null; ymax = null; + xscl = null; xgrid = null; yscl = null; ygrid = null; + initialized = false; + picture = (isIE ? pictures[index] : pictures[0]); + src = picture.getAttribute("script"); + if (src==null) src = ""; + ht = picture.getAttribute("height"); + if (ht==null) ht =""; + if (ht!="") defaultborder = 25; + if (ht=="" || src=="") + if (document.getElementById("picture"+(index+1)+"input")==null) { + if (isIE && src.indexOf("nobutton()")==-1) + picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture); + node = myCreateElementXHTML("textarea"); + node.setAttribute("rows","10"); + node.setAttribute("cols","60"); +// node.setAttribute("style","display:block"); + if (isIE) src = src.replace(/([^\r])\n/g,"$1\r").slice(1); + node.appendChild(document.createTextNode(src)); + if (src.indexOf("showcode()")==-1) node.style.display = "none"; + node.setAttribute("id","picture"+(index+1)+"input"); + picture.parentNode.insertBefore(node,picture); + + if (src.indexOf("nobutton()")==-1) { + picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture); + + node = myCreateElementXHTML("button"); + if (isIE) node.onclick = function() { showHideCode(this) }; + else node.setAttribute("onclick","showHideCode(this)"); + node.appendChild(document.createTextNode("Show/Hide")); + picture.parentNode.insertBefore(node,picture); + + node = myCreateElementXHTML("button"); + if (isIE) node.onclick = ASfn[index]; + else node.setAttribute("onclick","updatePicture("+index+")"); + node.appendChild(document.createTextNode("Update")); + if (src.indexOf("showCode()")==-1) node.style.display = "none"; + picture.parentNode.insertBefore(node,picture); + +/* node = myCreateElementXHTML("span"); +// node.setAttribute("id","AScoord"+index); + node.appendChild(document.createTextNode("(x,y)")); + picture.parentNode.insertBefore(node,picture); +*/ + picture.parentNode.insertBefore(myCreateElementXHTML("br"),picture); + } + if (isIE) picture.onmousemove = ASupdateCoords[index]; + else picture.setAttribute("onmousemove","updateCoords"+index+"()"); + } else src = document.getElementById("picture"+(index+1)+"input").value; + src = src.replace(/plot\(\x20*([^\"f\[][^\n\r]+?)\,/g,"plot\(\"$1\","); + src = src.replace(/plot\(\x20*([^\"f\[][^\n\r]+)\)/g,"plot(\"$1\")"); + src = src.replace(/([0-9])([a-zA-Z])/g,"$1*$2"); + src = src.replace(/\)([\(0-9a-zA-Z])/g,"\)*$1"); +// eval(src.replace(/\s\s/g,";")); //for XML version + id = picture.getAttribute("id"); + dsvg = picture.getAttribute("src"); + onmov = picture.getAttribute("onmousemove"); + if (id == null || id == "") { + id = "picture"+(index+1); + picture.setAttribute("id",id); + } + try { + with (Math) eval(src); + } catch(err) {alert(err+"\n"+src)} + if (isIE) src = src.replace(/([^\r])\n/g,"$1\r"); + setText("<embed width=\""+width+"\" height=\""+height+"\" src=\""+ + dsvg+"\" "+(onmov!=null?"onmousemove=\""+onmov+"\"":"")+ + (isIE?"\r":"\n")+"script=\'"+src+"\'>",id+"script"); +// setText(src.replace(/\s\s/g,"\r"),id+"script"); //for XML version + } + } +} + +function switchTo(id) { +//alert(id); + picture = document.getElementById(id); + width = picture.getAttribute("width")-0; + height = picture.getAttribute("height")-0; + strokewidth = "1" // pixel + stroke = "black"; // default line color + fill = "none"; // default fill color + marker = "none"; + if ((picture.nodeName == "EMBED" || picture.nodeName == "embed") && isIE) { + svgpicture = picture.getSVGDocument().getElementById("root"); + doc = picture.getSVGDocument(); + } else { + picture.setAttribute("onmousemove","updateCoords"+(id.slice(id.length-1)-1)+"()"); +//alert(picture.getAttribute("onmousemove")+"***"); + svgpicture = picture; + doc = document; + } + xunitlength = svgpicture.getAttribute("xunitlength")-0; + yunitlength = svgpicture.getAttribute("yunitlength")-0; + xmin = svgpicture.getAttribute("xmin")-0; + xmax = svgpicture.getAttribute("xmax")-0; + ymin = svgpicture.getAttribute("ymin")-0; + ymax = svgpicture.getAttribute("ymax")-0; + origin = [svgpicture.getAttribute("ox")-0,svgpicture.getAttribute("oy")-0]; +} + +function updatePicture(obj) { +//alert(typeof obj) + var src = document.getElementById((typeof obj=="string"? + obj:"picture"+(obj+1)+"input")).value; + xmin = null; xmax = null; ymin = null; ymax = null; + xscl = null; xgrid = null; yscl = null; ygrid = null; + initialized = false; + switchTo((typeof obj=="string"?obj.slice(0,8):"picture"+(obj+1))); + src = src.replace(/plot\(\x20*([^\"f\[][^\n\r]+?)\,/g,"plot\(\"$1\","); + src = src.replace(/plot\(\x20*([^\"f\[][^\n\r]+)\)/g,"plot(\"$1\")"); + src = src.replace(/([0-9])([a-zA-Z])/g,"$1*$2"); + src = src.replace(/\)([\(0-9a-zA-Z])/g,"\)*$1"); +//alert(src); + try { + with (Math) eval(src); + } catch(err) {alert(err+"\n"+src)} +} + +function showHideCode(obj) { + var node = obj.nextSibling; + while (node != null && node.nodeName != "BUTTON" && + node.nodeName != "button") node = node.nextSibling; + if (node.style.display == "none") node.style.display = ""; + else node.style.display = "none"; + while (node != null && node.nodeName != "TEXTAREA" && + node.nodeName != "textarea") node = node.previousSibling; + if (node.style.display == "none") node.style.display = ""; + else node.style.display = "none"; +// updatePicture(node.getAttribute("id")); +} + +function hideCode() { //do nothing +} + +function showcode() { //do nothing +} + +function nobutton() { //do nothing +} + +function setBorder(x) { border = x } + +function initPicture(x_min,x_max,y_min,y_max) { + if (!initialized) { + strokewidth = "1"; // pixel + strokedasharray = null; + stroke = "black"; // default line color + fill = "none"; // default fill color + fontstyle = "italic"; // default shape for text labels + fontfamily = "times"; // default font + fontsize = "16"; // default size + fontweight = "normal"; + fontstroke = "none"; // default font outline color + fontfill = "none"; // default font color + marker = "none"; + initialized = true; + if (x_min!=null) xmin = x_min; + if (x_max!=null) xmax = x_max; + if (y_min!=null) ymin = y_min; + if (y_max!=null) ymax = y_max; + if (xmin==null) xmin = -5; + if (xmax==null) xmax = 5; + if (typeof xmin != "number" || typeof xmax != "number" || xmin >= xmax) + alert("Picture requires at least two numbers: xmin < xmax"); + else if (y_max != null && (typeof y_min != "number" || + typeof y_max != "number" || y_min >= y_max)) + alert("initPicture(xmin,xmax,ymin,ymax) requires numbers ymin < ymax"); + else { + if (width==null) width = picture.getAttribute("width"); + else picture.setAttribute("width",width); + if (width==null || width=="") width=defaultwidth; + if (height==null) height = picture.getAttribute("height"); + else picture.setAttribute("height",height); + if (height==null || height=="") height=defaultheight; + xunitlength = (width-2*border)/(xmax-xmin); + yunitlength = xunitlength; +//alert(xmin+" "+xmax+" "+ymin+" "+ymax) + if (ymin==null) { + origin = [-xmin*xunitlength+border,height/2]; + ymin = -(height-2*border)/(2*yunitlength); + ymax = -ymin; + } else { + if (ymax!=null) yunitlength = (height-2*border)/(ymax-ymin); + else ymax = (height-2*border)/yunitlength + ymin; + origin = [-xmin*xunitlength+border,-ymin*yunitlength+border]; + } +// if (true ||picture.nodeName == "EMBED" || picture.nodeName == "embed") { + if (isIE) { + svgpicture = picture.getSVGDocument().getElementById("root"); + while (svgpicture.childNodes.length()>5) + svgpicture.removeChild(svgpicture.lastChild); + svgpicture.setAttribute("width",width); + svgpicture.setAttribute("height",height); + doc = picture.getSVGDocument(); + } else { + var qnode = document.createElementNS("http://www.w3.org/2000/svg","svg"); + qnode.setAttribute("id",picture.getAttribute("id")); + qnode.setAttribute("style","display:inline"); + qnode.setAttribute("width",picture.getAttribute("width")); + qnode.setAttribute("height",picture.getAttribute("height")); + if (picture.parentNode!=null) + picture.parentNode.replaceChild(qnode,picture); + else + svgpicture.parentNode.replaceChild(qnode,svgpicture); + svgpicture = qnode; + doc = document; + pointerpos = doc.getElementById("pointerpos"); + if (pointerpos==null) { + pointerpos = myCreateElementSVG("circle"); + pointerpos.setAttribute("id","pointerpos"); + pointerpos.setAttribute("cx",0); + pointerpos.setAttribute("cy",0); + pointerpos.setAttribute("r",0.5); + pointerpos.setAttribute("fill","red"); + svgpicture.appendChild(pointerpos); + } + } +// } else { +// svgpicture = picture; +// doc = document; +// } + svgpicture.setAttribute("xunitlength",xunitlength); + svgpicture.setAttribute("yunitlength",yunitlength); + svgpicture.setAttribute("xmin",xmin); + svgpicture.setAttribute("xmax",xmax); + svgpicture.setAttribute("ymin",ymin); + svgpicture.setAttribute("ymax",ymax); + svgpicture.setAttribute("ox",origin[0]); + svgpicture.setAttribute("oy",origin[1]); + var node = myCreateElementSVG("rect"); + node.setAttribute("x","0"); + node.setAttribute("y","0"); + node.setAttribute("width",width); + node.setAttribute("height",height); + node.setAttribute("style","stroke-width:1;fill:white"); + svgpicture.appendChild(node); + if (!isIE && picture.getAttribute("onmousemove")!=null) { + svgpicture.addEventListener("mousemove", mousemove_listener, true); + var st = picture.getAttribute("onmousemove"); + svgpicture.addEventListener("mousemove", eval(st.slice(0,st.indexOf("("))), true); + node = myCreateElementSVG("polyline"); + node.setAttribute("points","0,0 "+width+",0"); + node.setAttribute("style","stroke:white; stroke-width:3"); + node.addEventListener("mousemove", top_listener, true); + svgpicture.appendChild(node); + node = myCreateElementSVG("polyline"); + node.setAttribute("points","0,"+height+" "+width+","+height); + node.setAttribute("style","stroke:white; stroke-width:3"); + node.addEventListener("mousemove", bottom_listener, true); + svgpicture.appendChild(node); + node = myCreateElementSVG("polyline"); + node.setAttribute("points","0,0 0,"+height); + node.setAttribute("style","stroke:white; stroke-width:3"); + node.addEventListener("mousemove", left_listener, true); + svgpicture.appendChild(node); + node = myCreateElementSVG("polyline"); + node.setAttribute("points",(width-1)+",0 "+(width-1)+","+height); + node.setAttribute("style","stroke:white; stroke-width:3"); + node.addEventListener("mousemove", right_listener, true); + svgpicture.appendChild(node); + } + border = defaultborder; + } + } +} + +function line(p,q,id) { // segment connecting points p,q (coordinates in units) + var node; + if (id!=null) node = doc.getElementById(id); + if (node==null) { + node = myCreateElementSVG("path"); + node.setAttribute("id", id); + svgpicture.appendChild(node); + } + node.setAttribute("d","M"+(p[0]*xunitlength+origin[0])+","+ + (heig... [truncated message content] |
From: <var...@us...> - 2015-06-29 09:49:06
|
Revision: 9699 http://sourceforge.net/p/phpwiki/code/9699 Author: vargenau Date: 2015-06-29 09:49:03 +0000 (Mon, 29 Jun 2015) Log Message: ----------- Update jquery to 1.11.3 Added Paths: ----------- trunk/themes/default/jquery-1.11.3.min.js Removed Paths: ------------- trunk/themes/default/jquery-1.11.2.min.js Deleted: trunk/themes/default/jquery-1.11.2.min.js =================================================================== --- trunk/themes/default/jquery-1.11.2.min.js 2015-06-10 08:41:50 UTC (rev 9698) +++ trunk/themes/default/jquery-1.11.2.min.js 2015-06-29 09:49:03 UTC (rev 9699) @@ -1,4 +0,0 @@ -/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.2",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=hb(),z=hb(),A=hb(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},eb=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fb){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function gb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+rb(o[l]);w=ab.test(a)&&pb(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function hb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ib(a){return a[u]=!0,a}function jb(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function kb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function lb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function nb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ob(a){return ib(function(b){return b=+b,ib(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pb(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=gb.support={},f=gb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=gb.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",eb,!1):e.attachEvent&&e.attachEvent("onunload",eb)),p=!f(g),c.attributes=jb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=jb(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=jb(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(jb(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),jb(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&jb(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return lb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?lb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},gb.matches=function(a,b){return gb(a,null,null,b)},gb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return gb(b,n,null,[a]).length>0},gb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},gb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},gb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},gb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=gb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=gb.selectors={cacheLength:50,createPseudo:ib,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||gb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&gb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=gb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||gb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ib(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ib(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ib(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ib(function(a){return function(b){return gb(a,b).length>0}}),contains:ib(function(a){return a=a.replace(cb,db),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ib(function(a){return W.test(a||"")||gb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ob(function(){return[0]}),last:ob(function(a,b){return[b-1]}),eq:ob(function(a,b,c){return[0>c?c+b:c]}),even:ob(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:ob(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:ob(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:ob(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=mb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=nb(b);function qb(){}qb.prototype=d.filters=d.pseudos,d.setFilters=new qb,g=gb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?gb.error(a):z(a,i).slice(0)};function rb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function tb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ub(a,b,c){for(var d=0,e=b.length;e>d;d++)gb(a,b[d],c);return c}function vb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wb(a,b,c,d,e,f){return d&&!d[u]&&(d=wb(d)),e&&!e[u]&&(e=wb(e,f)),ib(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ub(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:vb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=vb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=vb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sb(function(a){return a===b},h,!0),l=sb(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sb(tb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wb(i>1&&tb(m),i>1&&rb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xb(a.slice(i,e)),f>e&&xb(a=a.slice(e)),f>e&&rb(a))}m.push(c)}return tb(m)}function yb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=vb(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&gb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ib(f):f}return h=gb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,yb(e,d)),f.selector=a}return f},i=gb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&pb(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&rb(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&pb(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=jb(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),jb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||kb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&jb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||kb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),jb(function(a){return null==a.getAttribute("disabled")})||kb(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),gb}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1; -return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function ab(){return!0}function bb(){return!1}function cb(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cb()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===cb()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ab:bb):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:bb,isPropagationStopped:bb,isImmediatePropagationStopped:bb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ab,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ab,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ab,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=bb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=bb),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function db(a){var b=eb.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var eb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fb=/ jQuery\d+="(?:null|\d+)"/g,gb=new RegExp("<(?:"+eb+")[\\s/>]","i"),hb=/^\s+/,ib=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,jb=/<([\w:]+)/,kb=/<tbody/i,lb=/<|&#?\w+;/,mb=/<(?:script|style|link)/i,nb=/checked\s*(?:[^=]|=\s*.checked.)/i,ob=/^$|\/(?:java|ecma)script/i,pb=/^true\/(.*)/,qb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,rb={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sb=db(y),tb=sb.appendChild(y.createElement("div"));rb.optgroup=rb.option,rb.tbody=rb.tfoot=rb.colgroup=rb.caption=rb.thead,rb.th=rb.td;function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ub(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function vb(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wb(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xb(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Ab(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xb(b).text=a.text,yb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!gb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(tb.innerHTML=a.outerHTML,tb.removeChild(f=tb.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ub(f),h=ub(a),g=0;null!=(e=h[g]);++g)d[g]&&Bb(e,d[g]);if(b)if(c)for(h=h||ub(a),d=d||ub(f),g=0;null!=(e=h[g]);g++)Ab(e,d[g]);else Ab(a,f);return d=ub(f,"script"),d.length>0&&zb(d,!i&&ub(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=db(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(lb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(jb.exec(f)||["",""])[1].toLowerCase(),l=rb[i]||rb._default,h.innerHTML=l[1]+f.replace(ib,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&hb.test(f)&&p.push(b.createTextNode(hb.exec(f)[0])),!k.tbody){f="table"!==i||kb.test(f)?"<table>"!==l[1]||kb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ub(p,"input"),vb),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ub(o.appendChild(f),"script"),g&&zb(h),c)){e=0;while(f=h[e++])ob.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ub(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&zb(ub(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ub(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fb,""):void 0;if(!("string"!=typeof a||mb.test(a)||!k.htmlSerialize&&gb.test(a)||!k.leadingWhitespace&&hb.test(a)||rb[(jb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ib,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ub(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ub(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&nb.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ub(i,"script"),xb),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ub(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,yb),j=0;f>j;j++)d=g[j],ob.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qb,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Cb,Db={};function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),"none"!==c&&c||(Cb=(Cb||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Cb[0].contentWindow||Cb[0].contentDocument).document,b.write(),b.close(),c=Eb(a,b),Cb.detach()),Db[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Gb=/^margin/,Hb=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ib,Jb,Kb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ib=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Jb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ib(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Hb.test(g)&&Gb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ib=function(a){return a.currentStyle},Jb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ib(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Hb.test(g)&&!Kb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Lb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Mb=/alpha\([^)]*\)/i,Nb=/opacity\s*=\s*([^)]*)/,Ob=/^(none|table(?!-c[ea]).+)/,Pb=new RegExp("^("+S+")(.*)$","i"),Qb=new RegExp("^([+-])=("+S+")","i"),Rb={position:"absolute",visibility:"hidden",display:"block"},Sb={letterSpacing:"0",fontWeight:"400"},Tb=["Webkit","O","Moz","ms"];function Ub(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCas... [truncated message content] |
From: <var...@us...> - 2022-01-03 18:22:22
|
Revision: 10811 http://sourceforge.net/p/phpwiki/code/10811 Author: vargenau Date: 2022-01-03 18:22:21 +0000 (Mon, 03 Jan 2022) Log Message: ----------- Put CSS for banners (feedback, warning, error, information) in default/phpwiki-common.css so that they appear in all themes Modified Paths: -------------- trunk/themes/default/phpwiki-common.css trunk/themes/default/phpwiki.css Modified: trunk/themes/default/phpwiki-common.css =================================================================== --- trunk/themes/default/phpwiki-common.css 2022-01-03 17:15:48 UTC (rev 10810) +++ trunk/themes/default/phpwiki-common.css 2022-01-03 18:22:21 UTC (rev 10811) @@ -64,6 +64,35 @@ font-style: italic; } +/* Banners ============================================================ */ + +.success, .feedback, .warning, .warning_msg, .error, .information { + color: black; + padding-left: 0.5em; + padding-right: 0.5em; + border: 1px solid; +} + +.success, .feedback { + border-color: green; + background-color: #DFF2BF; +} + +.warning_msg, .warning { + border-color: orange; + background-color: #FEEFB3; +} + +.error { + border-color: red; + background-color: #FFBABA; +} + +.information { + border-color: blue; + background-color: #BDE5F8; +} + /* Alert class ======================================================== */ .dialog { Modified: trunk/themes/default/phpwiki.css =================================================================== --- trunk/themes/default/phpwiki.css 2022-01-03 17:15:48 UTC (rev 10810) +++ trunk/themes/default/phpwiki.css 2022-01-03 18:22:21 UTC (rev 10811) @@ -563,32 +563,6 @@ display: none; } -.error { - color: black; - background: #eee; - margin-top: 1em; - margin-bottom: 1em; - padding-left: 0.8em; - padding-right: 0.8em; - padding-top: 0.8ex; - padding-bottom: 0; - border: medium solid red; - clear: both; -} - -.warning, .warning_msg { - color: black; - background: #eee; - margin-top: 1em; - margin-bottom: 1em; - padding-left: 0.8em; - padding-right: 0.8em; - padding-top: 0.8ex; - padding-bottom: 0; - border: thin solid blue; - clear: both; -} - /* Debug */ .debug { color: black; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |