whowish_word 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/.gitignore +5 -5
  2. data/.loadpath +5 -5
  3. data/.project +18 -17
  4. data/Gemfile +2 -2
  5. data/HOW_TO_BUILD_WHOWISH_HOOK.md +9 -9
  6. data/ISSUE.md +93 -93
  7. data/README.md +208 -208
  8. data/lib/whowish_word/action_controller/base.rb +44 -44
  9. data/lib/whowish_word/action_mailer/base.rb +11 -11
  10. data/lib/whowish_word/action_view/base.rb +70 -70
  11. data/lib/whowish_word/action_view/template.rb +30 -30
  12. data/lib/whowish_word/authentication.rb +13 -13
  13. data/lib/whowish_word/config.rb +21 -21
  14. data/lib/whowish_word/constant.rb +8 -8
  15. data/lib/whowish_word/db_migration/active_record/whowish_word_html.rb +14 -14
  16. data/lib/whowish_word/db_migration/mongoid/whowish_word_html.rb +5 -5
  17. data/lib/whowish_word/initializer.rb +52 -52
  18. data/lib/whowish_word/rails/app/controllers/whowish_word_controller.rb +60 -60
  19. data/lib/whowish_word/rails/app/models/active_record/whowish_word_html.rb +3 -3
  20. data/lib/whowish_word/rails/app/models/mongoid/whowish_word_html.rb +8 -8
  21. data/lib/whowish_word/rails/public/javascripts/0_jquery-1.6.4-whowish_word.js +9046 -9046
  22. data/lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js +9 -9
  23. data/lib/whowish_word/rails/public/javascripts/1_jquery.loading_button.js +66 -66
  24. data/lib/whowish_word/rails/public/javascripts/2_whowish_word_variables.js +33 -33
  25. data/lib/whowish_word/rails/public/javascripts/3_whowish_word_dialog.js +136 -136
  26. data/lib/whowish_word/rails/public/javascripts/3_whowish_word_helper.js +116 -116
  27. data/lib/whowish_word/rails/public/javascripts/4_whowish_word_creator.js +69 -69
  28. data/lib/whowish_word/whowish_word.rb +41 -41
  29. data/lib/whowish_word/word_for.rb +93 -93
  30. data/rails/Gemfile +18 -18
  31. data/rails/Gemfile.lock +63 -64
  32. data/rails/app/controllers/application_controller.rb +22 -22
  33. data/rails/app/controllers/home_controller.rb +8 -8
  34. data/rails/app/views/home/index.html.erb +109 -109
  35. data/rails/app/views/home/static_edit.html.erb +50 -50
  36. data/rails/app/views/home/static_edit_select.html.erb +8 -8
  37. data/rails/app/views/integration/attr.html.erb +1 -1
  38. data/rails/app/views/integration/index.html.erb +1 -1
  39. data/rails/app/views/integration/select.html.erb +3 -3
  40. data/rails/app/views/integration/value.html.erb +1 -1
  41. data/rails/app/views/layouts/integration.html.erb +14 -14
  42. data/rails/app/views/layouts/main.html.erb +13 -13
  43. data/rails/app/views/layouts/nested_test_word_for.html.erb +17 -17
  44. data/rails/app/views/layouts/test_javascript.html.erb +13 -13
  45. data/rails/app/views/layouts/test_word_for.html.erb +24 -24
  46. data/rails/app/views/test_javascript/change_value.html.erb +32 -32
  47. data/rails/app/views/test_javascript/index.html.erb +87 -87
  48. data/rails/app/views/test_javascript/replace_with_html.html.erb +96 -96
  49. data/rails/app/views/test_word_for/_partial.html.erb +4 -4
  50. data/rails/app/views/test_word_for/index.html.erb +8 -8
  51. data/rails/config/application.rb +30 -30
  52. data/rails/config/boot.rb +9 -9
  53. data/rails/config/database.yml +24 -24
  54. data/rails/config/environment.rb +16 -16
  55. data/rails/config/initializers/whowish_word.rb +3 -3
  56. data/rails/config/mongoid.rb +6 -6
  57. data/rails/config/mongoid.yml +14 -14
  58. data/rails/config/routes.rb +7 -7
  59. data/rails/config.ru +4 -4
  60. data/rails/log/.gitignore +1 -1
  61. data/rails/mongo.bat +4 -4
  62. data/rails/public/javascripts/jquery.loading_button.js +72 -72
  63. data/rails/public/test/jquery_version.html +26 -26
  64. data/rails/script/rails +6 -6
  65. data/rails/spec/controllers/whowish_word_controller_spec.rb +55 -55
  66. data/rails/spec/integration/whowish_word_generator_spec.rb +139 -139
  67. data/rails/spec/integration/whowish_word_spec.rb +116 -116
  68. data/rails/spec/spec_helper.rb +34 -36
  69. data/rails/spec/support/browser.rb +193 -193
  70. data/rails/spec/support/json_rspec_helper.rb +8 -8
  71. data/rails/spec/support/mongoid_helper.rb +9 -9
  72. data/spec/spec_helper.rb +17 -19
  73. data/spec/unit/word_for_attr_in_edit_mode_spec.rb +43 -43
  74. data/spec/unit/word_for_attr_spec.rb +43 -43
  75. data/spec/unit/word_for_in_edit_mode_spec.rb +43 -43
  76. data/spec/unit/word_for_spec.rb +43 -43
  77. data/whowish_word.gemspec +21 -21
  78. metadata +73 -4
