qwik2md 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/lib/qwik2md/version.rb +1 -1
  3. data/vendor/qwik/lib/qwik/act-christel.rb +1 -1
  4. data/vendor/qwik/lib/qwik/page-get.rb +4 -4
  5. data/vendor/qwik/lib/qwik/util-filename.rb +2 -5
  6. data/vendor/qwik/lib/qwik/util-string.rb +7 -7
  7. data/vendor/qwik/share/super/FrontPage.txt +17 -0
  8. data/vendor/qwik/share/super/QwikWebPlugin.txt +0 -0
  9. data/vendor/qwik/share/super/QwikWebStructure.txt +0 -0
  10. data/vendor/qwik/share/super/RecentList.txt +2 -0
  11. data/vendor/qwik/share/super/SandBox.txt +3 -0
  12. data/vendor/qwik/share/super/TextFormat.txt +186 -0
  13. data/vendor/qwik/share/super/TextFormatSimple.txt +23 -0
  14. data/vendor/qwik/share/super/TitleList.txt +2 -0
  15. data/vendor/qwik/share/super/_AdminMenu.txt +11 -0
  16. data/vendor/qwik/share/super/_BookSearch.txt +3 -0
  17. data/vendor/qwik/share/super/_EditorFooter.txt +9 -0
  18. data/vendor/qwik/share/super/_EditorHelp.txt +9 -0
  19. data/vendor/qwik/share/super/_InterWikiName.txt +17 -0
  20. data/vendor/qwik/share/super/_IsbnLink.txt +8 -0
  21. data/vendor/qwik/share/super/_MemberAdd.txt +4 -0
  22. data/vendor/qwik/share/super/_MemberList.txt +2 -0
  23. data/vendor/qwik/share/super/_MemberListCSV.txt +2 -0
  24. data/vendor/qwik/share/super/_PageAttribute.txt +7 -0
  25. data/vendor/qwik/share/super/_SideMenu.txt +15 -0
  26. data/vendor/qwik/share/super/_SiteConfig.txt +30 -0
  27. data/vendor/qwik/share/super/_SiteFooter.txt +3 -0
  28. data/vendor/qwik/share/super/_SiteLog.txt +0 -0
  29. data/vendor/qwik/share/super/_SiteLogView.txt +2 -0
  30. data/vendor/qwik/share/super/_SiteMember.txt +0 -0
  31. data/vendor/qwik/share/super/_SiteMenu.txt +2 -0
  32. data/vendor/qwik/share/super/_SiteSearch.txt +3 -0
  33. data/vendor/qwik/share/super/_SiteTheme.txt +9 -0
  34. data/vendor/qwik/share/super/_textformat.txt +2 -0
  35. data/vendor/qwik/share/template/Makefile +10 -0
  36. data/vendor/qwik/share/template/edit.html +22 -0
  37. data/vendor/qwik/share/template/edit.rb +40 -0
  38. data/vendor/qwik/share/template/editor.html +23 -0
  39. data/vendor/qwik/share/template/editor.rb +47 -0
  40. data/vendor/qwik/share/template/notice.html +21 -0
  41. data/vendor/qwik/share/template/notice.rb +43 -0
  42. data/vendor/qwik/share/template/plain.html +19 -0
  43. data/vendor/qwik/share/template/plain.rb +43 -0
  44. data/vendor/qwik/share/template/surface.html +22 -0
  45. data/vendor/qwik/share/template/surface.rb +50 -0
  46. data/vendor/qwik/share/template/system.html +30 -0
  47. data/vendor/qwik/share/template/system.rb +46 -0
  48. data/vendor/qwik/share/template/view.html +20 -0
  49. data/vendor/qwik/share/template/view.rb +40 -0
  50. data/vendor/qwik/share/theme/css/Makefile +10 -0
  51. data/vendor/qwik/share/theme/css/base.css +779 -0
  52. data/vendor/qwik/share/theme/css/delete.png +0 -0
  53. data/vendor/qwik/share/theme/css/menu.css +77 -0
  54. data/vendor/qwik/share/theme/css/wema.css +141 -0
  55. data/vendor/qwik/share/theme/i/a.gif +0 -0
  56. data/vendor/qwik/share/theme/i/binary.gif +0 -0
  57. data/vendor/qwik/share/theme/i/broken.gif +0 -0
  58. data/vendor/qwik/share/theme/i/compressed.gif +0 -0
  59. data/vendor/qwik/share/theme/i/external.png +0 -0
  60. data/vendor/qwik/share/theme/i/external_hover.png +0 -0
  61. data/vendor/qwik/share/theme/i/favicon.ico +0 -0
  62. data/vendor/qwik/share/theme/i/favicon.png +0 -0
  63. data/vendor/qwik/share/theme/i/generic.gif +0 -0
  64. data/vendor/qwik/share/theme/i/image2.gif +0 -0
  65. data/vendor/qwik/share/theme/i/login_bg.gif +0 -0
  66. data/vendor/qwik/share/theme/i/login_inputform_bg.gif +0 -0
  67. data/vendor/qwik/share/theme/i/login_inputform_bg_footer.gif +0 -0
  68. data/vendor/qwik/share/theme/i/login_inputform_bg_header.gif +0 -0
  69. data/vendor/qwik/share/theme/i/login_li.gif +0 -0
  70. data/vendor/qwik/share/theme/i/login_qwik_logo.gif +0 -0
  71. data/vendor/qwik/share/theme/i/movie.gif +0 -0
  72. data/vendor/qwik/share/theme/i/new.png +0 -0
  73. data/vendor/qwik/share/theme/i/pdf.gif +0 -0
  74. data/vendor/qwik/share/theme/i/ps.gif +0 -0
  75. data/vendor/qwik/share/theme/i/sound2.gif +0 -0
  76. data/vendor/qwik/share/theme/i/sphere2.gif +0 -0
  77. data/vendor/qwik/share/theme/i/tar.gif +0 -0
  78. data/vendor/qwik/share/theme/i/text.gif +0 -0
  79. data/vendor/qwik/share/theme/js/Makefile +23 -0
  80. data/vendor/qwik/share/theme/js/base.js +176 -0
  81. data/vendor/qwik/share/theme/js/builder.js +101 -0
  82. data/vendor/qwik/share/theme/js/controls.js +750 -0
  83. data/vendor/qwik/share/theme/js/debugwindow-test.html +60 -0
  84. data/vendor/qwik/share/theme/js/debugwindow.html +24 -0
  85. data/vendor/qwik/share/theme/js/debugwindow.js +476 -0
  86. data/vendor/qwik/share/theme/js/dragdrop.js +559 -0
  87. data/vendor/qwik/share/theme/js/effects.js +904 -0
  88. data/vendor/qwik/share/theme/js/event.js +98 -0
  89. data/vendor/qwik/share/theme/js/history.js +110 -0
  90. data/vendor/qwik/share/theme/js/menu.js +27 -0
  91. data/vendor/qwik/share/theme/js/monitor.js +96 -0
  92. data/vendor/qwik/share/theme/js/niftypp.js +272 -0
  93. data/vendor/qwik/share/theme/js/prototype.js +1758 -0
  94. data/vendor/qwik/share/theme/js/scriptaculous.js +48 -0
  95. data/vendor/qwik/share/theme/js/se_hilite_jp.js +234 -0
  96. data/vendor/qwik/share/theme/js/slider.js +275 -0
  97. data/vendor/qwik/share/theme/js/test-all.html +24 -0
  98. data/vendor/qwik/share/theme/js/test-debug.html +56 -0
  99. data/vendor/qwik/share/theme/js/test-wema.html +304 -0
  100. data/vendor/qwik/share/theme/js/test-xp.html +99 -0
  101. data/vendor/qwik/share/theme/js/unittest.js +363 -0
  102. data/vendor/qwik/share/theme/js/watch.js +109 -0
  103. data/vendor/qwik/share/theme/js/wema.js +580 -0
  104. data/vendor/qwik/share/theme/js/wysiwyg.js +143 -0
  105. data/vendor/qwik/share/theme/qwikborder/qwikborder.css +277 -0
  106. data/vendor/qwik/share/theme/qwikborder/qwikborder_ball.png +0 -0
  107. data/vendor/qwik/share/theme/qwikborder/qwikborder_h2.png +0 -0
  108. data/vendor/qwik/share/theme/qwikborder/qwikborder_li.png +0 -0
  109. data/vendor/qwik/share/theme/qwikcyan/qwikcyan.css +216 -0
  110. data/vendor/qwik/share/theme/qwikcyan/qwikcyan_li.png +0 -0
  111. data/vendor/qwik/share/theme/qwikeditor/command.gif +0 -0
  112. data/vendor/qwik/share/theme/qwikeditor/edit_form_bg.jpg +0 -0
  113. data/vendor/qwik/share/theme/qwikeditor/edit_qwik_logo.gif +0 -0
  114. data/vendor/qwik/share/theme/qwikeditor/edit_title_bg.jpg +0 -0
  115. data/vendor/qwik/share/theme/qwikeditor/login_bg.gif +0 -0
  116. data/vendor/qwik/share/theme/qwikeditor/login_qwik_logo.gif +0 -0
  117. data/vendor/qwik/share/theme/qwikeditor/qwikeditor.css +336 -0
  118. data/vendor/qwik/share/theme/qwikeditor/sidebar_bg.gif +0 -0
  119. data/vendor/qwik/share/theme/qwikgreen/qwikgreen.css +306 -0
  120. data/vendor/qwik/share/theme/qwiknotice/qwiknotice.css +246 -0
  121. data/vendor/qwik/share/theme/qwiknotice/qwiknotice_body_bg.gif +0 -0
  122. data/vendor/qwik/share/theme/qwiknotice/qwiknotice_inputform_bg.gif +0 -0
  123. data/vendor/qwik/share/theme/qwiknotice/qwiknotice_inputform_bg_footer.gif +0 -0
  124. data/vendor/qwik/share/theme/qwiknotice/qwiknotice_inputform_bg_header.gif +0 -0
  125. data/vendor/qwik/share/theme/qwiknotice/qwiknotice_li.gif +0 -0
  126. data/vendor/qwik/share/theme/qwiknotice/qwiknotice_qwik_logo.gif +0 -0
  127. data/vendor/qwik/share/theme/qwikplain/command.gif +0 -0
  128. data/vendor/qwik/share/theme/qwikplain/edit_form_bg.jpg +0 -0
  129. data/vendor/qwik/share/theme/qwikplain/edit_qwik_logo.gif +0 -0
  130. data/vendor/qwik/share/theme/qwikplain/edit_title_bg.jpg +0 -0
  131. data/vendor/qwik/share/theme/qwikplain/login_bg.gif +0 -0
  132. data/vendor/qwik/share/theme/qwikplain/login_qwik_logo.gif +0 -0
  133. data/vendor/qwik/share/theme/qwikplain/qwikplain.css +223 -0
  134. data/vendor/qwik/share/theme/qwikplain/sidebar_bg.gif +0 -0
  135. data/vendor/qwik/share/theme/qwikskelton/qwikskelton.css +224 -0
  136. data/vendor/qwik/share/theme/qwiksystem/qwiksystem.css +323 -0
  137. data/vendor/qwik/share/theme/qwiksystem/qwiksystem_bg.png +0 -0
  138. data/vendor/qwik/share/theme/qwiksystem/qwiksystem_header.png +0 -0
  139. data/vendor/qwik/share/theme/qwiksystem/qwiksystem_headerbar.png +0 -0
  140. data/vendor/qwik/share/theme/qwiksystem/qwiksystem_qwikweb.png +0 -0
  141. data/vendor/qwik/share/theme/qwikviridian/qwikviridian.css +413 -0
  142. data/vendor/qwik/share/theme/qwikviridian/qwikviridian_adminmenu_bg.gif +0 -0
  143. data/vendor/qwik/share/theme/qwikviridian/qwikviridian_bg.gif +0 -0
  144. data/vendor/qwik/share/theme/qwikviridian/qwikviridian_bg_shade.gif +0 -0
  145. data/vendor/qwik/share/theme/qwikviridian/qwikviridian_sidebar_a_bg.gif +0 -0
  146. data/vendor/qwik/share/theme/qwikviridian/qwikviridian_siderbar_li_a.gif +0 -0
  147. data/vendor/qwik/share/theme/s5/blue/bluebg.gif +0 -0
  148. data/vendor/qwik/share/theme/s5/blue/bluebottom.gif +0 -0
  149. data/vendor/qwik/share/theme/s5/blue/bluefooter.gif +0 -0
  150. data/vendor/qwik/share/theme/s5/blue/framing.css +25 -0
  151. data/vendor/qwik/share/theme/s5/blue/pretty.css +91 -0
  152. data/vendor/qwik/share/theme/s5/blue/s5-core.css +11 -0
  153. data/vendor/qwik/share/theme/s5/blue/slides.css +3 -0
  154. data/vendor/qwik/share/theme/s5/default/iepngfix.htc +42 -0
  155. data/vendor/qwik/share/theme/s5/default/opera.css +7 -0
  156. data/vendor/qwik/share/theme/s5/default/outline.css +15 -0
  157. data/vendor/qwik/share/theme/s5/default/print.css +24 -0
  158. data/vendor/qwik/share/theme/s5/default/slides.js +558 -0
  159. data/vendor/qwik/share/theme/s5/flower/blume.jpg +0 -0
  160. data/vendor/qwik/share/theme/s5/flower/blumerechts.jpg +0 -0
  161. data/vendor/qwik/share/theme/s5/flower/framing.css +25 -0
  162. data/vendor/qwik/share/theme/s5/flower/pretty.css +83 -0
  163. data/vendor/qwik/share/theme/s5/flower/s5-core.css +11 -0
  164. data/vendor/qwik/share/theme/s5/flower/slides.css +3 -0
  165. data/vendor/qwik/share/theme/s5/i18n/00_head.txt +8 -0
  166. data/vendor/qwik/share/theme/s5/i18n/bg-shade.png +0 -0
  167. data/vendor/qwik/share/theme/s5/i18n/bg-slide.jpg +0 -0
  168. data/vendor/qwik/share/theme/s5/i18n/framing.css +23 -0
  169. data/vendor/qwik/share/theme/s5/i18n/pretty.css +44 -0
  170. data/vendor/qwik/share/theme/s5/i18n/s5-core.css +9 -0
  171. data/vendor/qwik/share/theme/s5/i18n/slides.css +3 -0
  172. data/vendor/qwik/share/theme/s5/pixel/framing.css +25 -0
  173. data/vendor/qwik/share/theme/s5/pixel/pixelbg.gif +0 -0
  174. data/vendor/qwik/share/theme/s5/pixel/pixelheader.jpg +0 -0
  175. data/vendor/qwik/share/theme/s5/pixel/pixelslide0bg.gif +0 -0
  176. data/vendor/qwik/share/theme/s5/pixel/pretty.css +80 -0
  177. data/vendor/qwik/share/theme/s5/pixel/s5-core.css +11 -0
  178. data/vendor/qwik/share/theme/s5/pixel/slides.css +3 -0
  179. data/vendor/qwik/share/theme/s5/qwikblack/framing.css +23 -0
  180. data/vendor/qwik/share/theme/s5/qwikblack/pretty.css +245 -0
  181. data/vendor/qwik/share/theme/s5/qwikblack/s5-core.css +9 -0
  182. data/vendor/qwik/share/theme/s5/qwikblack/slides.css +3 -0
  183. data/vendor/qwik/share/theme/s5/qwikworld/bg-shade.png +0 -0
  184. data/vendor/qwik/share/theme/s5/qwikworld/bg-slide.jpg +0 -0
  185. data/vendor/qwik/share/theme/s5/qwikworld/framing.css +61 -0
  186. data/vendor/qwik/share/theme/s5/qwikworld/pretty.css +250 -0
  187. data/vendor/qwik/share/theme/s5/qwikworld/qwikcyan_li.png +0 -0
  188. data/vendor/qwik/share/theme/s5/qwikworld/s5-core.css +28 -0
  189. data/vendor/qwik/share/theme/s5/qwikworld/slides.css +3 -0
  190. data/vendor/qwik/share/theme/s5/shell/blank.gif +0 -0
  191. data/vendor/qwik/share/theme/s5/shell/bodybg.gif +0 -0
  192. data/vendor/qwik/share/theme/s5/shell/framing.css +23 -0
  193. data/vendor/qwik/share/theme/s5/shell/pretty.css +86 -0
  194. data/vendor/qwik/share/theme/s5/shell/s5-core.css +9 -0
  195. data/vendor/qwik/share/theme/s5/shell/slides.css +3 -0
  196. metadata +190 -1
