cyberweb 0.6.17 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +299 -134
  3. data/bin/images_from_this_webpage +11 -0
  4. data/doc/README.gen +276 -107
  5. data/doc/todo/todo_for_the_cyberweb_project.md +90 -90
  6. data/examples/css/day_night_toggle/day_night_toggle.html +202 -0
  7. data/examples/css/fleeing_dinosaur_animation/fleeing_dinosaur_animation.html +420 -0
  8. data/examples/css/important_style/important_style.html +35 -0
  9. data/examples/html/custom_cursor.html +1 -1
  10. data/examples/javascript_and_jquery/misc/miscallenous_javascript_examples.html +25 -0
  11. data/examples/javascript_and_jquery/roll_a_die/roll_a_die.html +48 -0
  12. data/lib/cyberweb/base/misc.rb +7 -0
  13. data/lib/cyberweb/cascading_style_sheets/div.css +2 -2
  14. data/lib/cyberweb/cascading_style_sheets/drop_shadow.css +4 -0
  15. data/lib/cyberweb/cascading_style_sheets/fonts.css +42 -30
  16. data/lib/cyberweb/cascading_style_sheets/glow_effects.css +58 -0
  17. data/lib/cyberweb/cascading_style_sheets/margin.css +254 -248
  18. data/lib/cyberweb/cascading_style_sheets/tooltip.css +73 -0
  19. data/lib/cyberweb/generator/cgi.rb +2 -1
  20. data/lib/cyberweb/javascript_code/custom_functions.js +16 -16
  21. data/lib/cyberweb/javascript_code/math.js +18 -0
  22. data/lib/cyberweb/javascript_code/simulate_a_dice.js +13 -5
  23. data/lib/cyberweb/sinatra/custom_extensions.rb +2 -2
  24. data/lib/cyberweb/toplevel_methods/misc.rb +44 -0
  25. data/lib/cyberweb/utility_scripts/create_coloured_tags.rb +1 -5
  26. data/lib/cyberweb/utility_scripts/download_balloon_css.rb +1 -5
  27. data/lib/cyberweb/utility_scripts/fix_incorrect_links_to_locally_existing_images_in_this_file.rb +5 -33
  28. data/lib/cyberweb/utility_scripts/hyperlink_all_images_from.rb +1 -5
  29. data/lib/cyberweb/utility_scripts/obtain_css_rules.rb +169 -0
  30. data/lib/cyberweb/version/version.rb +2 -2
  31. data/lib/cyberweb/web_object/html_tags.rb +12 -1
  32. data/lib/cyberweb/web_object/images.rb +534 -178
  33. data/lib/cyberweb/web_object/javascript_and_jquery.rb +9 -9
  34. data/lib/cyberweb/web_object/link.rb +102 -67
  35. data/lib/cyberweb/web_object/misc.rb +320 -518
  36. data/lib/cyberweb/yaml/js_files_to_load.yml +3 -2
  37. data/lib/cyberweb/yaml/load_these_yaml_files_by_default.yml +1 -0
  38. data/test/complex_tests/testing_style_variants/show_coloured_boxes.cgi +2 -2
  39. data/test/javascript/testing_various_javascript_related_APIs.html +17 -0
  40. data/test/simple_tests/testing_dragging_an_image.cgi +2 -0
  41. data/test/simple_tests/testing_uniform_css_rules_for_all_images.cgi +25 -0
  42. metadata +15 -5
@@ -7,8 +7,8 @@
7
7
  # pp x = YAML.load_file('js_files_to_load.yml')
8
8
  # =========================================================================== #
9
9
  - custom_functions.js
10
- - timer.js
11
- - simple_drag.js
10
+ # - timer.js
11
+ # - simple_drag.js
12
12
 
13
13
  # =========================================================================== #
14
14
  # Now the libraries for the popup boxes:
@@ -31,3 +31,4 @@
31
31
  # The following file was added to the cyberweb project as of 18.10.2022
32
32
  # =========================================================================== #
33
33
  - copy_to_the_clipboard.js
34
+ - math.js
@@ -27,3 +27,4 @@
27
27
  - shapes.css
28
28
  - template2.css
29
29
  - text_shadow.css