data/rails/Gemfile.lock CHANGED
@@ -1,63 +1,61 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (3.1.0)
5
- actionpack (= 3.1.0)
4
+ actionmailer (3.1.3)
5
+ actionpack (= 3.1.3)
6
6
  mail (~> 2.3.0)
7
- actionpack (3.1.0)
8
- activemodel (= 3.1.0)
9
- activesupport (= 3.1.0)
7
+ actionpack (3.1.3)
8
+ activemodel (= 3.1.3)
9
+ activesupport (= 3.1.3)
10
10
  builder (~> 3.0.0)
11
11
  erubis (~> 2.7.0)
12
12
  i18n (~> 0.6)
13
- rack (~> 1.3.2)
14
- rack-cache (~> 1.0.3)
13
+ rack (~> 1.3.5)
14
+ rack-cache (~> 1.1)
15
15
  rack-mount (~> 0.8.2)
16
16
  rack-test (~> 0.6.1)
17
- sprockets (~> 2.0.0)
18
- activemodel (3.1.0)
19
- activesupport (= 3.1.0)
20
- bcrypt-ruby (~> 3.0.0)
17
+ sprockets (~> 2.0.3)
18
+ activemodel (3.1.3)
19
+ activesupport (= 3.1.3)
21
20
  builder (~> 3.0.0)
22
21
  i18n (~> 0.6)
23
- activerecord (3.1.0)
24
- activemodel (= 3.1.0)
25
- activesupport (= 3.1.0)
22
+ activerecord (3.1.3)
23
+ activemodel (= 3.1.3)
24
+ activesupport (= 3.1.3)
26
25
  arel (~> 2.2.1)
27
26
  tzinfo (~> 0.3.29)
28
- activeresource (3.1.0)
29
- activemodel (= 3.1.0)
30
- activesupport (= 3.1.0)
31
- activesupport (3.1.0)
27
+ activeresource (3.1.3)
28
+ activemodel (= 3.1.3)
29
+ activesupport (= 3.1.3)
30
+ activesupport (3.1.3)
32
31
  multi_json (~> 1.0)
33
32
  arel (2.2.1)
34
- bcrypt-ruby (3.0.1-x86-mingw32)
35
- bson (1.4.0)
36
- bson_ext (1.4.0)
33
+ bson (1.5.1)
34
+ bson_ext (1.5.1)
37
35
  builder (3.0.0)
38
- childprocess (0.2.2)
36
+ childprocess (0.2.3)
39
37
  ffi (~> 1.0.6)
40
38
  diff-lcs (1.1.3)