@@ -0,0 +1,48 @@
1
+ // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining
4
+ // a copy of this software and associated documentation files (the
5
+ // "Software"), to deal in the Software without restriction, including
6
+ // without limitation the rights to use, copy, modify, merge, publish,
7
+ // distribute, sublicense, and/or sell copies of the Software, and to
8
+ // permit persons to whom the Software is furnished to do so, subject to
9
+ // the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be
12
+ // included in all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
22
+ var Scriptaculous = {
23
+ Version: '1.5_rc5',
24
+ require: function(libraryName) {
25
+ // inserting via DOM fails in Safari 2.0, so brute force approach
26
+ document.write('<script type="text/javascript" src="'+libraryName+'"></script>');
27
+ },
28
+ load: function() {
29
+ if((typeof Prototype=='undefined') ||
30
+ parseFloat(Prototype.Version.split(".")[0] + "." +
31
+ Prototype.Version.split(".")[1]) < 1.4)
32
+ throw("script.aculo.us requires the Prototype JavaScript framework >= 1.4.0");
33
+ var scriptTags = document.getElementsByTagName("script");
34
+ for(var i=0;i<scriptTags.length;i++) {
35
+ if(scriptTags[i].src && scriptTags[i].src.match(/scriptaculous\.js(\?.*)?$/)) {
36
+ var path = scriptTags[i].src.replace(/scriptaculous\.js(\?.*)?$/,'');
37
+ this.require(path + 'builder.js');
38
+ this.require(path + 'effects.js');
39
+ this.require(path + 'dragdrop.js');
40
+ this.require(path + 'controls.js');
41
+ this.require(path + 'slider.js');
42
+ break;
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+ Scriptaculous.load();
@@ -0,0 +1,234 @@
1
+ /*latest update : 08.08.28 (http://staryasi.usamimi.info/blog/archives/2008/05/29-224235.php)
2
+ * based on Search Engine Keyword Highlight version 1.5 (http://scott.yang.id.au/code/se-hilite/)
3
+ */
4
+ var doc = document;
5
+ doc.write('<style type="text/css">');
6
+ doc.write('.hilite1 { background-color: #D0FFC8;color:#000;font-weight:bold;}');
7
+ doc.write('.hilite2 { background-color: #C8EBFF;color:#000;font-weight:bold;}');
8
+ doc.write('.hilite3 { background-color: #FFCCCC;color:#000;font-weight:bold;}');
9
+ doc.write('.hilite4 { background-color: #FFCCFF;color:#000;font-weight:bold;}');
10
+ doc.write('.hilite5 { background-color: #FFF9C8;color:#000;font-weight:bold;}');
11
+ doc.write('</style>');
12
+ Hilite = {
13
+ elementid: 'container',
14
+ max_nodes: 1000,
15
+ style_name: 'hilite',
16
+ style_name_suffix: true
17
+ };
18
+ Hilite.search_engines = [
19
+ [doc.location.host,"q"], //myself
20
+ [".*google\\.","q"],// Google
21
+ [".*search\\.yahoo\\.","p"],// Yahoo
22
+ ["search\\.msn\\.","q"],// MSN
23
+ ["search\\.live\\.com","q"],// live search
24
+ ["ask\\.jp.*","q"],// Ask.jp
25
+ [".*goo\\.ne\\.jp","MT"],// goo & ocn
26
+ [".*baido\\.jp","wd"],// baido.jp
27
+ ["cgi\\.search\\.biglobe\\.","q"],// Biglobe
28
+ ["search\\.nifty\\.com\\/(websearch|webapp|videosearch|blogsearch)","q"],// nifty blog etc
29
+ ["search\\.jp\\.aol\\.com","query"],// aol
30
+ [".*livedoor\\.com\\/search","q"],// livedoor
31
+ [".*\\.auone\\.jp","q"],// au one
32
+ ["excite\\.co\\.jp","search"],// excite
33
+ ['technorati\\.jp\\/search\\/([^\\?/]+)', 1]// Technorati
34
+ ];
35
+
36
+ /*
37
+ * Decode the referrer string and return a list of search keywords.
38
+ */
39
+ Hilite.decodeReferrer = function(referrer) {
40
+ var query = null;
41
+ var regex = new RegExp('');
42
+ for (var i = 0; i < Hilite.search_engines.length; i ++) {
43
+ var se = Hilite.search_engines[i];
44
+ regex.compile('^http://(www\\.)?' + se[0], 'i');
45
+ var match = referrer.match(regex);
46
+ if (match) {
47
+ var result;
48
+ if (isNaN(se[1])) {
49
+ result = Hilite.decodeReferrerQS(referrer, se[1]);
50
+ } else {
51
+ result = match[se[1] + 1];
52
+ }
53
+ if (result) {
54
+ result = window["Unescape"+GetEscapeCodeType(result)](result);
55
+ result = result.replace(/[\'|"]/g, '');
56
+ result = result.split(/[\s,\+\. ]+/);
57
+ return result;
58
+ }
59
+ break;
60
+ }
61
+ }
62
+ return null;
63
+ };
64
+
65
+ Hilite.decodeReferrerQS = function(referrer, match) {
66
+ var idx = referrer.indexOf('?');
67
+ var idx2;
68
+ if(referrer.indexOf(match+'=') < 0){return;}
69
+ if (idx >= 0) {
70
+ var qs = new String(referrer.substring(idx + 1));
71
+ idx = 0;
72
+ idx2 = 0;
73
+ while ((idx >= 0) && ((idx2 = qs.indexOf('=', idx)) >= 0)) {
74
+ var key, val;
75
+ key = qs.substring(idx, idx2);
76
+ idx = qs.indexOf('&', idx2) + 1;
77
+ if (key == match) {
78
+ if (idx <= 0) {
79
+ return qs.substring(idx2+1);
80
+ } else {
81
+ return qs.substring(idx2+1, idx - 1);
82
+ }
83
+ }
84
+ }
85
+ }
86
+ return null;
87
+ };
88
+
89
+ /**
90
+ * Highlight a DOM element with a list of keywords.
91
+ */
92
+ Hilite.hiliteElement = function(elm, query) {
93
+ if (!query || elm.childNodes.length == 0)
94
+ return;
95
+ var qre = new Array();
96
+ for (var i = 0; i < query.length; i ++) {
97
+ query[i] = query[i].toLowerCase();
98
+ qre.push(query[i]);
99
+ }
100
+ qre = new RegExp(qre.join("|"), "i");
101
+ var stylemapper = {};
102
+ for (var i = 0; i < query.length; i ++) {
103
+ if (Hilite.style_name_suffix)
104
+ stylemapper[query[i]] = Hilite.style_name+(i+1);
105
+ else
106
+ stylemapper[query[i]] = Hilite.style_name;
107
+ }
108
+
109
+ var textproc = function(node) {
110
+ var match = qre.exec(node.data);
111
+ if (match) {
112
+ var val = match[0];
113
+ var k = '';
114
+ var node2 = node.splitText(match.index);
115
+ var node3 = node2.splitText(val.length);
116
+ var span = node.ownerDocument.createElement('span');
117
+ node.parentNode.replaceChild(span, node2);
118
+ span.className = stylemapper[val.toLowerCase()];
119
+ span.appendChild(node2);
120
+ return span;
121
+ } else {
122
+ return node;
123
+ }
124
+ };
125
+ Hilite.walkElements(elm.childNodes[0], 1, textproc);
126
+ };
127
+ Hilite.hilite = function() {
128
+ var q = doc.referrer;
129
+ var e = null;
130
+ q = Hilite.decodeReferrer(q);
131
+ if(!q) {
132
+ q = doc.location.toString();
133
+ q = Hilite.decodeReferrer(q);
134
+ }
135
+ if (q && ((Hilite.elementid && (e = doc.getElementById(Hilite.elementid))) || (e = doc.body))){
136
+ Hilite.hiliteElement(e, q);
137
+ }
138
+ };
139
+
140
+ Hilite.walkElements = function(node, depth, textproc) {
141
+ var skipre = /^(script|style|textarea)/i;
142
+ var count = 0;
143
+ while (node && depth > 0) {
144
+ count ++;
145
+ if (count >= Hilite.max_nodes) {
146
+ var handler = function() {
147
+ Hilite.walkElements(node, depth, textproc);
148
+ };
149
+ setTimeout(handler, 50);
150
+ return;
151
+ }
152
+ if (node.nodeType == 1) { // ELEMENT_NODE
153
+ if (!skipre.test(node.tagName) && node.childNodes.length > 0) {
154
+ node = node.childNodes[0];
155
+ depth ++;
156
+ continue;
157
+ }
158
+ } else if (node.nodeType == 3) { // TEXT_NODE
159
+ node = textproc(node);
160
+ }
161
+
162
+ if (node.nextSibling) {
163
+ node = node.nextSibling;
164
+ } else {
165
+ while (depth > 0) {
166
+ node = node.parentNode;
167
+ depth --;
168
+ if (node.nextSibling) {
169
+ node = node.nextSibling;
170
+ break;
171
+ }
172
+ }
173
+ }
174
+ }
175
+ };
176
+
177
+ // for Firefox Opera safari latest ver.
178
+ if (doc.addEventListener) {
179
+ doc.addEventListener("DOMContentLoaded", Hilite.hilite, false);
180
+ }
181
+ // for IE
182
+ /*@cc_on @*/
183
+ /*@if (@_win32)
184
+ doc.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
185
+ var script = doc.getElementById("__ie_onload");
186
+ script.onreadystatechange = function() {
187
+ if (this.readyState == "complete") {
188
+ Hilite.hilite(); // call the onload handler
189
+ }
190
+ };
191
+ /*@end @*/
192
+
193
+
194
+ // Escape Codec Library: ecl.js (Ver.041208)
195
+ // Copyright (C) http://nurucom-archives.hp.infoseek.co.jp/digital/
196
+ GetEscapeCodeType=function(str){
197
+ if(/%E[0-9A-F]%[8A]0%[8A]0|%[CD][0-9A-F]%[8A]0/i.test(str))return "UTF8";
198
+ if(/%F[DE]/i.test(str))return /%8[0-9A-D]|%9[0-9A-F]|%A0/i.test(str)?"":"EUCJP";
199
+ var S=str.substring(0,6143).replace(/%[0-9A-F]{2}|[^ ]| /ig,function(s){return s.length<3?"40":s.substring(1)}),c,C,i=0,T;
200
+ while(0<=(c=parseInt(S.substring(i,i+=2),16))&&i<4092)if(128<=c){
201
+ if((C=parseInt(S.substring(i,i+2),16))<128)i+=2;
202
+ else if(194<=c&&c<240&&C<192){
203
+ if(c<224){T="UTF8";i+=2;continue}
204
+ if(2==parseInt(S.charAt(i+2),16)>>2){T="UTF8";i+=4;continue}
205
+ }
206
+ if(142==c&&161<=C&&C<224){if(!T)T="EUCJP";if("EUCJP"==T)continue}
207
+ if(c<161)return "SJIS";
208
+ if(c<224&&!T)
209
+ if((164==c&&C<244||165==c&&C<247)&&161<=C)i+=2;
210
+ else T=224<=C?"EUCJP":"SJIS";
211
+ else T="EUCJP"
212
+ }
213
+ return T?T:"EUCJP"
214
+ };
215
+ UnescapeSJIS=function(str){
216
+ return str.replace(/%(8[1-9A-F]|[9E][0-9A-F]|F[0-9A-C])(%[4-689A-F][0-9A-F]|%7[0-9A-E]|[@-~])|%([0-7][0-9A-F]|A[1-9A-F]|[B-D][0-9A-F])/ig,function(s){
217
+ var c=parseInt(s.substring(1,3),16),l=s.length;
218
+ return 3==l?String.fromCharCode(c<160?c:c+65216):JCT11280.charAt((c<160?c-129:c-193)*188+(4==l?s.charCodeAt(3)-64:(c=parseInt(s.substring(4),16))<127?c-64:c-65))
219
+ })
220
+ };
221
+ UnescapeEUCJP=function(str){
222
+ JCT8836=JCT11280.substring(0,8836);
223
+ return str.replace(/(%A[1-9A-F]|%[B-E][0-9A-F]|%F[0-9A-E]){2}|%8E%(A[1-9A-F]|[B-D][0-9A-F])|%[0-7][0-9A-F]/ig,function(s){
224
+ var c=parseInt(s.substring(1),16);
225
+ return c<161?String.fromCharCode(c<128?c:parseInt(s.substring(4),16)+65216):JCT8836.charAt((c-161)*94+parseInt(s.substring(4),16)-161)
226
+ })
227
+ };
228
+ UnescapeUTF8=function(str){
229
+ return str.replace(/%(E(0%[AB]|[1-CEF]%[89AB]|D%[89])[0-9A-F]|C[2-9A-F]|D[0-9A-F])%[89AB][0-9A-F]|%[0-7][0-9A-F]/ig,function(s){
230
+ var c=parseInt(s.substring(1),16);
231
+ return String.fromCharCode(c<128?c:c<224?(c&31)<<6|parseInt(s.substring(4),16)&63:((c&15)<<6|parseInt(s.substring(4),16)&63)<<6|parseInt(s.substring(7),16)&63)
232
+ })
233
+ };
234
+ JCT11280=Function('var a="zKV33~jZ4zN=~ji36XazM93y!{~k2y!o~k0ZlW6zN?3Wz3W?{EKzK[33[`y|;-~j^YOTz$!~kNy|L1$353~jV3zKk3~k-4P4zK_2+~jY4y!xYHR~jlz$_~jk4z$e3X5He<0y!wy|X3[:~l|VU[F3VZ056Hy!nz/m1XD61+1XY1E1=1y|bzKiz!H034zKj~mEz#c5ZA3-3X$1~mBz$$3~lyz#,4YN5~mEz#{ZKZ3V%7Y}!J3X-YEX_J(3~mAz =V;kE0/y|F3y!}~m>z/U~mI~j_2+~mA~jp2;~m@~k32;~m>V}2u~mEX#2x~mBy+x2242(~mBy,;2242(~may->2&XkG2;~mIy-_2&NXd2;~mGz,{4<6:.:B*B:XC4>6:.>B*BBXSA+A:X]E&E<~r#z+625z s2+zN=`HXI@YMXIAXZYUM8X4K/:Q!Z&33 3YWX[~mB`{zKt4z (zV/z 3zRw2%Wd39]S11z$PAXH5Xb;ZQWU1ZgWP%3~o@{Dgl#gd}T){Uo{y5_d{e@}C(} WU9|cB{w}bzvV|)[} H|zT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XhZ1YLZIXgYIHYEYK,<Y`YEXIGZI[3YOYcB4SZ!YHZ*&Y{Xi3~[l|JSY`Zz?Z,~[m|O=Yi>??XnYWXmYS617YVYIHZ(Z4[~L4/=~[n|Yu{P)|];YOHHZ}~[o33|a>~[r|aE]DH~[s|e$Zz~[t|kZFY~XhYXZB[`Y}~[u|{SZ&OYkYQYuZ2Zf8D~[v}% ~[w3},Q[X]+YGYeYPIS~[y}4aZ!YN^!6PZ*~[z}?E~[{3}CnZ=~[}}EdDZz/9A3(3S<,YR8.D=*XgYPYcXN3Z5 4)~[~}JW=$Yu.XX~] }KDX`PXdZ4XfYpTJLY[F5]X~[2Yp}U+DZJ::<446[m@~]#3}]1~]%}^LZwZQ5Z`/OT<Yh^ -~]&}jx[ ~m<z!%2+~ly4VY-~o>}p62yz!%2+Xf2+~ly4VY-zQ`z (=] 2z~o2",C={" ":0,"!":1},c=34,i=2,p,s="",u=String.fromCharCode,t=u(12539);while(++c<127)C[u(c)]=c^39&&c^92?i++:0;i=0;while(0<=(c=C[a.charAt(i++)]))if(16==c)if((c=C[a.charAt(i++)])<87){if(86==c)c=1879;while(c--)s+=u(++p)}else s+=s.substr(8272,360);else if(c<86)s+=u(p+=c<51?c-16:(c-55)*92+C[a.charAt(i++)]);else if((c=((c-86)*92+C[a.charAt(i++)])*92+C[a.charAt(i++)])<49152)s+=u(p=c<40960?c:c|57344);else{c&=511;while(c--)s+=t;p=12539}return s')();
@@ -0,0 +1,275 @@
1
+ // Copyright (c) 2005 Marty Haught, Thomas Fuchs
2
+ //
3
+ // See http://script.aculo.us for more info
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining
6
+ // a copy of this software and associated documentation files (the
7
+ // "Software"), to deal in the Software without restriction, including
8
+ // without limitation the rights to use, copy, modify, merge, publish,
9
+ // distribute, sublicense, and/or sell copies of the Software, and to
10
+ // permit persons to whom the Software is furnished to do so, subject to
11
+ // the following conditions:
12
+ //
13
+ // The above copyright notice and this permission notice shall be
14
+ // included in all copies or substantial portions of the Software.
15
+ //
16
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ if(!Control) var Control = {};
25
+ Control.Slider = Class.create();
26
+
27
+ // options:
28
+ // axis: 'vertical', or 'horizontal' (default)
29
+ //
30
+ // callbacks:
31
+ // onChange(value)
32
+ // onSlide(value)
33
+ Control.Slider.prototype = {
34
+ initialize: function(handle, track, options) {
35
+ var slider = this;
36
+
37
+ if(handle instanceof Array) {
38
+ this.handles = handle.collect( function(e) { return $(e) });
39
+ } else {
40
+ this.handles = [$(handle)];
41
+ }
42
+
43
+ this.track = $(track);
44
+ this.options = options || {};
45
+
46
+ this.axis = this.options.axis || 'horizontal';
47
+ this.increment = this.options.increment || 1;
48
+ this.step = parseInt(this.options.step || '1');
49
+ this.range = this.options.range || $R(0,1);
50
+
51
+ this.value = 0; // assure backwards compat
52
+ this.values = this.handles.map( function() { return 0 });
53
+ this.spans = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false;
54
+ this.options.startSpan = $(this.options.startSpan || null);
55
+ this.options.endSpan = $(this.options.endSpan || null);
56
+
57
+ this.restricted = this.options.restricted || false;
58
+
59
+ this.maximum = this.options.maximum || this.range.end;
60
+ this.minimum = this.options.minimum || this.range.start;
61
+
62
+ // Will be used to align the handle onto the track, if necessary
63
+ this.alignX = parseInt(this.options.alignX || '0');
64
+ this.alignY = parseInt(this.options.alignY || '0');
65
+
66
+ this.trackLength = this.maximumOffset() - this.minimumOffset();
67
+
68
+ this.active = false;
69
+ this.dragging = false;
70
+ this.disabled = false;
71
+
72
+ if(this.options.disabled) this.setDisabled();
73
+
74
+ // Allowed values array
75
+ this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false;
76
+ if(this.allowedValues) {
77
+ this.minimum = this.allowedValues.min();
78
+ this.maximum = this.allowedValues.max();
79
+ }
80
+
81
+ this.eventMouseDown = this.startDrag.bindAsEventListener(this);
82
+ this.eventMouseUp = this.endDrag.bindAsEventListener(this);
83
+ this.eventMouseMove = this.update.bindAsEventListener(this);
84
+
85
+ // Initialize handles in reverse (make sure first handle is active)
86
+ this.handles.each( function(h,i) {
87
+ i = slider.handles.length-1-i;
88
+ slider.setValue(parseFloat(
89
+ (slider.options.sliderValue instanceof Array ?
90
+ slider.options.sliderValue[i] : slider.options.sliderValue) ||
91
+ slider.range.start), i);
92
+ Element.makePositioned(h); // fix IE
93
+ Event.observe(h, "mousedown", slider.eventMouseDown);
94
+ });
95
+
96
+ Event.observe(this.track, "mousedown", this.eventMouseDown);
97
+ Event.observe(document, "mouseup", this.eventMouseUp);
98
+ Event.observe(document, "mousemove", this.eventMouseMove);
99
+
100
+ this.initialized = true;
101
+ },
102
+ dispose: function() {
103
+ var slider = this;
104
+ Event.stopObserving(this.track, "mousedown", this.eventMouseDown);
105
+ Event.stopObserving(document, "mouseup", this.eventMouseUp);
106
+ Event.stopObserving(document, "mousemove", this.eventMouseMove);
107
+ this.handles.each( function(h) {
108
+ Event.stopObserving(h, "mousedown", slider.eventMouseDown);
109
+ });
110
+ },
111
+ setDisabled: function(){
112
+ this.disabled = true;
113
+ },
114
+ setEnabled: function(){
115
+ this.disabled = false;
116
+ },
117
+ getNearestValue: function(value){
118
+ if(this.allowedValues){
119
+ if(value >= this.allowedValues.max()) return(this.allowedValues.max());
120
+ if(value <= this.allowedValues.min()) return(this.allowedValues.min());
121
+
122
+ var offset = Math.abs(this.allowedValues[0] - value);
123
+ var newValue = this.allowedValues[0];
124
+ this.allowedValues.each( function(v) {
125
+ var currentOffset = Math.abs(v - value);
126
+ if(currentOffset <= offset){
127
+ newValue = v;
128
+ offset = currentOffset;
129
+ }
130
+ });
131
+ return newValue;
132
+ }
133
+ if(value > this.range.end) return this.range.end;
134
+ if(value < this.range.start) return this.range.start;
135
+ return value;
136
+ },
137
+ setValue: function(sliderValue, handleIdx){
138
+ if(!this.active) {
139
+ this.activeHandle = this.handles[handleIdx];
140
+ this.activeHandleIdx = handleIdx;
141
+ this.updateStyles();
142
+ }
143
+ handleIdx = handleIdx || this.activeHandleIdx || 0;
144
+ if(this.initialized && this.restricted) {
145
+ if((handleIdx>0) && (sliderValue<this.values[handleIdx-1]))
146
+ sliderValue = this.values[handleIdx-1];
147
+ if((handleIdx < (this.handles.length-1)) && (sliderValue>this.values[handleIdx+1]))
148
+ sliderValue = this.values[handleIdx+1];
149
+ }
150
+ sliderValue = this.getNearestValue(sliderValue);
151
+ this.values[handleIdx] = sliderValue;
152
+ this.value = this.values[0]; // assure backwards compat
153
+
154
+ this.handles[handleIdx].style[this.isVertical() ? 'top' : 'left'] =
155
+ this.translateToPx(sliderValue);
156
+
157
+ this.drawSpans();
158
+ if(!this.dragging || !this.event) this.updateFinished();
159
+ },
160
+ setValueBy: function(delta, handleIdx) {
161
+ this.setValue(this.values[handleIdx || this.activeHandleIdx || 0] + delta,
162
+ handleIdx || this.activeHandleIdx || 0);
163
+ },
164
+ translateToPx: function(value) {
165
+ return Math.round((this.trackLength / (this.range.end - this.range.start)) * (value - this.range.start)) + "px";
166
+ },
167
+ translateToValue: function(offset) {
168
+ return ((offset/this.trackLength) * (this.range.end - this.range.start)) + this.range.start;
169
+ },
170
+ getRange: function(range) {
171
+ var v = this.values.sortBy(Prototype.K);
172
+ range = range || 0;
173
+ return $R(v[range],v[range+1]);
174
+ },
175
+ minimumOffset: function(){
176
+ return(this.isVertical() ? this.alignY : this.alignX);
177
+ },
178
+ maximumOffset: function(){
179
+ return(this.isVertical() ?
180
+ this.track.offsetHeight - this.alignY : this.track.offsetWidth - this.alignX);
181
+ },
182
+ isVertical: function(){
183
+ return (this.axis == 'vertical');
184
+ },
185
+ drawSpans: function() {
186
+ var slider = this;
187
+ if(this.spans)
188
+ $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans[r], slider.getRange(r)) });
189
+ if(this.options.startSpan)
190
+ this.setSpan(this.options.startSpan,
191
+ $R(0, this.values.length>1 ? this.getRange(0).min() : this.value ));
192
+ if(this.options.endSpan)
193
+ this.setSpan(this.options.endSpan,
194
+ $R(this.values.length>1 ? this.getRange(this.spans.length-1).max() : this.value, this.maximum));
195
+ },
196
+ setSpan: function(span, range) {
197
+ if(this.isVertical()) {
198
+ span.style.top = this.translateToPx(range.start);
199
+ span.style.height = this.translateToPx(range.end - range.start);
200
+ } else {
201
+ span.style.left = this.translateToPx(range.start);
202
+ span.style.width = this.translateToPx(range.end - range.start);
203
+ }
204
+ },
205
+ updateStyles: function() {
206
+ this.handles.each( function(h){ Element.removeClassName(h, 'selected') });
207
+ Element.addClassName(this.activeHandle, 'selected');
208
+ },
209
+ startDrag: function(event) {
210
+ if(Event.isLeftClick(event)) {
211
+ if(!this.disabled){
212
+ this.active = true;
213
+
214
+ var handle = Event.element(event);
215
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
216
+ if(handle==this.track) {
217
+ var offsets = Position.cumulativeOffset(this.track);
218
+ this.event = event;
219
+ this.setValue(this.translateToValue(
220
+ this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0]
221
+ ));
222
+ } else {
223
+ // find the handle (prevents issues with Safari)
224
+ while((this.handles.indexOf(handle) == -1) && handle.parentNode)
225
+ handle = handle.parentNode;
226
+
227
+ this.activeHandle = handle;
228
+ this.activeHandleIdx = this.handles.indexOf(this.activeHandle);
229
+ this.updateStyles();
230
+
231
+ var offsets = Position.cumulativeOffset(this.activeHandle);
232
+ this.offsetX = (pointer[0] - offsets[0]);
233
+ this.offsetY = (pointer[1] - offsets[1]);
234
+ }
235
+ }
236
+ Event.stop(event);
237
+ }
238
+ },
239
+ update: function(event) {
240
+ if(this.active) {
241
+ if(!this.dragging) this.dragging = true;
242
+ this.draw(event);
243
+ // fix AppleWebKit rendering
244
+ if(navigator.appVersion.indexOf('AppleWebKit')>0) window.scrollBy(0,0);
245
+ Event.stop(event);
246
+ }
247
+ },
248
+ draw: function(event) {
249
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
250
+ var offsets = Position.cumulativeOffset(this.track);
251
+ pointer[0] -= this.offsetX + offsets[0];
252
+ pointer[1] -= this.offsetY + offsets[1];
253
+ this.event = event;
254
+ this.setValue(this.translateToValue( this.isVertical() ? pointer[1] : pointer[0] ));
255
+ if(this.initialized && this.options.onSlide) this.options.onSlide(this.values.length>1 ? this.values : this.value, this);
256
+ },
257
+ endDrag: function(event) {
258
+ if(this.active && this.dragging) {
259
+ this.finishDrag(event, true);
260
+ Event.stop(event);
261
+ }
262
+ this.active = false;
263
+ this.dragging = false;
264
+ },
265
+ finishDrag: function(event, success) {
266
+ this.active = false;
267
+ this.dragging = false;
268
+ this.updateFinished();
269
+ },
270
+ updateFinished: function() {
271
+ if(this.initialized && this.options.onChange)
272
+ this.options.onChange(this.values.length>1 ? this.values : this.value, this);
273
+ this.event = null;
274
+ }
275
+ }
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title>test</title>
5
+ <script type="text/javascript" src="../../jsUnit/app/jsUnitCore.js"></script>
6
+ <script type="text/javascript" src="../../theme/wema.js"></script>
7
+
8
+ <script language="JavaScript" type="text/javascript">
9
+
10
+ function suite() {
11
+ var s = new top.jsUnitTestSuite();
12
+ s.addTestPage("../theme/js/test-xp.html");
13
+ s.addTestPage("../theme/js/test-wema.html");
14
+ s.addTestPage("../theme/js/test-debug.html");
15
+ return s;
16
+ }
17
+
18
+ </script>
19
+
20
+ </head>
21
+ <body>
22
+ <p>test suite</p>
23
+ </body>
24
+ </html>
@@ -0,0 +1,56 @@
1
+ <!-- -*- c++ -*- -->
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3
+ <html>
4
+ <head>
5
+ <title>test</title>
6
+ <script type="text/javascript" src="../../jsUnit/app/jsUnitCore.js"></script>
7
+ <script type="text/javascript" src="debug.js"></script>
8
+ <script language="javascript">
9
+
10
+ //alert("test start");
11
+ function testSetDebug() {
12
+ g_debug.setDebug(false);
13
+ assertEquals(false, g_debug.debug_mode);
14
+ g_debug.setDebug(true);
15
+ assertEquals(true, g_debug.debug_mode);
16
+ }
17
+
18
+ function testPrint() {
19
+ assertEquals("", g_debug.buffer);
20
+ g_debug.print("t");
21
+ assertEquals("<tt>t</tt><br\n/>", g_debug.buffer);
22
+ }
23
+
24
+ function testFlush() {
25
+ g_debug.print("t");
26
+ g_debug.flush();
27
+ assertEquals("object", typeof g_debug.window);
28
+ }
29
+
30
+ function testClear() {
31
+ g_debug.print("t");
32
+ g_debug.clear();
33
+ assertEquals("", g_debug.buffer);
34
+ }
35
+
36
+ function testInspect() {
37
+ //assertEquals("0", g_debug.inspect(null));
38
+ assertEquals("0", g_debug.inspect(0));
39
+ assertEquals("\"t\"", g_debug.inspect("t"));
40
+ var ar = [];
41
+ assertEquals("{}", g_debug.inspect(ar));
42
+ ar[0] = 1;
43
+ assertEquals("{0=>1}", g_debug.inspect(ar));
44
+ }
45
+
46
+ function testP() {
47
+ g_debug.p(0);
48
+ assertEquals("<tt>0</tt><br\n/>", g_debug.buffer);
49
+ }
50
+
51
+ </script>
52
+ </head>
53
+ <body>
54
+ <p>test</p>
55
+ </body>
56
+ </html>