Skip to content
Browse files

Online preview

  • Loading branch information...
1 parent fbde1d0 commit 54800f5df5117439bb7de7aea63387e1a710b0b4 bordeux committed Dec 10, 2011
Showing with 3,299 additions and 99 deletions.
  1. +165 −0 LICENSE
  2. +14 −0 README.mediawiki
  3. BIN css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png
  4. BIN css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png
  5. BIN css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png
  6. BIN css/cupertino/images/ui-bg_glass_50_3baae3_1x400.png
  7. BIN css/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png
  8. BIN css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png
  9. BIN css/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png
  10. BIN css/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png
  11. BIN css/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png
  12. BIN css/cupertino/images/ui-icons_2694e8_256x240.png
  13. BIN css/cupertino/images/ui-icons_2e83ff_256x240.png
  14. BIN css/cupertino/images/ui-icons_3d80b3_256x240.png
  15. BIN css/cupertino/images/ui-icons_72a7cf_256x240.png
  16. BIN css/cupertino/images/ui-icons_ffffff_256x240.png
  17. +578 −0 css/cupertino/jquery-ui-1.8.12.custom.css
  18. +177 −0 exampletext.html
  19. +471 −0 h5w/h5w.css
  20. +723 −0 h5w/h5w.js
  21. +1 −0 h5w/h5w.min.js
  22. BIN img/add.png
  23. BIN img/attributes.png
  24. BIN img/bold.png
  25. BIN img/copy.png
  26. BIN img/createlink.png
  27. BIN img/cut.png
  28. BIN img/delete.png
  29. BIN img/font_color.png
  30. BIN img/fontsize.png
  31. BIN img/fonttype.png
  32. BIN img/hilitecolor.png
  33. BIN img/hrule.png
  34. BIN img/indent.png
  35. BIN img/insertimage.png
  36. BIN img/italic.png
  37. BIN img/justify.png
  38. BIN img/justifycenter.png
  39. BIN img/justifyleft.png
  40. BIN img/justifyright.png
  41. BIN img/listordered.png
  42. BIN img/listunordered.png
  43. BIN img/options.png
  44. BIN img/optionsx.png
  45. BIN img/outdent.png
  46. BIN img/paragraph.png
  47. BIN img/paste.png
  48. BIN img/paste_m.png
  49. BIN img/quit.png
  50. BIN img/redo.png
  51. BIN img/removeformat.png
  52. BIN img/selectall.png
  53. BIN img/seperator.png
  54. BIN img/strike.png
  55. BIN img/subscript.png
  56. BIN img/superscript.png
  57. BIN img/table.png
  58. BIN img/underline.png
  59. BIN img/undo.png
  60. BIN img/unlink.png
  61. +371 −99 index.html
  62. +16 −0 js/jquery-1.5.1.min.js
  63. +783 −0 js/jquery-ui-1.8.12.custom.min.js