41
39
  erubis (2.7.0)
42
- ffi (1.0.9-x86-mingw32)
40
+ ffi (1.0.11)
43
41
  hike (1.2.1)
44
42
  i18n (0.6.0)
45
- json_pure (1.6.1)
43
+ json (1.6.3)
46
44
  mail (2.3.0)
47
45
  i18n (>= 0.4.0)
48
46
  mime-types (~> 1.16)
49
47
  treetop (~> 1.4.8)
50
- mime-types (1.16)
51
- mongo (1.4.0)
52
- bson (= 1.4.0)
53
- mongoid (2.2.0)
54
- activemodel (~> 3.0)
48
+ mime-types (1.17.2)
49
+ mongo (1.5.1)
50
+ bson (= 1.5.1)
51
+ mongoid (2.3.4)
52
+ activemodel (~> 3.1)
55
53
  mongo (~> 1.3)
56
54
  tzinfo (~> 0.3.22)
57
- multi_json (1.0.3)
58
- polyglot (0.3.2)
59
- rack (1.3.3)
60
- rack-cache (1.0.3)
55
+ multi_json (1.0.4)
56
+ polyglot (0.3.3)
57
+ rack (1.3.5)
58
+ rack-cache (1.1)
61
59
  rack (>= 0.4)
62
60
  rack-mount (0.8.3)
63
61
  rack (>= 1.0.0)
@@ -65,60 +63,61 @@ GEM
65
63
  rack
66
64
  rack-test (0.6.1)
67
65
  rack (>= 1.0)
68
- rails (3.1.0)
69
- actionmailer (= 3.1.0)
70
- actionpack (= 3.1.0)
71
- activerecord (= 3.1.0)
72
- activeresource (= 3.1.0)
73
- activesupport (= 3.1.0)
66
+ rails (3.1.3)
67
+ actionmailer (= 3.1.3)
68
+ actionpack (= 3.1.3)
69
+ activerecord (= 3.1.3)
70
+ activeresource (= 3.1.3)
71
+ activesupport (= 3.1.3)
74
72
  bundler (~> 1.0)
75
- railties (= 3.1.0)
76
- railties (3.1.0)
77
- actionpack (= 3.1.0)
78
- activesupport (= 3.1.0)
73
+ railties (= 3.1.3)
74
+ railties (3.1.3)
75
+ actionpack (= 3.1.3)
76
+ activesupport (= 3.1.3)
79
77
  rack-ssl (~> 1.3.2)
80
78
  rake (>= 0.8.7)
81
79
  rdoc (~> 3.4)
82
80
  thor (~> 0.14.6)
83
81
  rake (0.8.7)
84
- rdoc (3.9.4)
85
- rspec (2.6.0)
86
- rspec-core (~> 2.6.0)
87
- rspec-expectations (~> 2.6.0)
88
- rspec-mocks (~> 2.6.0)
89
- rspec-core (2.6.4)
90
- rspec-expectations (2.6.0)
82
+ rdoc (3.11)
83
+ json (~> 1.4)
84
+ rspec (2.7.0)
85
+ rspec-core (~> 2.7.0)
86
+ rspec-expectations (~> 2.7.0)
87
+ rspec-mocks (~> 2.7.0)
88
+ rspec-core (2.7.1)
89
+ rspec-expectations (2.7.0)
91
90
  diff-lcs (~> 1.1.2)
92
- rspec-mocks (2.6.0)
93
- rspec-rails (2.6.1)
91
+ rspec-mocks (2.7.0)
92
+ rspec-rails (2.7.0)
94
93
  actionpack (~> 3.0)
95
94
  activesupport (~> 3.0)
96
95
  railties (~> 3.0)
97
- rspec (~> 2.6.0)
98
- rubyzip (0.9.4)
99
- selenium-webdriver (2.6.0)
96
+ rspec (~> 2.7.0)
97
+ rubyzip (0.9.5)
98
+ selenium-webdriver (2.14.0)
100
99
  childprocess (>= 0.2.1)