30
+ - tooltip.css
@@ -9,7 +9,7 @@ require 'cyberweb/autoinclude'
9
9
  english('Show coloured boxes') {
10
10
  autoextend
11
11
  ruby_favicon
12
- css_style '
12
+ default_css_template '
13
13
 
14
14
  .arrow {
15
15
  border: solid black;
@@ -22,7 +22,7 @@ css_style '
22
22
  transform: rotate(45deg);
23
23
  -webkit-transform: rotate(45deg);
24
24
  }
25
- '+TEMPLATE1
25
+ '
26
26
  body_css_class 'mar0px s2px padt2px VERDANAs'
27
27
  body_css_style 'background-color: #d3d2d1;'
28
28
  font_size 'def'
@@ -0,0 +1,17 @@
1
+ <html>
2
+
3
+ <body>
4
+
5
+ <script>
6
+ // Check if the geolocation API exists
7
+ if (navigator.geolocation) {
8
+ // true
9
+ alert('(1) The geolocation API is supported by this browser.');
10
+ } else {
11
+ // false
12
+ alert('(1) The geolocation API is not supported by this browser.');
13
+ }
14
+
15
+ </script>
16
+ </body>
17
+ </html>
@@ -7,6 +7,8 @@
7
7
  require 'cyberweb/autoinclude'
8
8
 
9
9
  english('Testing dragging an image') {
10
+ font_size '1.2em'
11
+ images_css 'bblack5'
10
12
 
11
13
  doc {
12
14
  div('pad0_5em BG_WHITE black') {
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
+ # frozen_string_literal: true
4
+ # =========================================================================== #
5
+ # http://localhost/programming/ruby/src/cyberweb/test/simple_tests/testing_uniform_css_rules_for_all_images.cgi
6
+ # =========================================================================== #
7
+ require 'cyberweb/autoinclude'
8
+
9
+ english('Testing uniform CSS rules for allimages') {
10
+ font_size '1.2em'
11
+ images_css 'bblack3 mars3em'
12
+
13
+ doc {
14
+ div('pad0_5em BG_WHITE black') {
15
+ dimg :big_star,
16
+ 'mars2em'
17
+ }
18
+ dimg Cyberweb.project_base_dir?+'raw_images/404.png'
19
+ dimg Cyberweb.project_base_dir?+'raw_images/500.png'
20
+ dimg Cyberweb.project_base_dir?+'raw_images/a_dice.png'
21
+ dimg Cyberweb.project_base_dir?+'raw_images/food.png'
22
+ dimg Cyberweb.project_base_dir?+'raw_images/ground.png'
23
+ dimg Cyberweb.project_base_dir?+'raw_images/ground.png','mars1em bblack1'
24
+ dimg Cyberweb.project_base_dir?+'raw_images/ground.png','mars5em bblack5'
25
+ }}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyberweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.17
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert A. Heiler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-01 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colours
@@ -112,6 +112,7 @@ files:
112
112
  - bin/cyberweb_sanitize
113
113
  - bin/download_webpage
114
114
  - bin/html_to_cyberweb_converter
115
+ - bin/images_from_this_webpage
115
116
  - cyberweb.gemspec
116
117
  - doc/README.gen
117
118
  - doc/USAGE.md
@@ -179,16 +180,19 @@ files:
179
180
  - examples/css/css_typewriter_example/css_typewriter_example.html
180
181
  - examples/css/cyberweb_animated_logo/cyberweb_animated_logo.html
181
182
  - examples/css/daily_coffee/daily_coffee.html
183
+ - examples/css/day_night_toggle/day_night_toggle.html
182
184
  - examples/css/different_colour_on_selected_text/different_colour_on_selected_text.html
183
185
  - examples/css/differentially_glowing_text_example/differentially_glowing_text_example.html
184
186
  - examples/css/examples_with_borders/examples_with_borders.html
185
187
  - examples/css/fade_in_and_fade_out_effect.html
188
+ - examples/css/fleeing_dinosaur_animation/fleeing_dinosaur_animation.html
186
189
  - examples/css/flying_birds_example/flying_birds_example.html
187
190
  - examples/css/folding_cards_example/folding_cards_example.html
188
191
  - examples/css/font_size_examples.html
189
192
  - examples/css/glowing_on_hover_animation/glowing_on_hover_animation.html
190
193
  - examples/css/grow_example.html
191
194
  - examples/css/happy_toaster_example/happy_toaster_example.html
195
+ - examples/css/important_style/important_style.html
192
196
  - examples/css/landing_on_mars_animation/landing_on_mars_animation.html
193
197
  - examples/css/letter_spacing_example.cgi
194
198
  - examples/css/lighthouse_example/lighthouse_example.html
@@ -295,6 +299,7 @@ files:
295
299
  - examples/javascript_and_jquery/jquery_showcase/jquery_002.cgi
296
300
  - examples/javascript_and_jquery/jquery_showcase/jquery_003.cgi
297
301
  - examples/javascript_and_jquery/jquery_showcase/jquery_004.cgi
302
+ - examples/javascript_and_jquery/misc/miscallenous_javascript_examples.html
298
303
  - examples/javascript_and_jquery/on_change_event/on_change_event.html
299
304
  - examples/javascript_and_jquery/on_click_colour_change/on_click_colour_change.html
300
305
  - examples/javascript_and_jquery/on_click_display_random_number/on_click_display_random_number.html
@@ -302,6 +307,7 @@ files:
302
307
  - examples/javascript_and_jquery/on_mouse_wheel_event/on_mouse_wheel_event.html
303
308
  - examples/javascript_and_jquery/read_the_content_of_a_local_file/read_the_content_of_a_local_file.html
304
309
  - examples/javascript_and_jquery/rgb_to_hex/rgb_to_hex.html
310
+ - examples/javascript_and_jquery/roll_a_die/roll_a_die.html
305
311
  - examples/javascript_and_jquery/screen_resolution/screen_resolution.html
306
312
  - examples/javascript_and_jquery/select_everything/select_everything.html
307
313
  - examples/javascript_and_jquery/vue/README.md
@@ -536,6 +542,7 @@ files:
536
542
  - lib/cyberweb/javascript_code/jquery/jquery-3.6.0.js
537
543
  - lib/cyberweb/javascript_code/jquery/jquery-3.6.1.js
538
544
  - lib/cyberweb/javascript_code/jquery/jquery-ui-1.12.1.js
545
+ - lib/cyberweb/javascript_code/math.js
539
546
  - lib/cyberweb/javascript_code/rgb_to_hex.js
540
547
  - lib/cyberweb/javascript_code/select_even_numbers.js
541
548
  - lib/cyberweb/javascript_code/select_everything.js
@@ -774,6 +781,7 @@ files:
774
781
  - lib/cyberweb/utility_scripts/images_to_html/images_to_html.rb
775
782
  - lib/cyberweb/utility_scripts/images_to_html/misc.rb
776
783
  - lib/cyberweb/utility_scripts/new_tags.rb
784
+ - lib/cyberweb/utility_scripts/obtain_css_rules.rb
777
785
  - lib/cyberweb/utility_scripts/simple_index/README.md
778
786
  - lib/cyberweb/utility_scripts/simple_index/simple_index.rb
779
787
  - lib/cyberweb/version/version.rb
@@ -849,6 +857,7 @@ files:
849
857
  - test/javascript/testing_drag_and_drop_support.cgi
850
858
  - test/javascript/testing_on_click_change_opacity.cgi
851
859
  - test/javascript/testing_snowflakes.cgi
860
+ - test/javascript/testing_various_javascript_related_APIs.html
852
861
  - test/simple_tests/README.md
853
862
  - test/simple_tests/ad-hoc-test.cgi
854
863
  - test/simple_tests/cgi/hello_world_with_cyberweb.cgi
@@ -880,6 +889,7 @@ files:
880
889
  - test/simple_tests/testing_the_s2_method.rb
881
890
  - test/simple_tests/testing_the_select_tag.cgi
882
891
  - test/simple_tests/testing_the_span_tag.cgi
892
+ - test/simple_tests/testing_uniform_css_rules_for_all_images.cgi
883
893
  - test/simple_tests/testing_web_images.rb
884
894
  - test/testing_html_tags/README.md
885
895
  - test/testing_html_tags/button_example.cgi
@@ -924,7 +934,7 @@ post_install_message: |2+
924
934
 
925
935
  For more information, have a look at:
926
936
 
927
- https://www.rubydoc.info/gems/cyberweb/0.6.17
937
+ https://www.rubydoc.info/gems/cyberweb/0.7.9
928
938
 
929
939
  rdoc_options: []
930
940
  require_paths:
@@ -938,9 +948,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
938
948
  requirements:
939
949
  - - ">="
940
950
  - !ruby/object:Gem::Version
941
- version: 3.3.23
951
+ version: 3.3.26
942
952
  requirements: []
943
- rubygems_version: 3.3.23
953
+ rubygems_version: 3.3.26
944
954
  signing_key:
945
955
  specification_version: 4
946
956
  summary: 'Cyberweb is a tool-set project for the www. The project attempts to explore