View
165 LICENSE
@@ -0,0 +1,165 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ 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 that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU 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 as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
View
14 README.mediawiki
@@ -0,0 +1,14 @@
+[[http://bordeux.net/XVweb/|&raquo; XVweb Project Home Page]]
+
+<p align="center"><img src="http://img402.imageshack.us/img402/8499/html5logo.jpg" /></p>
+
+= HTML 5 WYSIWYG Editor =
+.... in progress... 92% done ;] This is part of XVweb project
+What's new in 0.47? Now, you can paste screenshot to editor. Try - press PrintScreen? key and paste to edtior.
+
+= Used libraries =
+ * jQuery + UI
+
+= Demo =
+
+<p align="center"><a href="http://html-5-wysiwyg.googlecode.com/svn/trunk/index.html"> <img src="http://img140.imageshack.us/img140/7695/demoy.png" /> </a> </p>
View
BIN css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-bg_glass_50_3baae3_1x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-icons_2694e8_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-icons_2e83ff_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-icons_3d80b3_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-icons_72a7cf_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN css/cupertino/images/ui-icons_ffffff_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
578 css/cupertino/jquery-ui-1.8.12.custom.css
@@ -0,0 +1,578 @@
+/*
+ * jQuery UI CSS Framework 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ */
+
+/* Layout helpers
+----------------------------------*/
+.ui-helper-hidden { display: none; }
+.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
+.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
+.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+.ui-helper-clearfix { display: inline-block; }
+/* required comment for clearfix to work in Opera \*/
+* html .ui-helper-clearfix { height:1%; }
+.ui-helper-clearfix { display:block; }
+/* end clearfix */
+.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
+
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-disabled { cursor: default !important; }
+
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Overlays */
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+
+
+/*
+ * jQuery UI CSS Framework 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ *
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Arial,%20Helvetica,%20sans-serif;&fwDefault=bold&fsDefault=1.1em&cornerRadius=6px&bgColorHeader=deedf7&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=100&borderColorHeader=aed0ea&fcHeader=222222&iconColorHeader=72a7cf&bgColorContent=f2f5f7&bgTextureContent=04_highlight_hard.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=362b36&iconColorContent=72a7cf&bgColorDefault=d7ebf9&bgTextureDefault=02_glass.png&bgImgOpacityDefault=80&borderColorDefault=aed0ea&fcDefault=2779aa&iconColorDefault=3d80b3&bgColorHover=e4f1fb&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=74b2e2&fcHover=0070a3&iconColorHover=2694e8&bgColorActive=3baae3&bgTextureActive=02_glass.png&bgImgOpacityActive=50&borderColorActive=2694e8&fcActive=ffffff&iconColorActive=ffffff&bgColorHighlight=ffef8f&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=25&borderColorHighlight=f9dd34&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=cd0a0a&bgTextureError=01_flat.png&bgImgOpacityError=15&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffffff&bgColorOverlay=eeeeee&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=90&opacityOverlay=80&bgColorShadow=000000&bgTextureShadow=04_highlight_hard.png&bgImgOpacityShadow=70&opacityShadow=30&thicknessShadow=7px&offsetTopShadow=-7px&offsetLeftShadow=-7px&cornerRadiusShadow=8px
+ */
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget { font-family: Arial, Helvetica, sans-serif;; font-size: 1.1em; }
+.ui-widget .ui-widget { font-size: 1em; }
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Arial, Helvetica, sans-serif;; font-size: 1em; }
+.ui-widget-content { border: 1px solid #dddddd; background: #f2f5f7 url(images/ui-bg_highlight-hard_100_f2f5f7_1x100.png) 50% top repeat-x; color: #362b36; }
+.ui-widget-content a { color: #362b36; }
+.ui-widget-header { border: 1px solid #aed0ea; background: #deedf7 url(images/ui-bg_highlight-soft_100_deedf7_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
+.ui-widget-header a { color: #222222; }
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #aed0ea; background: #d7ebf9 url(images/ui-bg_glass_80_d7ebf9_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #2779aa; }
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #2779aa; text-decoration: none; }
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #74b2e2; background: #e4f1fb url(images/ui-bg_glass_100_e4f1fb_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #0070a3; }
+.ui-state-hover a, .ui-state-hover a:hover { color: #0070a3; text-decoration: none; }
+.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #2694e8; background: #3baae3 url(images/ui-bg_glass_50_3baae3_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #ffffff; }
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #ffffff; text-decoration: none; }
+.ui-widget :active { outline: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #f9dd34; background: #ffef8f url(images/ui-bg_highlight-soft_25_ffef8f_1x100.png) 50% top repeat-x; color: #363636; }
+.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
+.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #cd0a0a url(images/ui-bg_flat_15_cd0a0a_40x100.png) 50% 50% repeat-x; color: #ffffff; }
+.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
+.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
+.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
+.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
+.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_72a7cf_256x240.png); }
+.ui-widget-content .ui-icon {background-image: url(images/ui-icons_72a7cf_256x240.png); }
+.ui-widget-header .ui-icon {background-image: url(images/ui-icons_72a7cf_256x240.png); }
+.ui-state-default .ui-icon { background-image: url(images/ui-icons_3d80b3_256x240.png); }
+.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_2694e8_256x240.png); }
+.ui-state-active .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
+.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
+.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
+
+/* positioning */
+.ui-icon-carat-1-n { background-position: 0 0; }
+.ui-icon-carat-1-ne { background-position: -16px 0; }
+.ui-icon-carat-1-e { background-position: -32px 0; }
+.ui-icon-carat-1-se { background-position: -48px 0; }
+.ui-icon-carat-1-s { background-position: -64px 0; }
+.ui-icon-carat-1-sw { background-position: -80px 0; }
+.ui-icon-carat-1-w { background-position: -96px 0; }
+.ui-icon-carat-1-nw { background-position: -112px 0; }
+.ui-icon-carat-2-n-s { background-position: -128px 0; }
+.ui-icon-carat-2-e-w { background-position: -144px 0; }
+.ui-icon-triangle-1-n { background-position: 0 -16px; }
+.ui-icon-triangle-1-ne { background-position: -16px -16px; }
+.ui-icon-triangle-1-e { background-position: -32px -16px; }
+.ui-icon-triangle-1-se { background-position: -48px -16px; }
+.ui-icon-triangle-1-s { background-position: -64px -16px; }
+.ui-icon-triangle-1-sw { background-position: -80px -16px; }
+.ui-icon-triangle-1-w { background-position: -96px -16px; }
+.ui-icon-triangle-1-nw { background-position: -112px -16px; }
+.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
+.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
+.ui-icon-arrow-1-n { background-position: 0 -32px; }
+.ui-icon-arrow-1-ne { background-position: -16px -32px; }
+.ui-icon-arrow-1-e { background-position: -32px -32px; }
+.ui-icon-arrow-1-se { background-position: -48px -32px; }
+.ui-icon-arrow-1-s { background-position: -64px -32px; }
+.ui-icon-arrow-1-sw { background-position: -80px -32px; }
+.ui-icon-arrow-1-w { background-position: -96px -32px; }
+.ui-icon-arrow-1-nw { background-position: -112px -32px; }
+.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
+.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
+.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
+.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
+.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
+.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
+.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
+.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
+.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
+.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
+.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
+.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
+.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
+.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
+.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
+.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
+.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
+.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
+.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
+.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
+.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
+.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
+.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
+.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
+.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
+.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
+.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
+.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
+.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
+.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
+.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
+.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
+.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
+.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
+.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
+.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
+.ui-icon-arrow-4 { background-position: 0 -80px; }
+.ui-icon-arrow-4-diag { background-position: -16px -80px; }
+.ui-icon-extlink { background-position: -32px -80px; }
+.ui-icon-newwin { background-position: -48px -80px; }
+.ui-icon-refresh { background-position: -64px -80px; }
+.ui-icon-shuffle { background-position: -80px -80px; }
+.ui-icon-transfer-e-w { background-position: -96px -80px; }
+.ui-icon-transferthick-e-w { background-position: -112px -80px; }
+.ui-icon-folder-collapsed { background-position: 0 -96px; }
+.ui-icon-folder-open { background-position: -16px -96px; }
+.ui-icon-document { background-position: -32px -96px; }
+.ui-icon-document-b { background-position: -48px -96px; }
+.ui-icon-note { background-position: -64px -96px; }
+.ui-icon-mail-closed { background-position: -80px -96px; }
+.ui-icon-mail-open { background-position: -96px -96px; }
+.ui-icon-suitcase { background-position: -112px -96px; }
+.ui-icon-comment { background-position: -128px -96px; }
+.ui-icon-person { background-position: -144px -96px; }
+.ui-icon-print { background-position: -160px -96px; }
+.ui-icon-trash { background-position: -176px -96px; }
+.ui-icon-locked { background-position: -192px -96px; }
+.ui-icon-unlocked { background-position: -208px -96px; }
+.ui-icon-bookmark { background-position: -224px -96px; }
+.ui-icon-tag { background-position: -240px -96px; }
+.ui-icon-home { background-position: 0 -112px; }
+.ui-icon-flag { background-position: -16px -112px; }
+.ui-icon-calendar { background-position: -32px -112px; }
+.ui-icon-cart { background-position: -48px -112px; }
+.ui-icon-pencil { background-position: -64px -112px; }
+.ui-icon-clock { background-position: -80px -112px; }
+.ui-icon-disk { background-position: -96px -112px; }
+.ui-icon-calculator { background-position: -112px -112px; }
+.ui-icon-zoomin { background-position: -128px -112px; }
+.ui-icon-zoomout { background-position: -144px -112px; }
+.ui-icon-search { background-position: -160px -112px; }
+.ui-icon-wrench { background-position: -176px -112px; }
+.ui-icon-gear { background-position: -192px -112px; }
+.ui-icon-heart { background-position: -208px -112px; }
+.ui-icon-star { background-position: -224px -112px; }
+.ui-icon-link { background-position: -240px -112px; }
+.ui-icon-cancel { background-position: 0 -128px; }
+.ui-icon-plus { background-position: -16px -128px; }
+.ui-icon-plusthick { background-position: -32px -128px; }
+.ui-icon-minus { background-position: -48px -128px; }
+.ui-icon-minusthick { background-position: -64px -128px; }
+.ui-icon-close { background-position: -80px -128px; }
+.ui-icon-closethick { background-position: -96px -128px; }
+.ui-icon-key { background-position: -112px -128px; }
+.ui-icon-lightbulb { background-position: -128px -128px; }
+.ui-icon-scissors { background-position: -144px -128px; }
+.ui-icon-clipboard { background-position: -160px -128px; }
+.ui-icon-copy { background-position: -176px -128px; }
+.ui-icon-contact { background-position: -192px -128px; }
+.ui-icon-image { background-position: -208px -128px; }
+.ui-icon-video { background-position: -224px -128px; }
+.ui-icon-script { background-position: -240px -128px; }
+.ui-icon-alert { background-position: 0 -144px; }
+.ui-icon-info { background-position: -16px -144px; }
+.ui-icon-notice { background-position: -32px -144px; }
+.ui-icon-help { background-position: -48px -144px; }
+.ui-icon-check { background-position: -64px -144px; }
+.ui-icon-bullet { background-position: -80px -144px; }
+.ui-icon-radio-off { background-position: -96px -144px; }
+.ui-icon-radio-on { background-position: -112px -144px; }
+.ui-icon-pin-w { background-position: -128px -144px; }
+.ui-icon-pin-s { background-position: -144px -144px; }
+.ui-icon-play { background-position: 0 -160px; }
+.ui-icon-pause { background-position: -16px -160px; }
+.ui-icon-seek-next { background-position: -32px -160px; }
+.ui-icon-seek-prev { background-position: -48px -160px; }
+.ui-icon-seek-end { background-position: -64px -160px; }
+.ui-icon-seek-start { background-position: -80px -160px; }
+/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
+.ui-icon-seek-first { background-position: -80px -160px; }
+.ui-icon-stop { background-position: -96px -160px; }
+.ui-icon-eject { background-position: -112px -160px; }
+.ui-icon-volume-off { background-position: -128px -160px; }
+.ui-icon-volume-on { background-position: -144px -160px; }
+.ui-icon-power { background-position: 0 -176px; }
+.ui-icon-signal-diag { background-position: -16px -176px; }
+.ui-icon-signal { background-position: -32px -176px; }
+.ui-icon-battery-0 { background-position: -48px -176px; }
+.ui-icon-battery-1 { background-position: -64px -176px; }
+.ui-icon-battery-2 { background-position: -80px -176px; }
+.ui-icon-battery-3 { background-position: -96px -176px; }
+.ui-icon-circle-plus { background-position: 0 -192px; }
+.ui-icon-circle-minus { background-position: -16px -192px; }
+.ui-icon-circle-close { background-position: -32px -192px; }
+.ui-icon-circle-triangle-e { background-position: -48px -192px; }
+.ui-icon-circle-triangle-s { background-position: -64px -192px; }
+.ui-icon-circle-triangle-w { background-position: -80px -192px; }
+.ui-icon-circle-triangle-n { background-position: -96px -192px; }
+.ui-icon-circle-arrow-e { background-position: -112px -192px; }
+.ui-icon-circle-arrow-s { background-position: -128px -192px; }
+.ui-icon-circle-arrow-w { background-position: -144px -192px; }
+.ui-icon-circle-arrow-n { background-position: -160px -192px; }
+.ui-icon-circle-zoomin { background-position: -176px -192px; }
+.ui-icon-circle-zoomout { background-position: -192px -192px; }
+.ui-icon-circle-check { background-position: -208px -192px; }
+.ui-icon-circlesmall-plus { background-position: 0 -208px; }
+.ui-icon-circlesmall-minus { background-position: -16px -208px; }
+.ui-icon-circlesmall-close { background-position: -32px -208px; }
+.ui-icon-squaresmall-plus { background-position: -48px -208px; }
+.ui-icon-squaresmall-minus { background-position: -64px -208px; }
+.ui-icon-squaresmall-close { background-position: -80px -208px; }
+.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
+.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
+.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
+.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
+.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
+.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Corner radius */
+.ui-corner-tl { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; }
+.ui-corner-tr { -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; }
+.ui-corner-bl { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; }
+.ui-corner-br { -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; }
+.ui-corner-top { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; }
+.ui-corner-bottom { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; }
+.ui-corner-right { -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; border-top-right-radius: 6px; -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; }
+.ui-corner-left { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; border-top-left-radius: 6px; -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; }
+.ui-corner-all { -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; }
+
+/* Overlays */
+.ui-widget-overlay { background: #eeeeee url(images/ui-bg_diagonals-thick_90_eeeeee_40x40.png) 50% 50% repeat; opacity: .80;filter:Alpha(Opacity=80); }
+.ui-widget-shadow { margin: -7px 0 0 -7px; padding: 7px; background: #000000 url(images/ui-bg_highlight-hard_70_000000_1x100.png) 50% top repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
+ * jQuery UI Resizable 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizable#theming
+ */
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;
+ /* http://bugs.jqueryui.com/ticket/7233
+ - Resizable: resizable handles fail to work in IE if transparent and content overlaps
+ */
+ background-image:url(data:);
+}
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
+ * jQuery UI Selectable 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectable#theming
+ */
+.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
+/*
+ * jQuery UI Accordion 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion#theming
+ */
+/* IE/Win - Fix animation bug - #4615 */
+.ui-accordion { width: 100%; }
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
+.ui-accordion .ui-accordion-li-fix { display: inline; }
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
+.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
+.ui-accordion .ui-accordion-content-active { display: block; }
+/*
+ * jQuery UI Autocomplete 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete#theming
+ */
+.ui-autocomplete { position: absolute; cursor: default; }
+
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+
+/*
+ * jQuery UI Menu 1.8.12
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-menu {
+ list-style:none;
+ padding: 2px;
+ margin: 0;
+ display:block;
+ float: left;
+}
+.ui-menu .ui-menu {
+ margin-top: -3px;
+}
+.ui-menu .ui-menu-item {
+ margin:0;
+ padding: 0;
+ zoom: 1;
+ float: left;
+ clear: left;
+ width: 100%;
+}
+.ui-menu .ui-menu-item a {
+ text-decoration:none;
+ display:block;
+ padding:.2em .4em;
+ line-height:1.5;
+ zoom:1;
+}
+.ui-menu .ui-menu-item a.ui-state-hover,
+.ui-menu .ui-menu-item a.ui-state-active {
+ font-weight: normal;
+ margin: -1px;
+}
+/*
+ * jQuery UI Button 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button#theming
+ */
+.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
+.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
+button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
+.ui-button-icons-only { width: 3.4em; }
+button.ui-button-icons-only { width: 3.7em; }
+
+/*button text element */
+.ui-button .ui-button-text { display: block; line-height: 1.4; }
+.ui-button-text-only .ui-button-text { padding: .4em 1em; }
+.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
+.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
+.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
+.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
+/* no icon support for input elements, provide padding by default */
+input.ui-button { padding: .4em 1em; }
+
+/*button icon element(s) */
+.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
+.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
+.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
+.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+
+/*button sets*/
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
+
+/* workarounds */
+button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
+/*
+ * jQuery UI Dialog 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog#theming
+ */
+.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
+.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
+.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.ui-draggable .ui-dialog-titlebar { cursor: move; }
+/*
+ * jQuery UI Slider 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider#theming
+ */
+.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
+ * jQuery UI Tabs 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs#theming
+ */
+.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
+.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
+.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
+.ui-tabs .ui-tabs-hide { display: none !important; }
+/*
+ * jQuery UI Datepicker 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker#theming
+ */
+.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
+.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
+.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
+.ui-datepicker .ui-datepicker-prev { left:2px; }
+.ui-datepicker .ui-datepicker-next { right:2px; }
+.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
+.ui-datepicker .ui-datepicker-next-hover { right:1px; }
+.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
+.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
+.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
+.ui-datepicker select.ui-datepicker-month,
+.ui-datepicker select.ui-datepicker-year { width: 49%;}
+.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
+.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
+.ui-datepicker td { border: 0; padding: 1px; }
+.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
+.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
+.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
+
+/* with multiple calendars */
+.ui-datepicker.ui-datepicker-multi { width:auto; }
+.ui-datepicker-multi .ui-datepicker-group { float:left; }
+.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
+.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
+.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
+.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
+.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
+.ui-datepicker-row-break { clear:both; width:100%; }
+
+/* RTL support */
+.ui-datepicker-rtl { direction: rtl; }
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+
+/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
+.ui-datepicker-cover {
+ display: none; /*sorry for IE5*/
+ display/**/: block; /*sorry for IE5*/
+ position: absolute; /*must have*/
+ z-index: -1; /*must have*/
+ filter: mask(); /*must have*/
+ top: -4px; /*must have*/
+ left: -4px; /*must have*/
+ width: 200px; /*must have*/
+ height: 200px; /*must have*/
+}/*
+ * jQuery UI Progressbar 1.8.12
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar#theming
+ */
+.ui-progressbar { height:2em; text-align: left; }
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
View
177 exampletext.html
@@ -0,0 +1,177 @@
+Łatwym i sensownym krokiem w celu przyśpieszenia wyświetlania naszej strony, przeniesienie części statycznych (css, js, obrazy) na serwery, które są podłączone do mocnego łącza, lecz niekoniecznie muszą posiadać wielką moc obliczeniową.Będą one służyły tylko do hostowania plików. <br/>Takie serwery nazywają się <b>CDN (Content delivery network)</b>. Idea Content Delivery Network polega na umieszczeniu w głównych węzłach sieci różnych operatorów internetowych, serwerów przyśpieszających ściąganie tych obiektów ze stron WWW które są największe - najczęściej są to pliki multimedialne i dystrybucje oprogramowania - i których ściągnięcie z serwera zajmuje zwykle najwięcej czasu. Ponieważ jednak serwery CDN znajdują się zwykle blisko odbiorcy dlatego czas potrzebny na ściągnięcie treści z serwerów CDN jest dużo krótszy niż z oryginalnego serwera. W bardzo łatwy i tanim kosztem można utworzyć własny, alternatywny serwer, umieszczając je na darmowych hostingach (tam, gdzie aktywne połączenia zewnętrzne) oraz promocyjnych.<br/>
+Schemat wygląda tak:<br/>
+
+<div style="text-align:center; margin-top:10px;"> <img src="http://www.bordeux.net/File/39/miniCDN.png" alt="miniCDN Server" style="width:300px;"/> </div>
+
+1. Użytkownik pobiera treść naszej strony z głównego serwera.<br/>
+2. Otrzymuje on kod html, z podlinkowanym arkuszem CSS (style.css).<br/>
+3. Przeglądarka użytkownika pobiera z zewnętrznego serwera plik (z naszego miniCDN serwera).<br/>
+4. Serwer sprawdza czy posiada taki plik w cache, i czy już nie wygasł.<br/>
+5. Jeśli nie ma go w cache lub wygasł, pobiera go z głównego serwera.<br/>
+6. Pobrany plik, zapisuje w cache.<br/>
+7 (8). Wysyła plik użytkownikowi<br/>
+<br/>
+<h4>Więc do dzieła....</h4>
+
+Pierwszym etapem jest stworzenie sub-domeny. Nie jest to konieczne, ale profesjonalniej to wygląda, po za tym lepiej wpłynie na PageRank naszej strony. Ja stworzyłem:i<br/>
+<div style="text-align:center; margin:5px; font-style:italic;"> static.example.com </div>
+
+
+Należy ją podpiąć na nasz serwer plików miniCDN. Następnie zainstaluj na serwerze poniższy skrypt (w komentarzach kodu więcej info):
+<h3>Wersja dla file_get_contents</h3>
+<code lang="php">
+<?php
+/***************************
+********* miniCDN **********
+*** Krzysztof Bednarczyk ***
+**** http://bordeux.net ****
+****************************/
+
+$URL = "http://www.bordeux.net/"; //Adres naszej strony
+$Expired = 300; // Czas w sekundach, jak długo mają być przechowywane w cache pliki
+
+if(!isset($_SERVER['PATH_INFO']) || $_SERVER['PATH_INFO'] == '/') // Sprawdzanie, czy jest wskazany plik do pobrania
+ exit("miniCDN Server");
+
+$FileLoc = substr($_SERVER['PATH_INFO'],1); //pobieranie lokalizacji pliku na serwerze, np theme/css/style.css
+
+$FileMD5 = md5($FileLoc); // dajemy unikalny ID plikowi
+$DownLoad = true; //Domysla wartosc - true oznacza, ze plik bedzie sciagniety z serwera glownego
+
+if(file_exists('tmp/'.$FileMD5.'.tmp')){ // sprawdzanie czy dany plik mamy cache
+ $TMPFile = unserialize(file_get_contents('tmp/'.$FileMD5.'.tmp')); // jesli tak, otwieramy go
+ $Result = $TMPFile["Content"]; // pobieramy jego zawartosc
+ $HeadersSet = $TMPFile["Headers"]; // otrzymane naglowki
+ $Time = $TMPFile["Time"]; // czas pliku
+ $DownLoad = false; // anulowanie pobierania pliku
+ if( $Time > (time() + $Expired)) // sprawdzanie, czy plik juz nie wygasl
+ $DownLoad = true; // jesli tak, to pobieramy plik
+}
+
+ if($DownLoad){ // sprawdzamy czy mamy pobierac plik czy nie
+ $opts = array( // naglowki , ktore otrzyma glowny serwer
+ 'http'=>array(
+ 'user_agent' => $_SERVER['HTTP_USER_AGENT'], // ukrywamy sie pod nazwa przegladarki uzytkownika
+ 'header'=>"Accept-language: ".$_SERVER['HTTP_ACCEPT_LANGUAGE']."\r\n" // jaki jezy uzytkownik akceptuje
+ )
+ );
+
+ $context = stream_context_create($opts); // ustawienie naglowkow
+ $URLToDownload = $URL.$FileLoc; // link do pliku na serwerze glownym
+ $Result = file_get_contents($URLToDownload, false, $context); // pobieranie pliku
+ $HeadersSet = $http_response_header; // otrzymane naglowki z transakcji
+ $Time = time(); // aktualny czas
+ file_put_contents('tmp/'.$FileMD5.'.tmp', serialize(array("Headers"=>$HeadersSet, "Content"=>$Result, "Time"=> $Time ))); //zapisanie pliku w cache
+ }
+
+ if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $_SERVER['HTTP_IF_MODIFIED_SINCE'] == gmdate('D, d M Y H:i:s',time()).' GMT') { // sprawdzenie wersju uzytkownika
+ header("HTTP/1.0 304 Not Modified");//Wysylanie naglowka, ze nic nie zmodyfikowano
+ exit; //Zakonczenie skryptu
+ }
+foreach($HeadersSet as $header) // petla z naglowkami
+ header($header.';'); // wysylanie otrzymanych naglowkow
+
+ header("Pragma: public"); //naglowki, kotrolujace cache
+ header("Last-Modified: ".gmdate("D, d M Y H:i:s", $Time )." GMT"); // data modyfikacji
+ header('ETag: "'.$FileMD5.'"'); // ETag
+ header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$Expired) . ' GMT'); // kiedy plik wygasnie
+ header ('Vary: Accept-Encoding');
+ header("Cache-Control: private, max-age=10800, pre-check=10800"); // koedy wygasnie
+ header('XVwebMSG: Sended'); // Dodatkowy naglowek informacyjny
+
+echo $Result; // wyswietlenie pliku
+?>
+</code>
+<h3>Wersja dla CURL</h3>
+<code lang="php">
+<?php
+/***************************
+********* miniCDN **********
+*** Krzysztof Bednarczyk ***
+**** http://bordeux.net ****
+****************************/
+$PathInfo = (isset($_SERVER['PATH_INFO']) ? 'PATH_INFO' : 'ORIG_PATH_INFO');
+function file_get_contents_viacurl($UrlPage){
+ $ch = curl_init ($UrlPage) ; //initializacja curl wraz z adresem url
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1) ; // ustawienie, by zwrocilo zawartosc strony
+ curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); // podszywanie pod przegladarke klienta
+ curl_setopt($ch, CURLOPT_HEADER, 1); // ustawienie, by zworcilo naglowki
+ $Result = curl_exec ($ch) ; // wykonanie, oraz otrzymanie strony wraz z naglowkami
+ $curl_info = curl_getinfo($ch); // informacje o zapytaniu - wielkosc, ile czasu trwalo, ilosc naglowkow
+ curl_close($ch); // zakoncznie dzialania curl
+$header_size = $curl_info['header_size']; // pobieramy ile znakow ma naglowek
+$header = substr($Result, 0, $header_size); // pobieramy naglowki
+$Result = substr($Result, $header_size); // pobieramy tresc strony bez naglowkow
+$GLOBALS['http_response_header'] = explode("\n", $header); // wsadzamy naglowko do tablicy
+return $Result; // rezultat
+}
+
+$URL = "http://www.bordeux.net/"; //Adres naszej strony
+$Expired = 300; // Czas w sekundach, jak długo mają być przechowywane w cache pliki
+
+if(!isset($_SERVER[$PathInfo]) || $_SERVER[$PathInfo] == '/') // Sprawdzanie, czy jest wskazany plik do pobrania
+ exit("miniCDN Server");
+
+$FileLoc = substr($_SERVER[$PathInfo],1); //pobieranie lokalizacji pliku na serwerze, np theme/css/style.css
+
+$FileMD5 = md5($FileLoc); // dajemy unikalny ID plikowi
+$DownLoad = true; //Domysla wartosc - true oznacza, ze plik bedzie sciagniety z serwera glownego
+
+if(file_exists('tmp/'.$FileMD5.'.tmp')){ // sprawdzanie czy dany plik mamy cache
+ $TMPFile = unserialize(file_get_contents('tmp/'.$FileMD5.'.tmp')); // jesli tak, otwieramy go
+ $Result = $TMPFile["Content"]; // pobieramy jego zawartosc
+ $HeadersSet = $TMPFile["Headers"]; // otrzymane naglowki
+ $Time = $TMPFile["Time"]; // czas pliku
+ $DownLoad = false; // anulowanie pobierania pliku
+ if( $Time > (time() + $Expired)) // sprawdzanie, czy plik juz nie wygasl
+ $DownLoad = true; // jesli tak, to pobieramy plik
+}
+
+ if($DownLoad){ // sprawdzamy czy mamy pobierac plik czy nie
+ $URLToDownload = $URL.$FileLoc; // link do pliku na serwerze glownym
+ $Result = file_get_contents_viacurl($URLToDownload); // pobieranie pliku
+ $HeadersSet = $http_response_header; // otrzymane naglowki z transakcji
+ $Time = time(); // aktualny czas
+ file_put_contents('tmp/'.$FileMD5.'.tmp', serialize(array("Headers"=>$HeadersSet, "Content"=>$Result, "Time"=> $Time ))); //zapisanie pliku w cache
+ }
+
+ if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $_SERVER['HTTP_IF_MODIFIED_SINCE'] == gmdate('D, d M Y H:i:s',time()).' GMT') { // sprawdzenie wersju uzytkownika
+ header("HTTP/1.0 304 Not Modified");//Wysylanie naglowka, ze nic nie zmodyfikowano
+ exit; //Zakonczenie skryptu
+ }
+foreach($HeadersSet as $header){ // petla z naglowkami
+if(trim($header))
+ header($header.';'); // wysylanie otrzymanych naglowkow
+ }
+ header("Pragma: public"); //naglowki, kotrolujace cache
+ header("Last-Modified: ".gmdate("D, d M Y H:i:s", $Time )." GMT"); // data modyfikacji
+ header('ETag: "'.$FileMD5.'"'); // ETag
+ header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$Expired) . ' GMT'); // kiedy plik wygasnie
+ header ('Vary: Accept-Encoding');
+ header("Cache-Control: private, max-age=10800, pre-check=10800"); // koedy wygasnie
+ header('XVwebMSG: Sended'); // Dodatkowy naglowek informacyjny
+
+echo $Result; // wyswietlenie pliku
+?>
+</code>
+
+Następny niepotrzebnym, lecz estetycznym zadaniem jest wygląd linków. Warto zamienić je z :
+<div style="text-align:center; margin:5px; font-style:italic;"> http://static.example.com/cdn.php/theme/css/style.css </div>
+na:
+<div style="text-align:center; margin:5px; font-style:italic;"> http://static.example.com/theme/css/style.css </div>
+
+Można to wykonać za pomocą modułu mod_rewrite i reguły w pliku .htaccess na serwerach apache:
+<code lang="xml">
+ <IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} !-s [NC]
+ RewriteCond %{REQUEST_FILENAME} !-d [NC]
+ RewriteRule ^(.+) cdn.php/$1 [L,QSA]
+ </IfModule>
+</code>
+Natomiast dla ngnix, stworzenie reguły w pliku konfiguracyjnym.
+Ostatnim zadaniem jest zmiana na naszej stronie adres plików na naszym serwerze. Teraz nasz serwer będzie miał tylko jedno zadanie - generowanie kodu html naszej strony.<br/><br/>
+
+Warty uwagi jest serwer <a href="http://www.coralcdn.org/">http://www.coralcdn.org/</a>. Jest on darmowy, z bardzo szybkim łączem. Jedynym minusem jest częste awarie.
+<include url="http://bednarczyk.bordeux.net/">/Licencja/BY-NC/</include>
+
View
471 h5w/h5w.css
@@ -0,0 +1,471 @@
+.h5w-tabs-bottom {
+ position: relative;
+}
+.h5w-tabs-bottom .ui-tabs-panel {
+ height: 140px;
+ overflow: auto;
+}
+.h5w-tabs-bottom .ui-tabs-nav {
+ bottom: 0;
+ left: 0;
+ padding: 0 0.2em 0.2em 0;
+ position: absolute !important;
+ right: 0;
+}
+.h5w-tabs-bottom .ui-tabs-nav li {
+ border-bottom-width: 1px;
+ border-top: none;
+ margin-bottom: 1px !important;
+ margin-top: -2px !important;
+}
+.ui-tabs-selected {
+ margin-top: -3px !important;
+}
+.h5w-main {
+ font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
+ font-size: 10px;
+ min-width:1000px;
+}
+.h5w-card {
+ height: 50px;
+}
+.h5w-section {
+}
+.h5w-group a {
+ color: #636363;
+ text-decoration: none;
+}
+.h5w-group {
+ float: left;
+ height: 50px;
+}
+.h5w-group-seperator {
+ background: #D1D1D1;
+ float: left;
+ height: 50px;
+ margin-left: 5px;
+ margin-right: 5px;
+ width: 1px;
+}
+.h5w-group-caption {
+}
+.h5w-content .h5w-element-selected {
+ -webkit-box-shadow: 0px 0px 20px #ffcc00;
+ -moz-box-shadow: 0px 0px 20px #ffcc00;
+ box-shadow: 0px 0px 20px #ffcc00;
+}
+.h5w-group:hover .h5w-group-caption {
+ color: #707070;
+}
+.h5w-icon , .h5w-icon-nojs {
+ display: block;
+ float: left;
+ font-weight: bold;
+ height: 16px;
+ width: 16px;
+ text-align:center;
+}
+.h5w-icon:hover , .h5w-icon-nojs:hover {
+ background-color: #ffdc6e;
+ border: 1px solid #c29037;
+ border-radius: 3px;
+ moz-border-radius: 3px;
+ webkit-border-radius: 3px;
+}
+.h5w-style-selection {
+width: 500px;
+height: 100%;
+overflow: hidden;
+}
+.h5w-style-selection .h5w-icon {
+ display:block;
+ float:left;
+ height:48px;
+ width:80px;
+ border:1px solid #737373;
+ margin-left:8px;
+ text-align:center;
+ overflow:hidden;
+ color: #404040;
+ padding-left:2px;
+ -webkit-box-shadow: inset 0px 0px 60px #fbfcd6;
+ -moz-box-shadow: inset 0px 0px 60px #fbfcd6;
+ box-shadow: inset 0px 0px 60px #fbfcd6;
+}
+.h5w-style-selection .h5w-style-selection-preview {
+padding-top:2px;
+height: 36px;
+}
+.h5w-style-selection .h5w-style-selection-caption {
+ font-size:8px;
+ height:9px;
+ width:80px;
+ color: #616161;
+}
+.h5w-content, #h5w-id-content , .h5w-texarea, #h5w-textarea-id {
+ background: #FFF;
+ height: 500px;
+ padding: 5px;
+ padding-bottom: 30px;
+ width:100%;
+}
+.h5w-picker-area {
+ background: #FFF;
+ display: none;
+ left: 1px;
+ position: absolute;
+ top: 1px;
+ width: 400px;
+}
+.h5w-font-picker-area {
+ background: #FFF;
+ display: none;
+ left: 1px;
+ position: absolute;
+ top: 1px;
+}
+.h5w-fontsize-picker-area {
+ background: #FFF;
+ display: none;
+ left: 1px;
+ position: absolute;
+ top: 1px;
+ width: 400px;
+}
+.h5w-picker-red, .h5w-picker-green, .h5w-picker-blue , .h5w-picker-opacity {
+ clear: left;
+ float: left;
+ margin: 3px;
+ width: 300px;
+}
+.h5w-picker-swatch {
+ background-image: none;
+ height: 40px;
+ margin-left: 350px;
+ margin-top: 2px;
+ width: 45px;
+}
+.h5w-picker-red .ui-slider-range {
+ background: #ef2929;
+}
+.h5w-picker-red .ui-slider-handle {
+ border-color: #ef2929;
+}
+.h5w-picker-green .ui-slider-range {
+ background: #8ae234;
+}
+.h5w-picker-green .ui-slider-handle {
+ border-color: #8ae234;
+}
+.h5w-picker-blue .ui-slider-range{
+ background: #729fcf;
+}
+.h5w-picker-blue .ui-slider-handle {
+ border-color: #729fcf;
+}
+.h5w-picker-opacity .ui-slider-range {
+ background: #E6E6E6;
+}
+.h5w-picker-opacity .ui-slider-handle {
+ border-color: #E6E6E6;
+}
+
+.h5w-fontsize-picker-size {
+ background: #8ae234;
+}
+
+
+.h5w-tablepicker-area {
+ background: #FFF;
+ display: none;
+ left: 1px;
+ position: absolute;
+ top: 1px;
+}
+.h5w-table-creator {
+ border-collapse: collapse;
+}
+.h5w-table-creator td, th {
+ border: 1px #ccc solid;
+}
+.h5w-tablepicker-area td {
+ height: 10px;
+ width: 10px;
+}
+.h5w-tablepicker-area .hover {
+ background-color: #eee;
+}
+.h5w-tablepicker-area a {
+ color: #FFF;
+ display: block;
+ height: 100%;
+ text-decoration: none;
+ width: 100%;
+}
+.h5w-seperator {
+ background: url(../img/seperator.png) center 2px no-repeat;
+ display: block;
+ float: left;
+ height: 18px;
+ width: 2px;
+}
+.h5w-picker {
+ background: #000;
+ border-bottom-right-radius: 5px;
+ border-top-right-radius: 5px;
+ display: block;
+ float: left;
+ height: 16px;
+ margin-top: 2px;
+ moz-border-radius-bottomright: 5px;
+ moz-border-radius-topright: 5px;
+ webkit-border-bottom-right-radius: 5px;
+ webkit-border-top-right-radius: 5px;
+ width: 8px;
+}
+.h5w-bold {
+ background: url(../img/bold.png) center center no-repeat;
+}
+.h5w-italic {
+ background: url(../img/italic.png) center center no-repeat;
+}
+.h5w-underline {
+ background: url(../img/underline.png) center center no-repeat;
+}
+.h5w-strike {
+ background: url(../img/strike.png) center center no-repeat;
+}
+.h5w-subscript {
+ background: url(../img/subscript.png) center center no-repeat;
+}
+.h5w-superscript {
+ background: url(../img/superscript.png) center center no-repeat;
+}
+.h5w-paragraph {
+ background: url(../img/paragraph.png) center center no-repeat;
+}
+.h5w-listordered {
+ background: url(../img/listordered.png) center center no-repeat;
+}
+.h5w-listunordered {
+ background: url(../img/listunordered.png) center center no-repeat;
+}
+.h5w-hrule {
+ background: url(../img/hrule.png) center center no-repeat;
+}
+.h5w-insertimage {
+ background: url(../img/insertimage.png) center center no-repeat;
+}
+.h5w-undo {
+ background: url(../img/undo.png) center center no-repeat;
+}
+.h5w-redo {
+ background: url(../img/redo.png) center center no-repeat;
+}
+.h5w-selectall {
+ background: url(../img/selectall.png) center center no-repeat;
+}
+.h5w-indent {
+ background: url(../img/indent.png) center center no-repeat;
+}
+.h5w-outdent {
+ background: url(../img/outdent.png) center center no-repeat;
+}
+.h5w-removeformat {
+ background: url(../img/removeformat.png) center center no-repeat;
+}
+.h5w-justifyleft {
+ background: url(../img/justifyleft.png) center center no-repeat;
+}
+.h5w-justifycenter {
+ background: url(../img/justifycenter.png) center center no-repeat;
+}
+.h5w-justifyright {
+ background: url(../img/justifyright.png) center center no-repeat;
+}
+.h5w-fontcolor {
+ background: url(../img/font_color.png) center center no-repeat;
+}
+.h5w-hilitecolor {
+ background: url(../img/hilitecolor.png) center center no-repeat;
+}
+.h5w-paste {
+ background: url(../img/paste.png) top center no-repeat;
+ height: 45px;
+ margin-right: 5px;
+ padding-top: 46px;
+ text-align: center;
+ width: 45px;
+}
+.h5w-cut {
+ background: url(../img/cut.png) center left no-repeat;
+ height: 16px;
+ margin-top: 4px;
+ padding-left: 17px;
+ width: 40px;
+}
+.h5w-copy {
+ background: url(../img/copy.png) center left no-repeat;
+ height: 16px;
+ margin-top: 9px;
+ padding-left: 17px;
+ width: 40px;
+}
+.h5w-table {
+ background: url(../img/table.png) top center no-repeat;
+ height: 45px;
+ margin-right: 5px;
+ padding-top: 46px;
+ text-align: center;
+ width: 48px;
+}
+.h5w-insertimage {
+ background: url(../img/insertimage.png) top center no-repeat;
+ height: 45px;
+ margin-right: 5px;
+ padding-top: 46px;
+ text-align: center;
+ width: 48px;
+}
+.h5w-createlink {
+ background: url(../img/createlink.png) top center no-repeat;
+ height: 45px;
+ margin-right: 5px;
+ padding-top: 46px;
+ text-align: center;
+ width: 48px;
+}
+.h5w-unlink {
+ background: url(../img/unlink.png) top center no-repeat;
+ height: 45px;
+ margin-right: 5px;
+ padding-top: 46px;
+ text-align: center;
+ width: 48px;
+}
+.h5w-fontsize {
+ background: #FFF url(../img/fontsize.png) center left no-repeat;
+ width: 32px;
+ text-align:right;
+ padding-right:3px;
+ font-size: 12px;
+ height:16px;
+ -webkit-border-top-left-radius: 5px;
+ -webkit-border-bottom-left-radius: 5px;
+ -moz-border-radius-topleft: 5px;
+ -moz-border-radius-bottomleft: 5px;
+ border-top-left-radius: 5px;
+ border-bottom-left-radius: 5px;
+ border: 1px solid #9C9C9C;
+ border-right:none;
+}
+.h5w-fonttype {
+ background: #FFF url(../img/fonttype.png) center left no-repeat;
+ width: 120px;
+ text-align:right;
+ padding-right:3px;
+ font-size: 12px;
+ height:16px;
+ -webkit-border-top-left-radius: 5px;
+ -webkit-border-bottom-left-radius: 5px;
+ -moz-border-radius-topleft: 5px;
+ -moz-border-radius-bottomleft: 5px;
+ border-top-left-radius: 5px;
+ border-bottom-left-radius: 5px;
+ border: 1px solid #9C9C9C;
+ border-right:none;
+}
+.h5w-fontsize-picker , .h5w-fonttype-picker{
+ display: block;
+ float: left;
+ font-weight: bold;
+ height: 16px;
+ width: 16px;
+ text-align:center;
+ background:#FFF;
+ -webkit-border-top-right-radius: 5px;
+ -webkit-border-bottom-right-radius: 5px;
+ -moz-border-radius-topright: 5px;
+ -moz-border-radius-bottomright: 5px;
+ border-top-right-radius: 5px;
+ border-bottom-right-radius: 5px;
+ border: 1px solid #9C9C9C;
+ border-left:none;
+}
+.h5w-inserthtml {
+ background:none;
+ width:120px;
+ height:50px;
+}
+.h5w-inserthtml input, .h5w-inserthtml textarea{
+ margin-top:15px;
+ width:100px;
+}
+.h5w-style-inserthtml {
+ width: 750px;
+ overflow: hidden;
+ height:48px;
+}
+.h5w-font-picker-area a{
+ display:block;
+ float:none;
+ width:100px;
+ height:16px;
+ color: #000;
+}
+.h5w-context-menu {
+ background: rgba(226,226,226, 0.85);
+ min-width: 110px;
+ position:absolute;
+ display:none;
+ border: 1px solid #ABABAB;
+ padding:0px;
+}
+
+.h5w-context-menu ul{
+ list-style:none;
+ padding:0px;
+ margin:0px;
+}
+.h5w-context-menu li {
+ line-height: 16px;
+ color: #333;
+ font-size: 14px;
+ padding-left: 10px;
+}
+
+.h5w-context-menu {}
+.h5w-context-menu ul li:hover {background-color:#F90; position:relative;}
+.h5w-context-menu ul ul {display:none; position:absolute; left:110px; top:5px; border:#fff solid; border-width:1px; background: rgba(236,236,236, 0.95); }
+.h5w-context-menu ul li:hover ul {display:block;}
+.h5w-context-menu ul ul li { width:200px; float:left; display:inline; border:none;}
+.h5w-context-menu ul ul li:hover {text-decoration:underline; border:none;}
+.h5w-context-menu li:hover ul li ul {display:none;}
+.h5w-context-menu ul ul li ul {left:110px; background-color:#0099CC;}
+.h5w-context-menu ul ul li:hover ul {display:block;}
+
+.h5w-context-menu a {
+color : #000;
+text-decoration: none;
+width: 100%;
+height: 100%;
+display:block;
+padding:3px;
+padding-left: 17px;
+margin:0px;
+}
+.h5w-context-menu span{
+font-size:10px;
+padding-left:20px;
+
+}
+.h5w-context-menu .h5w-c-delete {background: url(../img/delete.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-cut {background: url(../img/cut.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-copy {background: url(../img/copy.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-paste {background: url(../img/paste_m.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-quit {background: url(../img/quit.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-attributes {background: url(../img/attributes.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-add {background: url(../img/add.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-attrx {background: url(../img/options.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-options {background: url(../img/optionsx.png) center left no-repeat;}
+.h5w-context-menu .h5w-c-seperator {border-top:1px solid #9C9C9C;}
View
723 h5w/h5w.js
@@ -0,0 +1,723 @@
+/*****************************************************/
+/******** Author: Krzysztof Bednarczyk *************/
+/******** License: LGPL *************/
+/******** http://bordeux.NET *************/
+/******** Part of XVweb project *************/
+/******** html-5-wysiwyg.googlecode.com *************/
+/******** part: xvweb.googlecode.com *************/
+/*****************************************************/
+(function (jQuery) {
+ jQuery.fn.extend({
+ h5w : function (options, val) {
+ if (options == "destroy") {
+ jQuery(this).trigger('h5w.destroy');
+ return this;
+ };
+ if (options == "getContent") {
+ return jQuery(this).find(".h5w-content").html();
+ };
+ var options = jQuery.extend({
+ onStart : function (teadasd) {
+ return true;
+ },
+ onChange : function () {
+ return false;
+ },
+ onUseButtons : function () {
+ return false;
+ },
+ onIconClick : function (icon) {
+
+ },
+ onLoad : function (icon) {
+
+ },
+ onTextarea : function (text) {
+
+ return text;
+ },
+ onVisual : function (text) {
+
+ return text;
+ },
+ onSelected : function (obj, jTarget, event) {
+
+ },
+ onUnSelected : function (obj, jTarget, event) {
+
+ },
+ content : "",
+ functions : {
+
+ },
+
+ contextMenu : {
+ table : function () {
+ //alert("return true")
+ }
+
+ }
+
+ }, options);
+
+ var DefineddContextMenu = {
+ tableElement : function (ox,oy) {
+ var hOContextMenu = $(".h5w-context-menu .h5w-c-options-element").html("");
+ hOContextMenu.append(
+ $("<li>").html(
+ $("<a>").attr({
+ "href" : "#",
+ "class" : "h5w-c-deleterow"
+ }).text("Delete row").click(function () {
+ if($(ox.target).is("tr")){
+ $(ox.target).remove();
+ }else{
+ $(ox.target).parents("tr").remove();
+ }
+ })));
+ hOContextMenu.append(
+ $("<li>").html(
+ $("<a>").attr({
+ "href" : "#",
+ "class" : "h5w-c-deletecell"
+ }).text("Delete cell").click(function () {
+ if($(ox.target).is("td")){
+ $(ox.target).remove();
+ }
+ })));
+
+ }
+ };
+ var contextMenu = {
+ tr : DefineddContextMenu.tableElement,
+ td : DefineddContextMenu.tableElement,
+
+ };
+ var functions = jQuery.extend({
+ italic : function (main, icon) {
+
+ document.execCommand('italic', null, false);
+ return true;
+ },
+ bold : function (main, icon) {
+ document.execCommand('bold', null, false);
+ return true;
+ },
+ fontsize : function (main, icon) {
+
+ document.execCommand("fontSize", false, 1);
+ toSizeFont = 12;
+ if (typeof(main) == 'number') {
+ toSizeFont = main;
+ } else {
+ toSizeFont = jQuery(icon).text();
+ };
+ jQuery(".h5w-content font[size]").removeAttr("size").css("font-size", toSizeFont + "px");
+ return false;
+ },
+ underline : function (main, icon) {
+ document.execCommand('underline', null, false);
+ return true;
+ },
+ strike : function (main, icon) {
+ document.execCommand('strikeThrough', null, false);
+ return true;
+ },
+ subscript : function (main, icon) {;
+ document.execCommand('subscript', null, false);
+ return true;
+ },
+ superscript : function (main, icon) {
+ document.execCommand('superscript', null, false);
+ return true;
+ },
+ paragraph : function (main, icon) {
+ document.execCommand('insertParagraph', null, false);
+ return true;
+ },
+ listordered : function (main, icon) {
+ document.execCommand('insertOrderedList', null, false);
+ return true;
+ },
+ listunordered : function (main, icon) {
+ document.execCommand('insertUnorderedList', null, false);
+ return true;
+ },
+ inserthtml : function (main, icon) {
+ document.execCommand('insertHTML', null, jQuery(icon).html());
+ return true;
+ },
+ hrule : function (main, icon) {
+ document.execCommand('insertHorizontalRule', null, false);
+ return true;
+ },
+ redo : function (main, icon) {
+ jQuery(main).find(".h5w-content").focus();
+ if (!document.execCommand('redo', false, null)) {
+ alert("Your browser does not support redo method! Please use shortcut CTRL + Y");
+ };
+ return false;
+ },
+ selectall : function (main, icon) {
+ jQuery(main).find(".h5w-content").focus();
+ document.execCommand('SelectAll', false, null);
+ return true;
+ },
+ undo : function (main, icon) {
+ jQuery(main).find(".h5w-content").focus();
+ if (!document.execCommand('undo', false, null)) {
+ alert("Your browser does not support undo method! Please use shortcut CTRL + Z");
+ };
+ return false;
+ },
+ createlink : function (main, icon) {
+ document.execCommand('CreateLink', null, 'changeit');
+ jQuery(main).find(".h5w-content a[href='changeit']").attr({
+ href : prompt("Please URL", "http://"),
+ target : "_blank"
+ });
+
+ return true;
+ },
+ insertimage : function (main, icon) {
+
+ document.execCommand('insertImage', null, 'changeit');
+
+ jQuery(main).find(".h5w-content img[src='changeit']").each(function () {
+ src = jQuery.trim(prompt("Please image URL", "http://"));
+ alt = jQuery.trim(prompt("Please set alt", ""));
+ jQuery(this).attr({
+ src : src,
+ alt : alt
+ });
+ this.execCommand("enableObjectResizing", false, false);
+ this.attachEvent("onresizestart", function (e) {
+ e.returnValue = false;
+ }, false);
+ });
+
+ return true;
+ },
+ unlink : function (main, icon) {
+ document.execCommand('Unlink', false, null);
+ return true;
+ },
+ fonttype : function (main, icon) {
+ jQuery(main).find(".h5w-fonttype").html(jQuery(icon).find("span").clone());
+ document.execCommand('fontName', false, jQuery(icon).find("span").css("font-family"));
+ return true;
+ },
+
+ justifyright : function (main, icon) {
+ document.execCommand('justifyRight', false, null);
+ return true;
+ },
+ justifycenter : function (main, icon) {
+ document.execCommand('justifyCenter', false, null);
+ return true;
+ },
+ justifyleft : function (main, icon) {
+ document.execCommand('justifyLeft', false, null);
+ return true;
+ },
+ paste : function (main, icon) {
+ if (!document.execCommand('paste', false, null)) {
+ alert("Your browser does not support paste method! Please use shortcut CTRL + V or push left ctrl and right click");
+ };
+ return true;
+ },
+ copy : function (main, icon) {
+ if (!document.execCommand('copy', false, null)) {
+ alert("Your browser does not support copy method! Please use shortcut CTRL + C or push left ctrl and right click");
+ };
+ return true;
+ },
+ cut : function (main, icon) {
+ if (!document.execCommand('cut', false, null)) {
+ alert("Your browser does not support cut method! Please use shortcut CTRL + X or push left ctrl and right click");
+ };
+ return true;
+ },
+
+ indent : function (main, icon) {;
+ document.execCommand('indent', null, false);
+ return true;
+ },
+ outdent : function (main, icon) {;
+ document.execCommand('outdent', null, false);
+ return true;
+ },
+ removeformat : function (main, icon) {
+ document.execCommand('removeformat', null, false);
+ return true;
+ },
+ "delete" : function (main, icon) {
+ document.execCommand('delete', null, false);
+ return true;
+ },
+ formatblock : function (main, icon) {
+ document.execCommand('formatBlock', null, "<" + jQuery(icon).attr("href").substr(1) + ">");
+ return true;
+ },
+
+ fontcolor : function (main, icon) {
+ document.execCommand("ForeColor", false, "#FFF");
+
+ if (typeof(main) == 'string') {
+ fontToSetColor = main;
+ } else {
+ fontToSetColor = jQuery(icon).parent().find(".h5w-font-picker").css("background-color");
+ };
+ jQuery(".h5w-content font[color]").removeAttr("color").css("color", fontToSetColor);
+
+ return true;
+ },
+ hilitecolor : function (main, icon) {
+ if (typeof(main) == 'string') {
+ document.execCommand("hiliteColor", false, main);
+ return false;
+ };
+ document.execCommand("hiliteColor", false, jQuery(icon).parent().find(".h5w-hilitecolor-picker").css("background-color"));
+ return true;
+ },
+ table : function (main, icon, width, height) {
+ document.execCommand('insertHTML', false, tablepicker.generate(width, height));
+
+ //jQuery(main).find(".h5w-content table td" ).resizable();
+ return true;
+ },
+ onIconClick : function (icon) {
+
+ }
+
+ }, options.functions);
+ var tablepicker = {
+ generate : function (width, height, anchor) {
+ var TableCreator = "<table class='h5w-table-creator'>";
+ for (n = 0; n <= height; ++n) {
+ TableCreator += "<tr>";
+ for (zn = 0; zn <= width; ++zn) {
+ if (typeof anchor == "undefined") {
+ TableCreator += "<td>&nbsp;</td>";
+ } else {
+ TableCreator += "<td><a href='#' ></a></td>";
+ };
+ };
+ TableCreator += "</tr>";
+ };
+ TableCreator += "</table>";
+ return TableCreator;
+ },
+ onSelect : function () {
+
+ },
+ prepare : function (MainHandle) {
+ var onCloseTablePicker = function (event) {
+ if (!(jQuery(event.target).is('.h5w-tablepicker-area') || jQuery(event.target).parents('.h5w-tablepicker-area').length)) {
+ jQuery(".h5w-tablepicker-area").hide("slow");
+ jQuery(document.body).unbind("click", onCloseTablePicker);
+ };
+ return false;
+ };
+ IHandle = jQuery(this);
+
+ jQuery(MainHandle).find(".h5w-tablepicker").click(function () {
+
+ tablepicker.onSelect = eval(jQuery(this).data("h5w-onselect-function"));
+ var position = jQuery(this).position();
+ var positionEditor = jQuery(MainHandle).position();
+
+ jQuery(MainHandle).find(".h5w-tablepicker-area").css({
+ left : position.left + positionEditor.left + jQuery(this).width() + 5,
+ top : position.top + positionEditor.top +jQuery(this).height() + 5
+ }).html(tablepicker.generate(16, 16, true)).show("slow").find("table").delegate('td', 'mouseover mouseleave', function (e) {
+ if (e.type == 'mouseover') {
+ THandle = jQuery(this).parents("table");
+ THeight = jQuery(this).parent().index();
+ TWidth = jQuery(this).index() + 1;
+ for (n = 0; n <= THeight; ++n) {
+ THandle.find("tr:eq(" + n + ")").find("td:lt(" + TWidth + ")").addClass("hover");
+ };
+ } else {
+ jQuery(this).parents("table").find("*").removeClass("hover");
+ };
+ }).find("td a").click(function (event) {
+ tablepicker.onSelect(MainHandle, IHandle, jQuery(this).parent().index(), jQuery(this).parent().parent().index());
+ jQuery(this).parents(".h5w-tablepicker-area").hide("slow");
+ jQuery(document.body).unbind("click", onCloseTablePicker);
+
+ return false;
+ });
+ setTimeout(function () {
+ jQuery(document.body).click(onCloseTablePicker);
+ }, 5);
+ return false;
+ });;
+
+ }
+
+ },
+ picker = {
+ changebg : ".something",
+ color : '',
+ onChange : function (color) {
+ return false;
+ },
+ refreshSwatch : function (main) {
+ var red = jQuery(this).parents(".h5w-picker-area").find(".h5w-picker-red").slider("value"),
+ green = jQuery(this).parents(".h5w-picker-area").find(".h5w-picker-green").slider("value"),
+ blue = jQuery(this).parents(".h5w-picker-area").find(".h5w-picker-blue").slider("value"),
+ opacity = (jQuery(this).parents(".h5w-picker-area").find(".h5w-picker-opacity").slider("value") / 100);
+
+ picker.color = 'rgba(' + red + ',' + green + ',' + blue + ',' + opacity + ')';
+ jQuery(this).parents(".h5w-picker-area").find(".h5w-picker-swatch").css("background-color", picker.color);
+ jQuery(picker.changebg).css("background-color", picker.color);
+ picker.onChange(picker.color);
+ return true;
+ },
+ prepare : function (MainHandle) {
+ jQuery(MainHandle).find(".h5w-picker-red, .h5w-picker-green, .h5w-picker-blue, .h5w-picker-opacity").slider({
+ orientation : "horizontal",
+ range : "min",
+ max : 255,
+ value : 127,
+ slide : picker.refreshSwatch,
+ change : picker.refreshSwatch
+ });
+ jQuery(MainHandle).find(".h5w-picker-red").slider("value", 255);
+ jQuery(MainHandle).find(".h5w-picker-green").slider("value", 140);
+ jQuery(MainHandle).find(".h5w-picker-green").slider("value", 140);
+ jQuery(MainHandle).find(".h5w-picker-opacity").slider({
+ max : 100,
+ value : 100,
+ });
+
+ jQuery(MainHandle).find(".h5w-picker").click(function () {
+ var position = jQuery(this).position();
+ var positionEditor = jQuery(MainHandle).position();
+ picker.changebg = jQuery(this).data("h5w-destination");
+ picker.onChange = eval(jQuery(this).data("h5w-onchange-function"));
+ jQuery(MainHandle).find(".h5w-picker-area").css({
+ left : position.left + positionEditor.left + jQuery(this).width() + 5,
+ top : position.top + positionEditor.top +jQuery(this).height() + 5
+ }).show("slow");
+ var onClosePicker = function (event) {
+ if (!(jQuery(event.target).is('.h5w-picker-area') || jQuery(event.target).parents('.h5w-picker-area').length)) {
+ jQuery(".h5w-picker-area").hide("slow");
+ jQuery(document.body).unbind("click", onClosePicker);
+ };
+ return false;
+ };
+ setTimeout(function () {
+ jQuery(document.body).click(onClosePicker);
+ }, 5);
+
+ });;
+
+ }
+
+ };
+
+ sizepicker = {
+ changesize : ".something",
+ fontSize : 12,
+ onChange : function (fontSize) {
+ return false;
+ },
+ refreshSize : function (main) {
+
+ sizepicker.fontSize = (jQuery(this).parents(".h5w-fontsize-picker-area").find(".h5w-fontsize-picker-size").slider("value"));
+
+ jQuery(sizepicker.changesize).text(sizepicker.fontSize);
+ sizepicker.onChange(sizepicker.fontSize);
+ return true;
+ },
+
+ prepare : function (MainHandle) {
+
+ jQuery(MainHandle).find(".h5w-fontsize-picker").click(function () {
+ sizepicker.changesize = jQuery(this).data("h5w-destination");
+
+ jQuery(MainHandle).find(".h5w-fontsize-picker-size").slider("destroy").slider({
+ max : 73,
+ min : 8,
+ value : jQuery(sizepicker.changesize).text(),
+ slide : sizepicker.refreshSize,
+ change : sizepicker.refreshSize
+ });
+
+ var position = jQuery(this).position();
+ var positionEditor = jQuery(MainHandle).position();
+ sizepicker.changesize = jQuery(this).data("h5w-destination");
+ sizepicker.onChange = eval(jQuery(this).data("h5w-onchange-function"));
+ jQuery(MainHandle).find(".h5w-fontsize-picker-area").css({
+ left : position.left + positionEditor.left + jQuery(this).width() + 5,
+ top : position.top + positionEditor.top + jQuery(this).height() + 5
+ }).show("slow");
+ var onCloseFontSizePicker = function (event) {
+ if (!(jQuery(event.target).is('.h5w-fontsize-picker-area') || jQuery(event.target).parents('.h5w-fontsize-picker-area').length)) {
+ jQuery(".h5w-fontsize-picker-area").hide("slow");
+ jQuery(document.body).unbind("click", onCloseFontSizePicker);
+ };
+ return false;
+ };
+ setTimeout(function () {
+ jQuery(document.body).click(onCloseFontSizePicker);
+ }, 5);
+
+ });;
+
+ }
+
+ };
+ typepicker = {
+ changeType : ".something",
+ fontType : "Arial",
+ onChange : function (fontType) {
+ return false;
+ },
+
+ prepare : function (MainHandle) {
+
+ jQuery(MainHandle).find(".h5w-fonttype-picker").click(function () {
+ typepicker.changeType = jQuery(this).data("h5w-destination");
+
+ var position = jQuery(this).position();
+ var positionEditor = jQuery(MainHandle).position();
+
+ typepicker.changeType = jQuery(this).data("h5w-destination");
+ typepicker.onChange = eval(jQuery(this).data("h5w-onchange-function"));
+ jQuery(MainHandle).find(".h5w-font-picker-area").css({
+ left : position.left + positionEditor.left + jQuery(this).width() - 100,
+ top : position.top + positionEditor.top + jQuery(this).height() + 10
+ }).show("slow");
+ var onCloseFontTypePicker = function (event) {
+ if (!(jQuery(event.target).is('.h5w-font-picker-area') || jQuery(event.target).parents('.h5w-font-picker-area').length)) {
+ jQuery(".h5w-font-picker-area").hide("slow");
+ jQuery(document.body).unbind("click", onCloseFontTypePicker);
+ };
+ return false;
+ };
+ setTimeout(function () {
+ jQuery(document.body).click(onCloseFontTypePicker);
+ }, 5);
+
+ });;
+
+ }
+
+ };
+
+ function destroy() {
+
+ };
+
+ function formatXml(xml) {
+ var formatted = '';
+ var reg = /(>)(<)(\/*)/g;
+ xml = xml.replace(reg, '$1\r\n$2$3');
+ var pad = 0;
+ jQuery.each(xml.split('\r\n'), function(index, node) {
+ var indent = 0;
+ if (node.match( /.+<\/\w[^>]*>$/ )) {
+ indent = 0;
+ } else if (node.match( /^<\/\w/ )) {
+ if (pad != 0) {
+ pad -= 1;
+ };
+ } else if (node.match( /^<\w[^>]*[^\/]>.*$/ )) {
+ indent = 1;