101
- ffi (>= 1.0.7)
102
- json_pure
100
+ ffi (~> 1.0.9)
101
+ multi_json (~> 1.0.4)
103
102
  rubyzip
104
- sprockets (2.0.0)
103
+ sprockets (2.0.3)
105
104
  hike (~> 1.2)
106
105
  rack (~> 1.0)
107
106
  tilt (~> 1.1, != 1.3.0)
108
- sqlite3 (1.3.4-x86-mingw32)
107
+ sqlite3 (1.3.5)
109
108
  thor (0.14.6)
110
109
  tilt (1.3.3)
111
110
  treetop (1.4.10)
112
111
  polyglot
113
112
  polyglot (>= 0.3.1)
114
- tzinfo (0.3.29)
115
- watir-webdriver (0.3.3)
116
- selenium-webdriver (>= 0.2.2)
117
- watir-webdriver-rails (0.0.6)
113
+ tzinfo (0.3.31)
114
+ watir-webdriver (0.3.9)
115
+ selenium-webdriver (>= 2.12.0)
116
+ watir-webdriver-rails (0.0.7)
118
117
  watir-webdriver
119
118
 
120
119
  PLATFORMS
121
- x86-mingw32
120
+ ruby
122
121
 
123
122
  DEPENDENCIES
124
123
  bson_ext
@@ -1,23 +1,23 @@
1
- class ApplicationController < ActionController::Base
2
-
3
- layout "main"
4
-
5
- before_filter :activate_whowish_word, :set_locale
6
-
7
- def activate_whowish_word
8
- if params[:edit_mode] == "yes"
9
- whowish_word.activate_edit_mode
10
- end
11
- end
12
-
13
- def set_locale
14
- if params[:locale]
15
- session[:locale] = params[:locale]
16
- end
17
-
18
- session[:locale] ||= "en"
19
- whowish_word.set_locale(session[:locale])
20
- end
21
-
22
-
1
+ class ApplicationController < ActionController::Base
2
+
3
+ layout "main"
4
+
5
+ before_filter :activate_whowish_word, :set_locale
6
+
7
+ def activate_whowish_word
8
+ if params[:edit_mode] == "yes"
9
+ whowish_word.activate_edit_mode
10
+ end
11
+ end
12
+
13
+ def set_locale
14
+ if params[:locale]
15
+ session[:locale] = params[:locale]
16
+ end
17
+
18
+ session[:locale] ||= "en"
19
+ whowish_word.set_locale(session[:locale])
20
+ end
21
+
22
+
23
23
  end
@@ -1,9 +1,9 @@
1
- class HomeController < ApplicationController
2
-
3
- layout "main"
4
-
5
- def edit_nested
6
- render :edit, :layout=>"nested"
7
- end
8
-
1
+ class HomeController < ApplicationController
2
+
3
+ layout "main"
4
+
5
+ def edit_nested
6
+ render :edit, :layout=>"nested"
7
+ end
8
+
9
9
  end
