cyberweb 0.5.225 → 0.6.17

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cyberweb might be problematic. Click here for more details.

Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +438 -238
  3. data/doc/README.gen +437 -237
  4. data/doc/todo/todo_for_the_cyberweb_project.md +6 -0
  5. data/examples/advanced/cursor_example/cursor_example.cgi +29 -0
  6. data/examples/advanced/draw_circle/draw_circle.cgi +13 -4
  7. data/examples/css/css_bubbles.html +8 -2
  8. data/examples/css/examples_with_borders/examples_with_borders.html +33 -0
  9. data/examples/javascript_and_jquery/copy_to_the_clipboard_example/copy_to_the_clipboard_example.html +80 -0
  10. data/images/cyberweb_theme.png +0 -0
  11. data/lib/cyberweb/base/misc.rb +67 -18
  12. data/lib/cyberweb/base_module/base_module.rb +66 -8
  13. data/lib/cyberweb/cascading_style_sheets/cursors.css +12 -5
  14. data/lib/cyberweb/cascading_style_sheets/default.css +20 -18
  15. data/lib/cyberweb/cascading_style_sheets/glow_effects.css +12 -6
  16. data/lib/cyberweb/cascading_style_sheets/misc.css +12 -1
  17. data/lib/cyberweb/generator/cgi.rb +3 -3
  18. data/lib/cyberweb/html_template/html_template.rb +172 -114
  19. data/lib/cyberweb/javascript/javascript.rb +34 -31
  20. data/lib/cyberweb/javascript_code/copy_to_the_clipboard.js +12 -0
  21. data/lib/cyberweb/jquery_module/jquery_module.rb +51 -0
  22. data/lib/cyberweb/modules/css_style.rb +27 -0
  23. data/lib/cyberweb/{favicon → modules}/favicon.rb +162 -33
  24. data/lib/cyberweb/requires/require_the_cyberweb_project.rb +6 -2
  25. data/lib/cyberweb/toplevel_methods/download_webpage.rb +16 -2
  26. data/lib/cyberweb/toplevel_methods/html_tables.rb +42 -30
  27. data/lib/cyberweb/toplevel_methods/log_directory.rb +11 -8
  28. data/lib/cyberweb/toplevel_methods/misc.rb +84 -47
  29. data/lib/cyberweb/toplevel_methods/path.rb +29 -8
  30. data/lib/cyberweb/toplevel_methods/temp_directory.rb +3 -1
  31. data/lib/cyberweb/version/version.rb +2 -2
  32. data/lib/cyberweb/web_images/map_symbol_to_image_location.rb +43 -7
  33. data/lib/cyberweb/web_object/favicon.rb +4 -106
  34. data/lib/cyberweb/web_object/html_tags.rb +133 -65
  35. data/lib/cyberweb/web_object/images.rb +20 -20
  36. data/lib/cyberweb/web_object/javascript_and_jquery.rb +39 -16
  37. data/lib/cyberweb/web_object/link.rb +18 -15
  38. data/lib/cyberweb/web_object/misc.rb +4158 -327
  39. data/lib/cyberweb/web_object/reset.rb +19 -15
  40. data/lib/cyberweb/web_object/run.rb +2 -0
  41. data/lib/cyberweb/web_object/web_object.rb +1 -3584
  42. data/lib/cyberweb/webmin/simple_forum/index.cgi +30 -0
  43. data/lib/cyberweb/webmin/simple_forum/simple_forum.rb +134 -0
  44. data/lib/cyberweb/yaml/http_status_codes.yml +3 -0
  45. data/lib/cyberweb/yaml/js_files_to_load.yml +6 -1
  46. data/test/html_template/html_template.rb +22 -3
  47. data/test/simple_tests/testing_the_javascript_component.cgi +32 -0
  48. data/test/simple_tests/testing_the_select_tag.cgi +7 -1
  49. metadata +13 -4
@@ -37,6 +37,25 @@ class WebObject < ::Cyberweb::Base # === Cyberweb::WebObject
37
37
  # ======================================================================= #
38
38
  @internal_hash = {}
39
39
  # ======================================================================= #
40
+ # === :main_CSS_rules
41
+ # ======================================================================= #
42
+ @internal_hash[:main_CSS_rules] = ''.dup
43
+ # ======================================================================= #
44
+ # === :body_css_style
45
+ # ======================================================================= #
46
+ @internal_hash[:body_css_style] = ''.dup
47
+ # ======================================================================= #
48
+ # == :body_css_class
49
+ # ======================================================================= #
50
+ @internal_hash[:body_css_class] = nil
51
+ # ======================================================================= #
52
+ # === :use_the_internal_CSS_files
53
+ #
54
+ # If the following variable is set to true then the WebObject instance
55
+ # will try to read in the internal .css files.
56
+ # ======================================================================= #
57
+ @internal_hash[:use_the_internal_CSS_files] = true
58
+ # ======================================================================= #
40
59
  # === :global_CSS_rules_for_all_images
41
60
  #
42
61
  # This variable must be nil initially.
@@ -67,13 +86,6 @@ class WebObject < ::Cyberweb::Base # === Cyberweb::WebObject
67
86
  # ======================================================================= #
68
87
  @internal_hash[:save_into_this_html_page] = '/Depot/j/foobar.html'
69
88
  # ======================================================================= #
70
- # === :use_the_internal_CSS_files
71
- #
72
- # If the following variable is set to true then the WebObject instance
73
- # will try to read in the internal .css files.
74
- # ======================================================================= #
75
- @internal_hash[:use_the_internal_CSS_files] = true
76
- # ======================================================================= #
77
89
  # === :register_the_constants
78
90
  #
79
91
  # If the following variable is set to true then the method
@@ -99,10 +111,6 @@ class WebObject < ::Cyberweb::Base # === Cyberweb::WebObject
99
111
  # ======================================================================= #
100
112
  @internal_hash[:use_unicode] = true
101
113
  # ======================================================================= #
102
- # === :body_css_style
103
- # ======================================================================= #
104
- @internal_hash[:body_css_style] = ''.dup
105
- # ======================================================================= #
106
114
  # === :meta_collection
107
115
  #
108
116
  # This variable is used to add the meta-collection entries for the
@@ -132,10 +140,6 @@ class WebObject < ::Cyberweb::Base # === Cyberweb::WebObject
132
140
  # ======================================================================= #
133
141
  @internal_hash[:use_body_tag] = true
134
142
  # ======================================================================= #
135
- # == :body_css_class
136
- # ======================================================================= #
137
- @internal_hash[:body_css_class] = nil
138
- # ======================================================================= #
139
143
  # === :body_javascript
140
144
  # ======================================================================= #
141
145
  @internal_hash[:body_javascript] = ''.dup
@@ -14,6 +14,8 @@ class WebObject < ::Cyberweb::Base # === Cyberweb::WebObject
14
14
  # === run (run tag)
15
15
  # ========================================================================= #
16
16
  def run
17
+ try_to_create_the_log_directory_unless_it_already_exists
18
+ try_to_populate_the_log_directory_with_javascript_files
17
19
  # add_html_and_head_start_tag # ← This will add the <html> and <head> tag.
18
20
  # ======================================================================= #
19
21
  # (1) Register all constants.