@@ -1,109 +1,109 @@
1
- <a href="/home?locale=en">en</a><br/>
2
- <a href="/home?locale=th">th</a><br/>
3
- <a href="/home?locale=jp">jp</a>
4
- <form autocomplete="off" onsubmit="return false;">
5
- <div>
6
- <span style="width:600px;">
7
- <p>This is the page that tests every element.</p>
8
- </span>
9
- <span>
10
- <%
11
- if @whowish_word_config.edit_mode == true
12
- %>
13
- <a href="/home">Dectivate edit mode</a>
14
- <%
15
- else
16
- %>
17
- <a href="/home?edit_mode=yes">Activate edit mode</a>
18
- <%
19
- end
20
- %>
21
- </span>
22
- <span>
23
- <b>Text: </b> <%=word_for :text%>
24
- </span>
25
- <span>
26
- <b>Bullet: </b> <ul>
27
- <li><%=word_for :text1%></li>
28
- <li><%=word_for :text2%></li>
29
- </ul>
30
- </span>
31
- <span>
32
- <b>Anchor: </b> <a href="#"><%=word_for :text3%></a>
33
- </span>
34
- <span>
35
- <b>Label: </b> <label for="some_textbox"><%=word_for_attr :label_text%></label>
36
- <input type="text" name="some_textbox">
37
- </span>
38
- <span>
39
- <b>Textbox: </b> <input type="textbox" name="<%=rand(1000)%>"
40
- title="<%=word_for_attr :textbox_title%>"
41
- value="<%=word_for_attr :textbox_value%>"
42
- placeholder="<%=word_for_attr :textbox_placeholder%>">
43
- </span>
44
- <span>
45
- <b>Textarea: </b> <textarea name="<%=rand(1000)%>"
46
- title="<%=word_for_attr :textarea_title%>"
47
- placeholder="<%=word_for_attr :textarea_placeholder%>"><%=word_for_attr :textarea_value%></textarea>
48
- </span>
49
- <span>
50
- <b>Checkbox: </b> <input type="checkbox" name="<%=rand(1000)%>"
51
- title="<%=word_for_attr :checkbox_title%>"
52
- value="<%=word_for_attr :checkbox_value%>">
53
- </span>
54
- <span>
55
- <b>Radio: </b> <input type="radio" name="<%=rand(1000)%>"
56
- title="<%=word_for_attr :radio_title%>"
57
- value="<%=word_for_attr :radio_value%>">
58
- </span>
59
- <span>
60
- <b>Select: </b> <select title="<%=word_for_attr :select_title%>">
61
- <option value="<%=word_for_attr :option_value_0%>"><%=word_for_attr :option_text_0%></option>
62
- <option value="<%=word_for_attr :option_value_1%>"><%=word_for_attr :option_text_1%></option>
63
- </select>
64
- </span>
65
- <span>
66
- <b>Button(Input): </b> <input type="button"
67
- title="<%=word_for_attr :input_button_title%>"
68
- value="<%=word_for_attr :input_button_value%>"
69
- onclick="alert('hello');">
70
- </span>
71
- <span>
72
- <b>Submit(Input): </b> <input type="submit"
73
- title="<%=word_for_attr :submit_title%>"
74
- value="<%=word_for_attr :submit_value%>"
75
- onclick="alert('hello');">
76
- </span>
77
- <span>
78
- <b>Button: </b> <button title="<%=word_for_attr :button_title%>" onclick="alert('hello');"><%=word_for_attr :button_value%></button>
79
- </span>
80
- <span>
81
- <b>Late Text: </b> <span id="late_text"></span>
82
-
83
- <script type="text/javascript">
84
-
85
- setTimeout(function() {
86
- $('#late_text').html("<%=word_for :late_text%>");
87
- },5000);
88
-
89
- </script>
90
- </span>
91
- <span>
92
- <b>Late Textbox: </b> <input type="textbox" id="late_textbox" name="<%=rand(1000)%>"
93
- title="title"
94
- value="value"
95
- placeholder="placeholder">
96
-
97
- <script type="text/javascript">
98
-
99
- setTimeout(function() {
100
- $('#late_textbox').attr("title","<%=word_for_attr :late_textbox_title%>");
101
- $('#late_textbox').val("<%=word_for_attr :late_textbox_value%>");
102
- $('#late_textbox').attr("placeholder","<%=word_for_attr :late_textbox_placeholder%>");
103
- },5000);
104
-
105
- </script>
106
- </span>
107
- </div>
108
- </form>
109
-
1
+ <a href="/home?locale=en">en</a><br/>
2
+ <a href="/home?locale=th">th</a><br/>
3
+ <a href="/home?locale=jp">jp</a>
4
+ <form autocomplete="off" onsubmit="return false;">
5
+ <div>
6
+ <span style="width:600px;">
7
+ <p>This is the page that tests every element.</p>
8
+ </span>
9
+ <span>
10
+ <%
11
+ if @whowish_word_config.edit_mode == true
12
+ %>
13
+ <a href="/home">Dectivate edit mode</a>
14
+ <%
15
+ else
16
+ %>
17
+ <a href="/home?edit_mode=yes">Activate edit mode</a>
18
+ <%
19
+ end
20
+ %>
21
+ </span>
22
+ <span>
23
+ <b>Text: </b> <%=word_for :text%>
24
+ </span>
25
+ <span>
26
+ <b>Bullet: </b> <ul>
27
+ <li><%=word_for :text1%></li>
28
+ <li><%=word_for :text2%></li>
29
+ </ul>
30
+ </span>
31
+ <span>
32
+ <b>Anchor: </b> <a href="#"><%=word_for :text3%></a>
33
+ </span>
34
+ <span>
35
+ <b>Label: </b> <label for="some_textbox"><%=word_for_attr :label_text%></label>
36
+ <input type="text" name="some_textbox">
37
+ </span>
38
+ <span>
39
+ <b>Textbox: </b> <input type="textbox" name="<%=rand(1000)%>"
40
+ title="<%=word_for_attr :textbox_title%>"
41
+ value="<%=word_for_attr :textbox_value%>"
42
+ placeholder="<%=word_for_attr :textbox_placeholder%>">
43
+ </span>
44
+ <span>
45
+ <b>Textarea: </b> <textarea name="<%=rand(1000)%>"
46
+ title="<%=word_for_attr :textarea_title%>"
47
+ placeholder="<%=word_for_attr :textarea_placeholder%>"><%=word_for_attr :textarea_value%></textarea>
48
+ </span>
49
+ <span>
50
+ <b>Checkbox: </b> <input type="checkbox" name="<%=rand(1000)%>"
51
+ title="<%=word_for_attr :checkbox_title%>"
52
+ value="<%=word_for_attr :checkbox_value%>">
53
+ </span>
54
+ <span>
55
+ <b>Radio: </b> <input type="radio" name="<%=rand(1000)%>"
56
+ title="<%=word_for_attr :radio_title%>"
57
+ value="<%=word_for_attr :radio_value%>">
58
+ </span>
59
+ <span>
60
+ <b>Select: </b> <select title="<%=word_for_attr :select_title%>">
61
+ <option value="<%=word_for_attr :option_value_0%>"><%=word_for_attr :option_text_0%></option>
62
+ <option value="<%=word_for_attr :option_value_1%>"><%=word_for_attr :option_text_1%></option>
63
+ </select>
64
+ </span>
65
+ <span>
66
+ <b>Button(Input): </b> <input type="button"
67
+ title="<%=word_for_attr :input_button_title%>"
68
+ value="<%=word_for_attr :input_button_value%>"
69
+ onclick="alert('hello');">
70
+ </span>
71
+ <span>
72
+ <b>Submit(Input): </b> <input type="submit"
73
+ title="<%=word_for_attr :submit_title%>"
74
+ value="<%=word_for_attr :submit_value%>"
75
+ onclick="alert('hello');">
76
+ </span>
77
+ <span>
78
+ <b>Button: </b> <button title="<%=word_for_attr :button_title%>" onclick="alert('hello');"><%=word_for_attr :button_value%></button>
79
+ </span>
80
+ <span>
81
+ <b>Late Text: </b> <span id="late_text"></span>
82
+
83
+ <script type="text/javascript">
84
+
85
+ setTimeout(function() {
86
+ $('#late_text').html("<%=word_for :late_text%>");
87
+ },5000);
88
+
89
+ </script>
90
+ </span>
91
+ <span>
92
+ <b>Late Textbox: </b> <input type="textbox" id="late_textbox" name="<%=rand(1000)%>"
93
+ title="title"
94
+ value="value"
95
+ placeholder="placeholder">
96
+
97
+ <script type="text/javascript">
98
+
99
+ setTimeout(function() {
100
+ $('#late_textbox').attr("title","<%=word_for_attr :late_textbox_title%>");
101
+ $('#late_textbox').val("<%=word_for_attr :late_textbox_value%>");
102
+ $('#late_textbox').attr("placeholder","<%=word_for_attr :late_textbox_placeholder%>");
103
+ },5000);
104
+
105
+ </script>
106
+ </span>
107
+ </div>
108
+ </form>
109
+
@@ -1,50 +1,50 @@
1
- <br/>
2
- <br/>
3
- <div>
4
- <b>Textbox on normal div:</b>
5
- <input type="text" value="__whowishWord_______normal_div_____value" placeholder="placeholder" name="<%=rand()%>">
6
- <br/>
7
- <dfn>__whowishWord_______normal_text_____erhreherherh
8
- erherherh
9
- erherherher
10
- herherherh
11
- reherherherh</dfn>
12
- <br/>
13
- <textarea id="test_textarea" title="__whowishWord_______title_textarea_____title" name="<%=rand()%>">__whowishWord_______value_textarea_____123wegwegewg
14
- wegewgweg
15
- wegwegew
16
- gwegwegweg
17
- </textarea>
18
- </div>
19
-
20
- <div style="float:left;display:block;margin-top:50px;">
21
- <b style="float:left;">Textbox on float div:</b>
22
- <input type="text" style="float:right;" value="__whowishWord_______float_div_1|a,b,c_____value" placeholder="__whowishWord_______float_div_1_____placeholder" name="<%=rand()%>">
23
- <br style="clear:both;"/>
24
- <input type="text" style="float:right;" value="__whowishWord_______float_div_2_____value" placeholder="placeholder" name="<%=rand()%>">
25
- <br style="clear:both" />
26
- <select id="test_select" style="float:left;">
27
- <option value="__whowishWord_______option_value_____value1">__whowishWord_______option_text_____text1</option>
28
- <option value="__whowishWord_______option_value_____value2">__whowishWord_______option_text_____text2</option>
29
- <option value="__whowishWord_______option_value_____value3">__whowishWord_______option_text_____text3</option>
30
- <option value="__whowishWord_______option_value_____value4">__whowishWord_______option_text_____text4</option>
31
- </select>
32
- <br/>
33
- <input type="button" onclick="show_content();"/>
34
- <span id="late_content"></span>
35
- </div>
36
-
37
- <div style="position:absolute;left:400px;top:200px;width:300px;height:100px;background-color:#BBBBBB">
38
- <b>Textbox on a absolute-positioned dialog box:</b>
39
- <input type="text" value="__whowishWord_______abs_div_____value" placeholder="placeholder" style="margin-left:50px;margin-top:40px;" name="<%=rand()%>">
40
- <br/>
41
- </div>
42
-
43
-
44
- <script type="text/javascript">
45
- $w.whowishWord(true);
46
-
47
- function show_content() {
48
- $('#late_content').html("<dfn>__whowishWord_______late_content_____valueaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</dfn>");
49
- }
50
- </script>
1
+ <br/>
2
+ <br/>
3
+ <div>
4
+ <b>Textbox on normal div:</b>
5
+ <input type="text" value="__whowishWord_______normal_div_____value" placeholder="placeholder" name="<%=rand()%>">
6
+ <br/>
7
+ <dfn>__whowishWord_______normal_text_____erhreherherh
8
+ erherherh
9
+ erherherher
10
+ herherherh
11
+ reherherherh</dfn>
12
+ <br/>
13
+ <textarea id="test_textarea" title="__whowishWord_______title_textarea_____title" name="<%=rand()%>">__whowishWord_______value_textarea_____123wegwegewg
14
+ wegewgweg
15
+ wegwegew
16
+ gwegwegweg
17
+ </textarea>
18
+ </div>
19
+
20
+ <div style="float:left;display:block;margin-top:50px;">
21
+ <b style="float:left;">Textbox on float div:</b>
22
+ <input type="text" style="float:right;" value="__whowishWord_______float_div_1|a,b,c_____value" placeholder="__whowishWord_______float_div_1_____placeholder" name="<%=rand()%>">
23
+ <br style="clear:both;"/>
24
+ <input type="text" style="float:right;" value="__whowishWord_______float_div_2_____value" placeholder="placeholder" name="<%=rand()%>">
25
+ <br style="clear:both" />
26
+ <select id="test_select" style="float:left;">
27
+ <option value="__whowishWord_______option_value_____value1">__whowishWord_______option_text_____text1</option>
28
+ <option value="__whowishWord_______option_value_____value2">__whowishWord_______option_text_____text2</option>
29
+ <option value="__whowishWord_______option_value_____value3">__whowishWord_______option_text_____text3</option>
30
+ <option value="__whowishWord_______option_value_____value4">__whowishWord_______option_text_____text4</option>
31
+ </select>
32
+ <br/>
33
+ <input type="button" onclick="show_content();"/>
34
+ <span id="late_content"></span>
35
+ </div>
36
+
37
+ <div style="position:absolute;left:400px;top:200px;width:300px;height:100px;background-color:#BBBBBB">
38
+ <b>Textbox on a absolute-positioned dialog box:</b>
39
+ <input type="text" value="__whowishWord_______abs_div_____value" placeholder="placeholder" style="margin-left:50px;margin-top:40px;" name="<%=rand()%>">
40
+ <br/>
41
+ </div>
42
+
43
+
44
+ <script type="text/javascript">
45
+ $w.whowishWord(true);
46
+
47
+ function show_content() {
48
+ $('#late_content').html("<dfn>__whowishWord_______late_content_____valueaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</dfn>");
49
+ }
50
+ </script>
@@ -1,9 +1,9 @@
1
- <select id="test_select">
2
- <option value="__whowishWord_______option_value_____value1">__whowishWord_______option_text_____text1</option>
3
- <option value="__whowishWord_______option_value_____value2">__whowishWord_______option_text_____text2</option>
4
- <option value="__whowishWord_______option_value_____value3">__whowishWord_______option_text_____text3</option>
5
- <option value="__whowishWord_______option_value_____value4">__whowishWord_______option_text_____text4</option>
6
- </select>
7
- <script type="text/javascript">
8
- $w.whowishWord();
1
+ <select id="test_select">
2
+ <option value="__whowishWord_______option_value_____value1">__whowishWord_______option_text_____text1</option>
3
+ <option value="__whowishWord_______option_value_____value2">__whowishWord_______option_text_____text2</option>
4
+ <option value="__whowishWord_______option_value_____value3">__whowishWord_______option_text_____text3</option>
5
+ <option value="__whowishWord_______option_value_____value4">__whowishWord_______option_text_____text4</option>
6
+ </select>
7
+ <script type="text/javascript">
8
+ $w.whowishWord();
9
9
  </script>
@@ -1 +1 @@
1
- <input type="text" title="<%=word_for_attr :text%>">
1
+ <input type="text" title="<%=word_for_attr :text%>">
@@ -1 +1 @@
1
- <%=word_for :text%>
1
+ <%=word_for :text%>
@@ -1,3 +1,3 @@
1
- <select>
2
- <option value="<%=word_for_attr :value%>"><%=word_for_attr :text%></option>
3
- </select>
1
+ <select>
2
+ <option value="<%=word_for_attr :value%>"><%=word_for_attr :text%></option>
3
+ </select>
@@ -1 +1 @@
1
- <input type="text" value="<%=word_for_attr :text%>">
1
+ <input type="text" value="<%=word_for_attr :text%>">
@@ -1,14 +1,14 @@
1
- <%
2
- content_for :nested_layout do
3
- %>
4
- <%= stylesheet_link_tag "test_javascript.css"%>
5
- <form autocomplete="off">
6
- <div>
7
- <%=yield%>
8
- </div>
9
- </form>
10
- <%
11
- end
12
- %>
13
-
14
- <%= render :template => 'layouts/main' %>
1
+ <%
2
+ content_for :nested_layout do
3
+ %>
4
+ <%= stylesheet_link_tag "test_javascript.css"%>
5
+ <form autocomplete="off">
6
+ <div>
7
+ <%=yield%>
8
+ </div>
9
+ </form>
10
+ <%
11
+ end
12
+ %>
13
+
14
+ <%= render :template => 'layouts/main' %>