cyberweb 0.8.17 → 0.9.31
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.
- checksums.yaml +4 -4
- data/README.md +274 -86
- data/cyberweb.gemspec +0 -3
- data/doc/README.gen +273 -85
- data/doc/todo/todo_for_the_cyberweb_project.md +100 -99
- data/examples/advanced/draw_circle/draw_circle.cgi +2 -2
- data/examples/advanced/simple_calculator.cgi +4 -4
- data/examples/css/animated_dodecahedron_example/animated_dodecahedron_example.html +107 -0
- data/examples/css/animated_police_box/animated_police_box.html +639 -0
- data/examples/css/animated_solar_system/animated_solar_system.html +168 -0
- data/examples/css/animated_solar_system/css/styles.css +1592 -0
- data/examples/css/animated_solar_system/img/bg-glow.png +0 -0
- data/examples/css/animated_solar_system/img/bg-stars.png +0 -0
- data/examples/css/animated_solar_system/img/p-earth.png +0 -0
- data/examples/css/animated_solar_system/img/p-jupiter.png +0 -0
- data/examples/css/animated_solar_system/img/p-mars.png +0 -0
- data/examples/css/animated_solar_system/img/p-mercury.png +0 -0
- data/examples/css/animated_solar_system/img/p-neptune.png +0 -0
- data/examples/css/animated_solar_system/img/p-saturn.png +0 -0
- data/examples/css/animated_solar_system/img/p-uranus.png +0 -0
- data/examples/css/animated_solar_system/img/p-venus.png +0 -0
- data/examples/css/animated_solar_system/img/sun.png +0 -0
- data/examples/css/animated_solar_system/js/jquery.min.js +4 -0
- data/examples/css/animated_solar_system/js/scripts.js +42 -0
- data/examples/css/animated_solar_system/js/scripts.min.js +1 -0
- data/examples/css/dozing_bird_example/dozing_bird_example.html +358 -0
- data/examples/css/planet_earth_is_rotating/planet_earth_is_rotating.html +130 -0
- data/examples/css/simpler_css_clock/simpler_css_clock.html +125 -0
- data/examples/html/{href_examples.html → href_examples/href_examples.html} +5 -2
- data/examples/html/href_in_pre_tag/href_in_pre_tag.html +39 -0
- data/examples/javascript_and_jquery/toggle_visibility_of_elements/toggle_visibility_of_elements.html +35 -0
- data/examples/simple/toggle_visibility_example/toggle_visibility_example.cgi +36 -0
- data/images/cyberweb_theme.png +0 -0
- data/lib/cyberweb/base/misc.rb +20 -13
- data/lib/cyberweb/cascading_style_sheets/border.css +61 -49
- data/lib/cyberweb/cascading_style_sheets/default.css +17 -8
- data/lib/cyberweb/cascading_style_sheets/fonts.css +6 -2
- data/lib/cyberweb/cascading_style_sheets/glow_effects.css +5 -5
- data/lib/cyberweb/cascading_style_sheets/hover.css +13 -5
- data/lib/cyberweb/cascading_style_sheets/margin.css +3 -0
- data/lib/cyberweb/cmd/README.md +2 -0
- data/lib/cyberweb/cmd/cmd.rb +601 -0
- data/lib/cyberweb/constants/constants.rb +16 -0
- data/lib/cyberweb/generator/cgi.rb +2 -2
- data/lib/cyberweb/html_tags/textarea.rb +54 -23
- data/lib/cyberweb/images/standard_images/ADMIN.png +0 -0
- data/lib/cyberweb/images/standard_images/AMBULANZ.png +0 -0
- data/lib/cyberweb/images/standard_images/ANGRY_SMILEY.png +0 -0
- data/lib/cyberweb/images/standard_images/APPROVE.png +0 -0
- data/lib/cyberweb/images/standard_images/ARROW_LEFT.png +0 -0
- data/lib/cyberweb/images/standard_images/ARROW_RIGHT.png +0 -0
- data/lib/cyberweb/images/standard_images/ARROW_TOOLTIP.gif +0 -0
- data/lib/cyberweb/images/standard_images/AUSRUFUNGSZEICHEN.png +0 -0
- data/lib/cyberweb/images/standard_images/AUSRUFUNGSZEICHEN2.png +0 -0
- data/lib/cyberweb/images/standard_images/AUSRUFUNGSZEICHEN3.png +0 -0
- data/lib/cyberweb/images/standard_images/AUSRUFUNGSZEICHEN4.png +0 -0
- data/lib/cyberweb/images/standard_images/AUSTRIA_FAHNE.jpg +0 -0
- data/lib/cyberweb/images/standard_images/AWARD.png +0 -0
- data/lib/cyberweb/images/standard_images/AXE.png +0 -0
- data/lib/cyberweb/images/standard_images/BACKUP_IMAGE.png +0 -0
- data/lib/cyberweb/images/standard_images/BAGGER.png +0 -0
- data/lib/cyberweb/images/standard_images/BARS.gif +0 -0
- data/lib/cyberweb/images/standard_images/BEGINNER.jpg +0 -0
- data/lib/cyberweb/images/standard_images/BEWERTUNG_1.png +0 -0
- data/lib/cyberweb/images/standard_images/BEWERTUNG_2.png +0 -0
- data/lib/cyberweb/images/standard_images/BEWERTUNG_3.png +0 -0
- data/lib/cyberweb/images/standard_images/BEWERTUNG_4.png +0 -0
- data/lib/cyberweb/images/standard_images/BEWERTUNG_5.png +0 -0
- data/lib/cyberweb/images/standard_images/BEWERTUNG_6.png +0 -0
- data/lib/cyberweb/images/standard_images/BIG_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/BIKE.png +0 -0
- data/lib/cyberweb/images/standard_images/BIO.png +0 -0
- data/lib/cyberweb/images/standard_images/BIOS.gif +0 -0
- data/lib/cyberweb/images/standard_images/BLOB.png +0 -0
- data/lib/cyberweb/images/standard_images/BLOG.png +0 -0
- data/lib/cyberweb/images/standard_images/BLUEARROW.png +0 -0
- data/lib/cyberweb/images/standard_images/BLUE_HEAD.gif +0 -0
- data/lib/cyberweb/images/standard_images/BLUE_PILL.png +0 -0
- data/lib/cyberweb/images/standard_images/BLUME.png +0 -0
- data/lib/cyberweb/images/standard_images/BOHRER.png +0 -0
- data/lib/cyberweb/images/standard_images/BOOK_CLOSED.png +0 -0
- data/lib/cyberweb/images/standard_images/BOOK_OPENED.png +0 -0
- data/lib/cyberweb/images/standard_images/BUBBLE.png +0 -0
- data/lib/cyberweb/images/standard_images/BUECHER.jpg +0 -0
- data/lib/cyberweb/images/standard_images/BUERO_KLAMMER.png +0 -0
- data/lib/cyberweb/images/standard_images/BUSINESS.png +0 -0
- data/lib/cyberweb/images/standard_images/BUTTON1.gif +0 -0
- data/lib/cyberweb/images/standard_images/CAMERA.png +0 -0
- data/lib/cyberweb/images/standard_images/CAT.png +0 -0
- data/lib/cyberweb/images/standard_images/CAUTION.png +0 -0
- data/lib/cyberweb/images/standard_images/CHAOTIC_IMAGE.png +0 -0
- data/lib/cyberweb/images/standard_images/CHECKBOX_OFF.png +0 -0
- data/lib/cyberweb/images/standard_images/CHECKBOX_ON.png +0 -0
- data/lib/cyberweb/images/standard_images/CHEERING_PERSON.png +0 -0
- data/lib/cyberweb/images/standard_images/CLOSED.png +0 -0
- data/lib/cyberweb/images/standard_images/COMMAND_ICO.png +0 -0
- data/lib/cyberweb/images/standard_images/COMPLEX.png +0 -0
- data/lib/cyberweb/images/standard_images/COMPONENTS.png +0 -0
- data/lib/cyberweb/images/standard_images/COMPUTER.png +0 -0
- data/lib/cyberweb/images/standard_images/CONNECTED.png +0 -0
- data/lib/cyberweb/images/standard_images/CONTACT.png +0 -0
- data/lib/cyberweb/images/standard_images/COPY.png +0 -0
- data/lib/cyberweb/images/standard_images/CSS.png +0 -0
- data/lib/cyberweb/images/standard_images/CURSOR.png +0 -0
- data/lib/cyberweb/images/standard_images/CUTE_BUBBA.png +0 -0
- data/lib/cyberweb/images/standard_images/CUTE_MOUSE.png +0 -0
- data/lib/cyberweb/images/standard_images/DEVELOP.png +0 -0
- data/lib/cyberweb/images/standard_images/DIAMOND_SHELL.png +0 -0
- data/lib/cyberweb/images/standard_images/DIE_PERFEKTE_AUSBILDUNG.png +0 -0
- data/lib/cyberweb/images/standard_images/DOCUMENTATION.png +0 -0
- data/lib/cyberweb/images/standard_images/DOKUMENT.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_01.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_02.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_03.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_04.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_05.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_06.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_07.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_08.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_09.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_10.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_11.png +0 -0
- data/lib/cyberweb/images/standard_images/DOT_12.png +0 -0
- data/lib/cyberweb/images/standard_images/DOWNLOAD.png +0 -0
- data/lib/cyberweb/images/standard_images/DOWNLOAD2.png +0 -0
- data/lib/cyberweb/images/standard_images/DOWNLOAD_PACKAGE.png +0 -0
- data/lib/cyberweb/images/standard_images/DUCK.png +0 -0
- data/lib/cyberweb/images/standard_images/DUCKY.png +0 -0
- data/lib/cyberweb/images/standard_images/EINKAUFSKORB.png +0 -0
- data/lib/cyberweb/images/standard_images/EINKAUFSWAGEN.png +0 -0
- data/lib/cyberweb/images/standard_images/ELLIPSE.png +0 -0
- data/lib/cyberweb/images/standard_images/EMAIL_FANCY.png +0 -0
- data/lib/cyberweb/images/standard_images/EMAIL_FAVICON.png +0 -0
- data/lib/cyberweb/images/standard_images/EMAIL_FAVICON.xpm +176 -0
- data/lib/cyberweb/images/standard_images/ENGLISH.jpg +0 -0
- data/lib/cyberweb/images/standard_images/ERRORS.png +0 -0
- data/lib/cyberweb/images/standard_images/EURO.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/01_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/02_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/03_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/04_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/05_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/0x_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/1x_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/2x_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/3x_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EVAL/4x_STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/EXTERNAL_LINK.png +0 -0
- data/lib/cyberweb/images/standard_images/EYE.png +0 -0
- data/lib/cyberweb/images/standard_images/FAQ.png +0 -0
- data/lib/cyberweb/images/standard_images/FERNGLAS.png +0 -0
- data/lib/cyberweb/images/standard_images/FLOWER_1.png +0 -0
- data/lib/cyberweb/images/standard_images/FLOWER_2.png +0 -0
- data/lib/cyberweb/images/standard_images/FLUGZEUG1.jpg +0 -0
- data/lib/cyberweb/images/standard_images/FOLDER.png +0 -0
- data/lib/cyberweb/images/standard_images/FORK.png +0 -0
- data/lib/cyberweb/images/standard_images/FORUM.png +0 -0
- data/lib/cyberweb/images/standard_images/FOTOAPPARAT.png +0 -0
- data/lib/cyberweb/images/standard_images/FOTO_FAVICON.png +0 -0
- data/lib/cyberweb/images/standard_images/FRAGEZEICHEN.jpg +0 -0
- data/lib/cyberweb/images/standard_images/FTP.png +0 -0
- data/lib/cyberweb/images/standard_images/FUNNY_ELEPHANT.png +0 -0
- data/lib/cyberweb/images/standard_images/FUSSBALL.png +0 -0
- data/lib/cyberweb/images/standard_images/F/303/204CHER.png +0 -0
- data/lib/cyberweb/images/standard_images/GATEWAY.png +0 -0
- data/lib/cyberweb/images/standard_images/GB.jpg +0 -0
- data/lib/cyberweb/images/standard_images/GENDER_ICON_FEMALE.png +0 -0
- data/lib/cyberweb/images/standard_images/GENDER_ICON_MALE.png +0 -0
- data/lib/cyberweb/images/standard_images/GERMANY_FLAG.png +0 -0
- data/lib/cyberweb/images/standard_images/GERSTE.png +0 -0
- data/lib/cyberweb/images/standard_images/GESCHENKBOX.png +0 -0
- data/lib/cyberweb/images/standard_images/GET_HELP.png +0 -0
- data/lib/cyberweb/images/standard_images/GITARRE.png +0 -0
- data/lib/cyberweb/images/standard_images/GOOGLE.png +0 -0
- data/lib/cyberweb/images/standard_images/GORILLA.gif +0 -0
- data/lib/cyberweb/images/standard_images/GOTHIC_SPACER.png +0 -0
- data/lib/cyberweb/images/standard_images/GRADIENT_FILL.gif +0 -0
- data/lib/cyberweb/images/standard_images/GRAFIK_SMALL.png +0 -0
- data/lib/cyberweb/images/standard_images/GRID_LAYOUT.gif +0 -0
- data/lib/cyberweb/images/standard_images/GRINSEN.jpg +0 -0
- data/lib/cyberweb/images/standard_images/GUN.png +0 -0
- data/lib/cyberweb/images/standard_images/HAKEN.png +0 -0
- data/lib/cyberweb/images/standard_images/HALLOWEEN.png +0 -0
- data/lib/cyberweb/images/standard_images/HAMMER.png +0 -0
- data/lib/cyberweb/images/standard_images/HANGING_MONKEY.png +0 -0
- data/lib/cyberweb/images/standard_images/HANG_MAN.png +0 -0
- data/lib/cyberweb/images/standard_images/HAPPY_BIRD.png +0 -0
- data/lib/cyberweb/images/standard_images/HAPPY_SMILEY.png +0 -0
- data/lib/cyberweb/images/standard_images/HDD_EMPTY.png +0 -0
- data/lib/cyberweb/images/standard_images/HDD_FULL.png +0 -0
- data/lib/cyberweb/images/standard_images/HDD_HALF.png +0 -0
- data/lib/cyberweb/images/standard_images/HDD_ONEFOURTH.png +0 -0
- data/lib/cyberweb/images/standard_images/HDD_THREEEIGHT.png +0 -0
- data/lib/cyberweb/images/standard_images/HDD_THREEFOURTH.png +0 -0
- data/lib/cyberweb/images/standard_images/HEART.png +0 -0
- data/lib/cyberweb/images/standard_images/HELP.png +0 -0
- data/lib/cyberweb/images/standard_images/HOME.gif +0 -0
- data/lib/cyberweb/images/standard_images/HONIG.jpg +0 -0
- data/lib/cyberweb/images/standard_images/HTML40.png +0 -0
- data/lib/cyberweb/images/standard_images/HUHN.gif +0 -0
- data/lib/cyberweb/images/standard_images/HUMAN.gif +0 -0
- data/lib/cyberweb/images/standard_images/ICONS_COLLECTION1.gif +0 -0
- data/lib/cyberweb/images/standard_images/ICONS_COLLECTION2.png +0 -0
- data/lib/cyberweb/images/standard_images/ICOSAHEDRON.jpg +0 -0
- data/lib/cyberweb/images/standard_images/IE.jpg +0 -0
- data/lib/cyberweb/images/standard_images/IMPORTANT_ARROW_LEFT.jpg +0 -0
- data/lib/cyberweb/images/standard_images/INTERNAL_LINKS.png +0 -0
- data/lib/cyberweb/images/standard_images/IPAD.png +0 -0
- data/lib/cyberweb/images/standard_images/ITEM.png +0 -0
- data/lib/cyberweb/images/standard_images/KAFFEE.png +0 -0
- data/lib/cyberweb/images/standard_images/KARMA.png +0 -0
- data/lib/cyberweb/images/standard_images/KEYS.png +0 -0
- data/lib/cyberweb/images/standard_images/KLEBSTOFF.png +0 -0
- data/lib/cyberweb/images/standard_images/KLEE_BLATT.png +0 -0
- data/lib/cyberweb/images/standard_images/KNIFE01.png +0 -0
- data/lib/cyberweb/images/standard_images/LARGER_COMPUTER.png +0 -0
- data/lib/cyberweb/images/standard_images/LCD.png +0 -0
- data/lib/cyberweb/images/standard_images/LEAF.png +0 -0
- data/lib/cyberweb/images/standard_images/LEAF2.png +0 -0
- data/lib/cyberweb/images/standard_images/LEFT_RIGHT_PFEIL.png +0 -0
- data/lib/cyberweb/images/standard_images/LENS.png +0 -0
- data/lib/cyberweb/images/standard_images/LEXIKON1.jpg +0 -0
- data/lib/cyberweb/images/standard_images/LOCK.png +0 -0
- data/lib/cyberweb/images/standard_images/LOSER.gif +0 -0
- data/lib/cyberweb/images/standard_images/LUPE.gif +0 -0
- data/lib/cyberweb/images/standard_images/MANTIS.png +0 -0
- data/lib/cyberweb/images/standard_images/MAXERL.png +0 -0
- data/lib/cyberweb/images/standard_images/MESSAGE_BOX_ERROR.png +0 -0
- data/lib/cyberweb/images/standard_images/MESSAGE_BOX_INFO.png +0 -0
- data/lib/cyberweb/images/standard_images/MESSAGE_BOX_SUCCESS.png +0 -0
- data/lib/cyberweb/images/standard_images/MESSAGE_BOX_WARNING.png +0 -0
- data/lib/cyberweb/images/standard_images/MICROSOFT.png +0 -0
- data/lib/cyberweb/images/standard_images/MINE.png +0 -0
- data/lib/cyberweb/images/standard_images/MINI_BAUM1.png +0 -0
- data/lib/cyberweb/images/standard_images/MINI_BAUM2.png +0 -0
- data/lib/cyberweb/images/standard_images/MINI_BAUM3.png +0 -0
- data/lib/cyberweb/images/standard_images/MINI_BAUM4.png +0 -0
- data/lib/cyberweb/images/standard_images/MINI_BAUM5.png +0 -0
- data/lib/cyberweb/images/standard_images/MINI_BAUM6.png +0 -0
- data/lib/cyberweb/images/standard_images/MINI_CUBE.png +0 -0
- data/lib/cyberweb/images/standard_images/MINI_DOT.png +0 -0
- data/lib/cyberweb/images/standard_images/MINUS.png +0 -0
- data/lib/cyberweb/images/standard_images/MONEY.png +0 -0
- data/lib/cyberweb/images/standard_images/MOUSE.png +0 -0
- data/lib/cyberweb/images/standard_images/MUSIK_NOTE.png +0 -0
- data/lib/cyberweb/images/standard_images/NAGEL.jpg +0 -0
- data/lib/cyberweb/images/standard_images/NASHORN.png +0 -0
- data/lib/cyberweb/images/standard_images/NEW.png +0 -0
- data/lib/cyberweb/images/standard_images/NEWS.png +0 -0
- data/lib/cyberweb/images/standard_images/NOBODY.png +0 -0
- data/lib/cyberweb/images/standard_images/NOTE.png +0 -0
- data/lib/cyberweb/images/standard_images/NOTEPAD.png +0 -0
- data/lib/cyberweb/images/standard_images/NOTIZ.png +0 -0
- data/lib/cyberweb/images/standard_images/NO_PATENTS.png +0 -0
- data/lib/cyberweb/images/standard_images/OBSOLETE.png +0 -0
- data/lib/cyberweb/images/standard_images/OFFICIAL_HOME.png +0 -0
- data/lib/cyberweb/images/standard_images/PDF.png +0 -0
- data/lib/cyberweb/images/standard_images/PERGAMENT_TILER1.jpg +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL1.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL10.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL11.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL12.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL2.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL3.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL4.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL5.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL6.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL6_red.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL7.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL8_OUT.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL9.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL_LINKS_OBEN.png +0 -0
- data/lib/cyberweb/images/standard_images/PFEIL_VERTICAL.png +0 -0
- data/lib/cyberweb/images/standard_images/PHONE.png +0 -0
- data/lib/cyberweb/images/standard_images/PHP_FORUM.jpg +0 -0
- data/lib/cyberweb/images/standard_images/PIN.png +0 -0
- data/lib/cyberweb/images/standard_images/PIN_POINTER_RED.png +0 -0
- data/lib/cyberweb/images/standard_images/PIPETTE.png +0 -0
- data/lib/cyberweb/images/standard_images/PLUS.png +0 -0
- data/lib/cyberweb/images/standard_images/POSAUNE.png +0 -0
- data/lib/cyberweb/images/standard_images/PRESENT.png +0 -0
- data/lib/cyberweb/images/standard_images/PRINT.png +0 -0
- data/lib/cyberweb/images/standard_images/PRINTER.png +0 -0
- data/lib/cyberweb/images/standard_images/PROTOKOLL.png +0 -0
- data/lib/cyberweb/images/standard_images/QUADRAT01.png +0 -0
- data/lib/cyberweb/images/standard_images/QUOTE.png +0 -0
- data/lib/cyberweb/images/standard_images/RADIO_ACTIVE.png +0 -0
- data/lib/cyberweb/images/standard_images/RAINBOW_CIRCLE.png +0 -0
- data/lib/cyberweb/images/standard_images/RED_PILL.png +0 -0
- data/lib/cyberweb/images/standard_images/RIP.png +0 -0
- data/lib/cyberweb/images/standard_images/ROBERT.png +0 -0
- data/lib/cyberweb/images/standard_images/ROCKET.png +0 -0
- data/lib/cyberweb/images/standard_images/ROSE.png +0 -0
- data/lib/cyberweb/images/standard_images/ROSE2.png +0 -0
- data/lib/cyberweb/images/standard_images/RUNNING.png +0 -0
- data/lib/cyberweb/images/standard_images/SAVE.png +0 -0
- data/lib/cyberweb/images/standard_images/SCANNER.png +0 -0
- data/lib/cyberweb/images/standard_images/SCHERE.png +0 -0
- data/lib/cyberweb/images/standard_images/SCHNEEMANN.png +0 -0
- data/lib/cyberweb/images/standard_images/SCISSORS.png +0 -0
- data/lib/cyberweb/images/standard_images/SHOPPING.png +0 -0
- data/lib/cyberweb/images/standard_images/SKULL.png +0 -0
- data/lib/cyberweb/images/standard_images/SMALL_CAT.png +0 -0
- data/lib/cyberweb/images/standard_images/SMALL_DOCUMENT.png +0 -0
- data/lib/cyberweb/images/standard_images/SMALL_HOUSE.png +0 -0
- data/lib/cyberweb/images/standard_images/SMALL_PLANE.png +0 -0
- data/lib/cyberweb/images/standard_images/SMILEY1.png +0 -0
- data/lib/cyberweb/images/standard_images/SMILEY2.png +0 -0
- data/lib/cyberweb/images/standard_images/SMILEY3.png +0 -0
- data/lib/cyberweb/images/standard_images/SMILEY4.png +0 -0
- data/lib/cyberweb/images/standard_images/SMILEY5.png +0 -0
- data/lib/cyberweb/images/standard_images/SNAIL.png +0 -0
- data/lib/cyberweb/images/standard_images/SNOWFLAKE.png +0 -0
- data/lib/cyberweb/images/standard_images/SPACER.png +0 -0
- data/lib/cyberweb/images/standard_images/SPECIAL_PFEIL.png +0 -0
- data/lib/cyberweb/images/standard_images/SPIDERMAN_HEAD.png +0 -0
- data/lib/cyberweb/images/standard_images/SPIRAL_CROSS.png +0 -0
- data/lib/cyberweb/images/standard_images/SPOON.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_BLACK.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_BLUE.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_CADETBLUE.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_CHAOS.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_DARKGOLDENROD.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_GREEN.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_GREY.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_RED.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_VIOLET.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_WHITE.png +0 -0
- data/lib/cyberweb/images/standard_images/SQUARE_YEL.png +0 -0
- data/lib/cyberweb/images/standard_images/STANDARDS_FAVICON.png +0 -0
- data/lib/cyberweb/images/standard_images/STAR.png +0 -0
- data/lib/cyberweb/images/standard_images/STAR_FANCY.png +0 -0
- data/lib/cyberweb/images/standard_images/STATUS_IN_PROGRESS.png +0 -0
- data/lib/cyberweb/images/standard_images/STD_COLOURS.png +0 -0
- data/lib/cyberweb/images/standard_images/SUN.png +0 -0
- data/lib/cyberweb/images/standard_images/SYMBOL_FRAU.png +0 -0
- data/lib/cyberweb/images/standard_images/SYMBOL_MANN.png +0 -0
- data/lib/cyberweb/images/standard_images/SYNC.png +0 -0
- data/lib/cyberweb/images/standard_images/TASCHENLAMPE.jpg +0 -0
- data/lib/cyberweb/images/standard_images/TASTATUR.png +0 -0
- data/lib/cyberweb/images/standard_images/TECHNICOLOR_TWIRL.png +0 -0
- data/lib/cyberweb/images/standard_images/TELEFON.png +0 -0
- data/lib/cyberweb/images/standard_images/TEST.bmp +0 -0
- data/lib/cyberweb/images/standard_images/TEUFELCHEN.png +0 -0
- data/lib/cyberweb/images/standard_images/THERMOMETER.png +0 -0
- data/lib/cyberweb/images/standard_images/THINKING_HUMAN.png +0 -0
- data/lib/cyberweb/images/standard_images/TODO.jpg +0 -0
- data/lib/cyberweb/images/standard_images/TODO.png +0 -0
- data/lib/cyberweb/images/standard_images/TOOLS.png +0 -0
- data/lib/cyberweb/images/standard_images/TRANSPORT.png +0 -0
- data/lib/cyberweb/images/standard_images/TRIANGLE.png +0 -0
- data/lib/cyberweb/images/standard_images/TURM.png +0 -0
- data/lib/cyberweb/images/standard_images/UHR.png +0 -0
- data/lib/cyberweb/images/standard_images/UPLOAD2.png +0 -0
- data/lib/cyberweb/images/standard_images/USB_CONNECTION_DEVICE.png +0 -0
- data/lib/cyberweb/images/standard_images/VALID_CSS.jpg +0 -0
- data/lib/cyberweb/images/standard_images/VALID_HTML.jpg +0 -0
- data/lib/cyberweb/images/standard_images/VIDEOCAMERA.png +0 -0
- data/lib/cyberweb/images/standard_images/VOGEL.png +0 -0
- data/lib/cyberweb/images/standard_images/VS_TCPA.gif +0 -0
- data/lib/cyberweb/images/standard_images/WARNSCHILD.png +0 -0
- data/lib/cyberweb/images/standard_images/WEBSERVER.png +0 -0
- data/lib/cyberweb/images/standard_images/WECKER.jpg +0 -0
- data/lib/cyberweb/images/standard_images/WINGS.png +0 -0
- data/lib/cyberweb/images/standard_images/WORD.png +0 -0
- data/lib/cyberweb/images/standard_images/WURZEL_ZEICHEN.png +0 -0
- data/lib/cyberweb/images/standard_images/YIN_YANG.png +0 -0
- data/lib/cyberweb/images/standard_images/Yin__Yang.gif +0 -0
- data/lib/cyberweb/images/standard_images/ZAHNRAD.png +0 -0
- data/lib/cyberweb/images/standard_images/ZAUBERHUT.png +0 -0
- data/lib/cyberweb/images/standard_images/ZITRONE.png +0 -0
- data/lib/cyberweb/images/standard_images/ZURUECK.jpg +0 -0
- data/lib/cyberweb/images/standard_images/blue_gallery.png +0 -0
- data/lib/cyberweb/images/standard_images/chk_off.png +0 -0
- data/lib/cyberweb/images/standard_images/chk_on.png +0 -0
- data/lib/cyberweb/images/standard_images/outdated.png +0 -0
- data/lib/cyberweb/images/standard_images/rdo_off.png +0 -0
- data/lib/cyberweb/images/standard_images/rdo_on.png +0 -0
- data/lib/cyberweb/images/standard_images/sneaky_ninja_face.png +0 -0
- data/lib/cyberweb/images/standard_images/standard_images.html +31644 -0
- data/lib/cyberweb/images/standard_images/text_editor.png +0 -0
- data/lib/cyberweb/images/standard_images/windows_key.png +0 -0
- data/lib/cyberweb/javascript/javascript_clock.rb +55 -12
- data/lib/cyberweb/javascript_code/custom_functions.js +73 -23
- data/lib/cyberweb/javascript_code/html_colours.js +9 -9
- data/lib/cyberweb/javascript_code/jquery/{jquery-3.6.1.js → jquery-3.6.3.js} +96 -12
- data/lib/cyberweb/predefined_and_freeform_methods/predefined_methods.rb +0 -112
- data/lib/cyberweb/project/project.rb +7 -0
- data/lib/cyberweb/requires/require_the_cyberweb_project.rb +3 -1
- data/lib/cyberweb/toplevel_methods/css.rb +3 -0
- data/lib/cyberweb/toplevel_methods/html_tables.rb +58 -29
- data/lib/cyberweb/toplevel_methods/internal_hash.rb +11 -138
- data/lib/cyberweb/toplevel_methods/misc.rb +37 -4
- data/lib/cyberweb/toplevel_methods/path.rb +8 -8
- data/lib/cyberweb/toplevel_methods/registered_ids.rb +4 -1
- data/lib/cyberweb/utility_scripts/images_to_html/constants.rb +63 -0
- data/lib/cyberweb/utility_scripts/images_to_html/images_to_html.rb +149 -164
- data/lib/cyberweb/utility_scripts/images_to_html/misc.rb +119 -0
- data/lib/cyberweb/version/version.rb +2 -2
- data/lib/cyberweb/web_images/array_listing_all_project_images.rb +1 -1
- data/lib/cyberweb/web_images/map_symbol_to_image_location.rb +16 -5
- data/lib/cyberweb/web_object/cmd.rb +257 -0
- data/lib/cyberweb/web_object/display_output_and_report.rb +99 -0
- data/lib/cyberweb/web_object/html_tags.rb +106 -98
- data/lib/cyberweb/web_object/images.rb +53 -36
- data/lib/cyberweb/web_object/javascript_and_jquery.rb +165 -51
- data/lib/cyberweb/web_object/link.rb +207 -34
- data/lib/cyberweb/web_object/misc.rb +1363 -1060
- data/lib/cyberweb/web_object/reset.rb +12 -10
- data/lib/cyberweb/web_object/roebe.rb +113 -0
- data/lib/cyberweb/web_object/web_object.rb +9 -4
- data/lib/cyberweb/yaml/js_files_to_load.yml +11 -3
- data/lib/cyberweb/yaml/project_configuration.yml +1 -1
- data/test/complex_tests/all_tests_in_one_page.cgi +12 -6
- data/test/javascript/testing_different_javascript_functions_available_in_the_cyberweb_project.cgi +27 -0
- data/test/javascript/testing_snowflakes.cgi +2 -2
- data/test/simple_tests/testing_p_default_versus_p_default_le.cgi +31 -0
- metadata +379 -15
- data/lib/cyberweb/javascript_code/jquery/jquery-3.6.0.js +0 -10881
@@ -49,58 +49,9 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
49
49
|
require 'cyberweb/toplevel_methods/misc.rb'
|
50
50
|
require 'cyberweb/toplevel_methods/jquery.rb'
|
51
51
|
require 'cyberweb/html_template/html_template.rb'
|
52
|
+
require 'cyberweb/utility_scripts/images_to_html/constants.rb'
|
52
53
|
require 'cyberweb/utility_scripts/images_to_html/misc.rb'
|
53
54
|
|
54
|
-
# ========================================================================= #
|
55
|
-
# === NAMESPACE
|
56
|
-
# ========================================================================= #
|
57
|
-
NAMESPACE = inspect
|
58
|
-
|
59
|
-
# ========================================================================= #
|
60
|
-
# === DEBUG
|
61
|
-
#
|
62
|
-
# Whether we debug this class or not.
|
63
|
-
# ========================================================================= #
|
64
|
-
DEBUG = false
|
65
|
-
|
66
|
-
# ========================================================================= #
|
67
|
-
# === ARRAY_IMAGES
|
68
|
-
# ========================================================================= #
|
69
|
-
ARRAY_IMAGES = %w( jpg png gif ) # All valid image-formats.
|
70
|
-
|
71
|
-
# ========================================================================= #
|
72
|
-
# === INFO_DIRECTORY
|
73
|
-
#
|
74
|
-
# This is the base directory where to store, unless we use Dir.pwd.
|
75
|
-
# ========================================================================= #
|
76
|
-
INFO_DIRECTORY = '/Depot/Information/'
|
77
|
-
|
78
|
-
# ========================================================================= #
|
79
|
-
# === BE_VERBOSE
|
80
|
-
# ========================================================================= #
|
81
|
-
BE_VERBOSE = true
|
82
|
-
|
83
|
-
# ========================================================================= #
|
84
|
-
# === HTML
|
85
|
-
# ========================================================================= #
|
86
|
-
HTML = '.html' # HTML File suffice comes here.
|
87
|
-
|
88
|
-
# ========================================================================= #
|
89
|
-
# === IMG_CSS_STYLE
|
90
|
-
#
|
91
|
-
# Determine the default css-rules for each <img> tag to be used.
|
92
|
-
# ========================================================================= #
|
93
|
-
IMG_CSS_STYLE =
|
94
|
-
'border:1px solid black;
|
95
|
-
margin-left: 4.5em;
|
96
|
-
padding-left: 5px;'.
|
97
|
-
delete("\n").squeeze(' ')
|
98
|
-
|
99
|
-
# ========================================================================= #
|
100
|
-
# === FONT_SIZE_TO_USE
|
101
|
-
# ========================================================================= #
|
102
|
-
FONT_SIZE_TO_USE = '1.3em'
|
103
|
-
|
104
55
|
# ========================================================================= #
|
105
56
|
# === initialize
|
106
57
|
#
|
@@ -119,7 +70,8 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
119
70
|
# ======================================================================= #
|
120
71
|
# === :do_not_run_yet
|
121
72
|
# ======================================================================= #
|
122
|
-
when :do_not_run_yet
|
73
|
+
when :do_not_run_yet,
|
74
|
+
:dont_run_yet
|
123
75
|
commandline_arguments = []
|
124
76
|
run_already = false
|
125
77
|
end
|
@@ -219,10 +171,22 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
219
171
|
# ======================================================================= #
|
220
172
|
@internal_hash[:use_HTML_table_layout] = false
|
221
173
|
# ======================================================================= #
|
174
|
+
# === :use_no_size_value
|
175
|
+
# ======================================================================= #
|
176
|
+
@internal_hash[:use_no_size_value] = false
|
177
|
+
# ======================================================================= #
|
222
178
|
# === :use_n_rows_for_the_html_table
|
223
179
|
# ======================================================================= #
|
224
180
|
@internal_hash[:use_n_rows_for_the_html_table] = 3
|
225
181
|
# ======================================================================= #
|
182
|
+
# === :display_top_header
|
183
|
+
#
|
184
|
+
# If the following variable is set to true then a top-header will
|
185
|
+
# be shown on the webpage, early on, just showing how many images
|
186
|
+
# are displayed, and how large these images are in total.
|
187
|
+
# ======================================================================= #
|
188
|
+
@internal_hash[:display_top_header] = false
|
189
|
+
# ======================================================================= #
|
226
190
|
# === :use_jquery
|
227
191
|
#
|
228
192
|
# Whether we will use jquery by default or whether we will not.
|
@@ -251,6 +215,16 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
251
215
|
# This is necessary for the jquery-drag operation.
|
252
216
|
# ======================================================================= #
|
253
217
|
@internal_hash[:registered_ids] = []
|
218
|
+
# ======================================================================= #
|
219
|
+
# === :display_width_and_height_of_the_image
|
220
|
+
#
|
221
|
+
# The next variable may lead to a slow-down of generating the .html
|
222
|
+
# file at hand, so if this is not acceptable to you, set it to
|
223
|
+
# false. The variable was added in February 2023 because I wanted to
|
224
|
+
# display the width x height, in px, of an image, which is quite
|
225
|
+
# convenient to see on a .html page as-is.
|
226
|
+
# ======================================================================= #
|
227
|
+
@internal_hash[:display_width_and_height_of_the_image] = true
|
254
228
|
end
|
255
229
|
|
256
230
|
# ========================================================================= #
|
@@ -260,6 +234,13 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
260
234
|
@show_the_name_of_the_image_file
|
261
235
|
end
|
262
236
|
|
237
|
+
# ========================================================================= #
|
238
|
+
# === this_directory_contains_all_images=
|
239
|
+
# ========================================================================= #
|
240
|
+
def this_directory_contains_all_images=(i = nil)
|
241
|
+
@this_directory_contains_all_images = i
|
242
|
+
end
|
243
|
+
|
263
244
|
# ========================================================================= #
|
264
245
|
# === clear_images
|
265
246
|
# ========================================================================= #
|
@@ -267,6 +248,13 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
267
248
|
@array_work_on_these_files.clear # Should always be an Array.
|
268
249
|
end; alias clear_array clear_images # === clear_array
|
269
250
|
|
251
|
+
# ========================================================================= #
|
252
|
+
# === array_work_on_these_files?
|
253
|
+
# ========================================================================= #
|
254
|
+
def array_work_on_these_files?
|
255
|
+
@array_work_on_these_files
|
256
|
+
end; alias array_work_on_these_files array_work_on_these_files? # === array_work_on_these_files
|
257
|
+
|
270
258
|
# ========================================================================= #
|
271
259
|
# === apply_filter
|
272
260
|
#
|
@@ -315,15 +303,6 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
315
303
|
alias scan_from scan_for_images_in_this_directory # === scan_from
|
316
304
|
alias use_this_dir= scan_for_images_in_this_directory # === use_this_dir=
|
317
305
|
|
318
|
-
# ========================================================================= #
|
319
|
-
# === the_three_main_actions
|
320
|
-
# ========================================================================= #
|
321
|
-
def the_three_main_actions
|
322
|
-
look_for_the_images
|
323
|
-
build_up_the_HTML_string
|
324
|
-
do_create_the_html_page
|
325
|
-
end
|
326
|
-
|
327
306
|
# ========================================================================= #
|
328
307
|
# === use_HTML_table_layout?
|
329
308
|
# ========================================================================= #
|
@@ -454,9 +433,23 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
454
433
|
into = save_into_which_file?
|
455
434
|
)
|
456
435
|
# ======================================================================= #
|
457
|
-
# Make the title a bit cleaner next:
|
458
|
-
# ======================================================================= #
|
459
|
-
|
436
|
+
# Make the title a bit cleaner next - as well as replace all '_':
|
437
|
+
# ======================================================================= #
|
438
|
+
raw_title_to_use = File.basename(title?).
|
439
|
+
tr('_',' ').
|
440
|
+
delete_suffix('.html')
|
441
|
+
if raw_title_to_use.include?(' ')
|
442
|
+
splitted = raw_title_to_use.split(' ')
|
443
|
+
first_word = splitted[0]
|
444
|
+
first_word[0, 1] = first_word[0, 1].capitalize
|
445
|
+
if splitted[1]
|
446
|
+
second_word = splitted[1]
|
447
|
+
second_word[0, 1] = second_word[0, 1].capitalize
|
448
|
+
splitted[1] = second_word
|
449
|
+
end
|
450
|
+
raw_title_to_use = splitted.join(' ')
|
451
|
+
end
|
452
|
+
use_this_title = raw_title_to_use
|
460
453
|
# ======================================================================= #
|
461
454
|
# Build the .html file via the HtmlTemplate class next:
|
462
455
|
# ======================================================================= #
|
@@ -620,100 +613,12 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
620
613
|
end
|
621
614
|
|
622
615
|
# ========================================================================= #
|
623
|
-
# ===
|
616
|
+
# === report_not_registered_commandline_argument
|
624
617
|
# ========================================================================= #
|
625
|
-
def
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
i.each {|entry| menu(entry) }
|
630
|
-
else
|
631
|
-
case i # case tag
|
632
|
-
# ===================================================================== #
|
633
|
-
# === cweb --tablelayout
|
634
|
-
# ===================================================================== #
|
635
|
-
when /^-?-?tablelayout$/i,
|
636
|
-
/^-?-?table$/i,
|
637
|
-
/^-?-?html(-|_)?tables?$/i,
|
638
|
-
/^-?-?use(-|_)?HTML(-|_)?tables?$/i
|
639
|
-
do_use_HTML_table_layout
|
640
|
-
# ===================================================================== #
|
641
|
-
# === cweb --table=4 # 4 rows
|
642
|
-
#
|
643
|
-
# This entry point allows the user to set another number of rows
|
644
|
-
# for the generated HTML table.
|
645
|
-
# ===================================================================== #
|
646
|
-
when /^-?-?table=(.+)$/i
|
647
|
-
n_rows = $1.to_s.to_i
|
648
|
-
@internal_hash[:use_n_rows_for_the_html_table] = n_rows
|
649
|
-
do_use_HTML_table_layout
|
650
|
-
# ===================================================================== #
|
651
|
-
# === --pwd
|
652
|
-
# ===================================================================== #
|
653
|
-
when /^-?-?pwd$/i, # This means we store in the current directory.
|
654
|
-
:return_pwd
|
655
|
-
set_this_directory_contains_the_images(:pwd)
|
656
|
-
set_store_where(:infer)
|
657
|
-
clear_images
|
658
|
-
scan_for_images_in_this_directory
|
659
|
-
the_three_main_actions
|
660
|
-
exit
|
661
|
-
# ===================================================================== #
|
662
|
-
# === cweb --videos
|
663
|
-
#
|
664
|
-
# This entry point allows us to work on video-files only. If that
|
665
|
-
# is the case then the sorting-mode will be changed - aka to not
|
666
|
-
# sort at all.
|
667
|
-
# ===================================================================== #
|
668
|
-
when /^-?-?videos$/i,
|
669
|
-
/^-?-?videos(-|_)?only$/i
|
670
|
-
@work_on_video_files_only = true
|
671
|
-
@internal_hash[:sort_how] = :do_not_sort_at_all
|
672
|
-
# ===================================================================== #
|
673
|
-
# === cweb --do-not-traverse
|
674
|
-
#
|
675
|
-
# This will NOT check for any images in a subdirectory.
|
676
|
-
# ===================================================================== #
|
677
|
-
when /^-?-?do(-|_)?not(-|_)?traverse$/i,
|
678
|
-
/^-?-?simple$/i # cweb --simple
|
679
|
-
@do_traverse_into_subdirectories = false
|
680
|
-
# ===================================================================== #
|
681
|
-
# === --help
|
682
|
-
# ===================================================================== #
|
683
|
-
when /^-?-?help$/i
|
684
|
-
show_help
|
685
|
-
exit
|
686
|
-
# ===================================================================== #
|
687
|
-
# === ?
|
688
|
-
# ===================================================================== #
|
689
|
-
when '?'
|
690
|
-
opnn; e 'The file in question will be:'
|
691
|
-
e
|
692
|
-
e " #{sfile(store_where?)}"
|
693
|
-
e
|
694
|
-
exit
|
695
|
-
# ===================================================================== #
|
696
|
-
# === --njoy
|
697
|
-
# ===================================================================== #
|
698
|
-
when /-?-?njoy$/i,
|
699
|
-
:njoy
|
700
|
-
e 'We will use the excellent images from a special directory.'
|
701
|
-
scan_there :njoy
|
702
|
-
else
|
703
|
-
if i.is_a?(String) and File.directory?(i)
|
704
|
-
# ================================================================= #
|
705
|
-
# (1) Assign a new main directory.
|
706
|
-
# ================================================================= #
|
707
|
-
set_this_directory_contains_all_images(i)
|
708
|
-
# ================================================================= #
|
709
|
-
# (2) Infer a new name for the locally saved file.
|
710
|
-
# ================================================================= #
|
711
|
-
set_save_into_this_local_file(
|
712
|
-
:use_the_directory_containing_all_images_as_base
|
713
|
-
)
|
714
|
-
end
|
715
|
-
end
|
716
|
-
end
|
618
|
+
def report_not_registered_commandline_argument(i)
|
619
|
+
opnn; e tomato('The commandline argument `')+
|
620
|
+
steelblue(i)+
|
621
|
+
tomato('` is not registered.')
|
717
622
|
end
|
718
623
|
|
719
624
|
# ========================================================================= #
|
@@ -728,9 +633,16 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
728
633
|
e steelblue(' NJOY')
|
729
634
|
e steelblue(' PWD')
|
730
635
|
e steelblue(' ?')
|
731
|
-
e steelblue(' --videos-only
|
732
|
-
|
733
|
-
e steelblue(' --
|
636
|
+
e steelblue(' --videos-only ')+
|
637
|
+
lightgreen('# to work on video-files only')
|
638
|
+
e steelblue(' --do-not-traverse ')+
|
639
|
+
lightgreen('# do not obtain images from any subdirectory')
|
640
|
+
e steelblue(' --use-HTML-table ')+
|
641
|
+
lightgreen('# display via a HTML table; currently hardcoded to 3 images per row')
|
642
|
+
e steelblue(' --table=2 ')+
|
643
|
+
lightgreen('# use a HTML table, but 2 images per row, so you can change this setting actually')
|
644
|
+
e steelblue(' --use-no-size-value ')+
|
645
|
+
lightgreen('# do not use explicit width and height setting; the images will appear as-is')
|
734
646
|
e
|
735
647
|
end
|
736
648
|
|
@@ -745,13 +657,21 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
745
657
|
# some time before that day.
|
746
658
|
# ========================================================================= #
|
747
659
|
def return_image(i)
|
660
|
+
if i.is_a? Array # Arrays should not be passed into this method.
|
661
|
+
e 'An array was passed to .return_image(). This is presently not allowed.'
|
662
|
+
e
|
663
|
+
pp caller()
|
664
|
+
e
|
665
|
+
raise Exception
|
666
|
+
end
|
748
667
|
result = ''.dup
|
749
668
|
i = rds(i)
|
750
669
|
if show_the_name_of_the_image_file? and !use_html_table?
|
751
670
|
result <<
|
752
671
|
'<h2 style="color:orange; font-style: italic; padding: 5px">'+i+'</h2>'+NBR
|
753
672
|
end
|
754
|
-
new_filename = File.basename(i).
|
673
|
+
new_filename = File.basename(i).
|
674
|
+
sub(/#{File.extname(i)}/, '')
|
755
675
|
id = 'drag_'+
|
756
676
|
Cyberweb.sanitize_this_id(new_filename)
|
757
677
|
# ======================================================================= #
|
@@ -760,7 +680,7 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
760
680
|
@internal_hash[:registered_ids] << id
|
761
681
|
result << '<img id="'+id+'" style="'+IMG_CSS_STYLE+'" src="'+i+'"'.dup
|
762
682
|
if use_HTML_table?
|
763
|
-
result << ' width="440"'
|
683
|
+
result << ' width="440"' unless use_no_size_value?
|
764
684
|
end
|
765
685
|
result << '>'+NBR
|
766
686
|
if use_jquery?
|
@@ -770,9 +690,17 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
770
690
|
});
|
771
691
|
</script>'
|
772
692
|
end
|
693
|
+
# puts "Debug: we return #{result}"
|
773
694
|
return result
|
774
695
|
end
|
775
696
|
|
697
|
+
# ========================================================================= #
|
698
|
+
# === use_no_size_value?
|
699
|
+
# ========================================================================= #
|
700
|
+
def use_no_size_value?
|
701
|
+
@internal_hash[:use_no_size_value]
|
702
|
+
end
|
703
|
+
|
776
704
|
# ========================================================================= #
|
777
705
|
# === build_up_the_HTML_string
|
778
706
|
#
|
@@ -788,6 +716,38 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
788
716
|
if use_jquery?
|
789
717
|
_ << return_jquery
|
790
718
|
end
|
719
|
+
# ======================================================================= #
|
720
|
+
# We have to determine whether the user wants to show a HTML-header,
|
721
|
+
# via a special <div> element. If so then this will be shown first.
|
722
|
+
# ======================================================================= #
|
723
|
+
if display_top_header?
|
724
|
+
_ << '
|
725
|
+
<style>
|
726
|
+
#rounded_corners {
|
727
|
+
border: 2px solid #73AD21;
|
728
|
+
border-radius: 22px;
|
729
|
+
padding: 18px;
|
730
|
+
width: 500px;
|
731
|
+
height: 100px;
|
732
|
+
margin-bottom: 1.5em;
|
733
|
+
margin-left: 8%;
|
734
|
+
width: 60%;
|
735
|
+
}
|
736
|
+
</style>
|
737
|
+
'
|
738
|
+
|
739
|
+
_ << '<div id="rounded_corners">'
|
740
|
+
_ << '<b style="color: gold">'+
|
741
|
+
array.size.to_s+' images</b> will be shown next. '
|
742
|
+
|
743
|
+
total_file_size = array.map {|entry| File.size(entry) }.sum
|
744
|
+
n_kb = (total_file_size / 1000.0).round(1)
|
745
|
+
n_mb = (n_kb / 1000.0).round(1)
|
746
|
+
|
747
|
+
_ << 'These images have a collective (total) file size of <b style="color: lightblue">'+
|
748
|
+
n_mb.to_s+' MB</b>.'
|
749
|
+
_ << '</div>'
|
750
|
+
end
|
791
751
|
if use_HTML_table_layout?
|
792
752
|
_ << "<table style=\"table-layout: fixed\">\n" # This will force equally spaced cells.
|
793
753
|
end
|
@@ -816,14 +776,22 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
816
776
|
_ << "</div>\n"
|
817
777
|
else
|
818
778
|
# ================================================================= #
|
819
|
-
# This clause will be entered if we use a HTML table layout.
|
779
|
+
# This clause will be entered if we use a HTML table layout. We
|
780
|
+
# will show the filesize, in kb; and since as of February 2023
|
781
|
+
# we will also show the width_x_height value.
|
820
782
|
# ================================================================= #
|
821
783
|
if use_HTML_table_layout?
|
784
|
+
width_of_the_image = ImageParadise.width_of_this_image?(this_entry).to_s
|
785
|
+
height_of_the_image = ImageParadise.height_of_this_image?(this_entry).to_s
|
822
786
|
filesize_string = ' <span style="color: lightblue">'+
|
823
787
|
'(<b>filesize</b>: <b>'+
|
824
788
|
(File.size(this_entry).to_f / 1000.0).floor(0).to_s+
|
825
|
-
'</b> <b>kb</b>
|
826
|
-
|
789
|
+
'</b> <b>kb</b>'.dup
|
790
|
+
if @internal_hash[:display_width_and_height_of_the_image]
|
791
|
+
filesize_string << ', <b>'+width_of_the_image+'x'+
|
792
|
+
height_of_the_image.to_s+'px</b>'
|
793
|
+
end
|
794
|
+
filesize_string << ')</span>'
|
827
795
|
# =============================================================== #
|
828
796
|
# Determine the raw description for the image, based on the
|
829
797
|
# filename itself.
|
@@ -865,6 +833,23 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
865
833
|
set_content_of_the_html_page(_)
|
866
834
|
end
|
867
835
|
|
836
|
+
# ========================================================================= #
|
837
|
+
# === the_three_main_actions
|
838
|
+
# ========================================================================= #
|
839
|
+
def the_three_main_actions
|
840
|
+
look_for_the_images
|
841
|
+
the_two_last_actions
|
842
|
+
end
|
843
|
+
|
844
|
+
# ========================================================================= #
|
845
|
+
# === the_two_last_actions
|
846
|
+
# ========================================================================= #
|
847
|
+
def the_two_last_actions
|
848
|
+
build_up_the_HTML_string
|
849
|
+
do_create_the_html_page
|
850
|
+
return save_into_this_local_file?
|
851
|
+
end
|
852
|
+
|
868
853
|
# ========================================================================= #
|
869
854
|
# === run
|
870
855
|
# ========================================================================= #
|
@@ -51,6 +51,13 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
51
51
|
super(namespace: NAMESPACE)
|
52
52
|
end
|
53
53
|
|
54
|
+
# ========================================================================= #
|
55
|
+
# === display_top_header?
|
56
|
+
# ========================================================================= #
|
57
|
+
def display_top_header?
|
58
|
+
@internal_hash[:display_top_header]
|
59
|
+
end
|
60
|
+
|
54
61
|
# ========================================================================= #
|
55
62
|
# === debug
|
56
63
|
# ========================================================================= #
|
@@ -59,4 +66,116 @@ class ImagesToHtml < ::Cyberweb::Base # === Cyberweb::ImagesToHtml
|
|
59
66
|
pp store_where?
|
60
67
|
end
|
61
68
|
|
69
|
+
# ========================================================================= #
|
70
|
+
# === menu (menu tag)
|
71
|
+
# ========================================================================= #
|
72
|
+
def menu(
|
73
|
+
i = commandline_arguments?
|
74
|
+
)
|
75
|
+
if i.is_a? Array
|
76
|
+
i.each {|entry| menu(entry) }
|
77
|
+
else
|
78
|
+
case i # case tag
|
79
|
+
# ===================================================================== #
|
80
|
+
# === cweb --display-top-header
|
81
|
+
# ===================================================================== #
|
82
|
+
when /^-?-?display(-|_| )?top(-|_| )?header$/i,
|
83
|
+
/^-?-?do(-|_| )?display(-|_| )?top(-|_| )?header$/i
|
84
|
+
@internal_hash[:display_top_header] = true
|
85
|
+
# ===================================================================== #
|
86
|
+
# === cweb --table=4 # 4 rows
|
87
|
+
#
|
88
|
+
# This entry point allows the user to set another number of rows
|
89
|
+
# for the generated HTML table.
|
90
|
+
# ===================================================================== #
|
91
|
+
when /^-?-?table=(.+)$/i
|
92
|
+
n_rows = $1.to_s.to_i
|
93
|
+
@internal_hash[:use_n_rows_for_the_html_table] = n_rows
|
94
|
+
do_use_HTML_table_layout
|
95
|
+
# ===================================================================== #
|
96
|
+
# === cweb --use-no-size-value
|
97
|
+
# ===================================================================== #
|
98
|
+
when /^-?-?use(-|_)?no(-|_)?size(-|_)?value$/i,
|
99
|
+
/^-?-?no(-|_)?special(-|_)?size$/i
|
100
|
+
@internal_hash[:use_no_size_value] = true
|
101
|
+
# ===================================================================== #
|
102
|
+
# === cweb --tablelayout
|
103
|
+
# ===================================================================== #
|
104
|
+
when /^-?-?tablelayout$/i,
|
105
|
+
/^-?-?table$/i,
|
106
|
+
/^-?-?html(-|_)?tables?$/i, # === cweb --html-table
|
107
|
+
/^-?-?use(-|_)?HTML(-|_)?tables?$/i,
|
108
|
+
/^-?-?use(-|_)?HTML$/i
|
109
|
+
do_use_HTML_table_layout
|
110
|
+
# ===================================================================== #
|
111
|
+
# === --pwd
|
112
|
+
# ===================================================================== #
|
113
|
+
when /^-?-?pwd$/i, # This means we store in the current directory.
|
114
|
+
:return_pwd
|
115
|
+
set_this_directory_contains_the_images(:pwd)
|
116
|
+
set_store_where(:infer)
|
117
|
+
clear_images
|
118
|
+
scan_for_images_in_this_directory
|
119
|
+
the_three_main_actions
|
120
|
+
exit
|
121
|
+
# ===================================================================== #
|
122
|
+
# === cweb --videos
|
123
|
+
#
|
124
|
+
# This entry point allows us to work on video-files only. If that
|
125
|
+
# is the case then the sorting-mode will be changed - aka to not
|
126
|
+
# sort at all.
|
127
|
+
# ===================================================================== #
|
128
|
+
when /^-?-?videos$/i,
|
129
|
+
/^-?-?videos(-|_)?only$/i
|
130
|
+
@work_on_video_files_only = true
|
131
|
+
@internal_hash[:sort_how] = :do_not_sort_at_all
|
132
|
+
# ===================================================================== #
|
133
|
+
# === cweb --do-not-traverse
|
134
|
+
#
|
135
|
+
# This will NOT check for any images in a subdirectory.
|
136
|
+
# ===================================================================== #
|
137
|
+
when /^-?-?do(-|_)?not(-|_)?traverse$/i,
|
138
|
+
/^-?-?simple$/i # cweb --simple
|
139
|
+
@do_traverse_into_subdirectories = false
|
140
|
+
# ===================================================================== #
|
141
|
+
# === --help
|
142
|
+
# ===================================================================== #
|
143
|
+
when /^-?-?help$/i
|
144
|
+
show_help
|
145
|
+
exit
|
146
|
+
# ===================================================================== #
|
147
|
+
# === ?
|
148
|
+
# ===================================================================== #
|
149
|
+
when '?'
|
150
|
+
opnn; e 'The file in question will be:'
|
151
|
+
e
|
152
|
+
e " #{sfile(store_where?)}"
|
153
|
+
e
|
154
|
+
exit
|
155
|
+
# ===================================================================== #
|
156
|
+
# === --njoy
|
157
|
+
# ===================================================================== #
|
158
|
+
when /-?-?njoy$/i,
|
159
|
+
:njoy
|
160
|
+
e 'We will use the excellent images from a special directory.'
|
161
|
+
scan_there :njoy
|
162
|
+
else
|
163
|
+
if i.is_a?(String) and File.directory?(i)
|
164
|
+
# ================================================================= #
|
165
|
+
# (1) Assign a new main directory.
|
166
|
+
# ================================================================= #
|
167
|
+
set_this_directory_contains_all_images(i)
|
168
|
+
# ================================================================= #
|
169
|
+
# (2) Infer a new name for the locally saved file.
|
170
|
+
# ================================================================= #
|
171
|
+
set_save_into_this_local_file(
|
172
|
+
:use_the_directory_containing_all_images_as_base
|
173
|
+
)
|
174
|
+
elsif i.start_with?('--') # Report that this commandline argument is not registered.
|
175
|
+
report_not_registered_commandline_argument(i)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
62
181
|
end; end
|
@@ -9,12 +9,12 @@ module Cyberweb
|
|
9
9
|
# ========================================================================= #
|
10
10
|
# === VERSION
|
11
11
|
# ========================================================================= #
|
12
|
-
VERSION = '0.
|
12
|
+
VERSION = '0.9.31'
|
13
13
|
|
14
14
|
# ========================================================================= #
|
15
15
|
# === LAST_UPDATE
|
16
16
|
# ========================================================================= #
|
17
|
-
LAST_UPDATE = '
|
17
|
+
LAST_UPDATE = '18.03.2023'
|
18
18
|
|
19
19
|
# ========================================================================= #
|
20
20
|
# === URL_TO_THE_DOCUMENTATION
|
@@ -12,7 +12,7 @@ module WebImages
|
|
12
12
|
|
13
13
|
require 'yaml'
|
14
14
|
# ========================================================================= #
|
15
|
-
# bl $
|
15
|
+
# bl $RUBY_CYBERWEB/yaml/web_images.yml
|
16
16
|
# ========================================================================= #
|
17
17
|
_ = FILE_WEB_IMAGES
|
18
18
|
if File.exist? _
|
@@ -20,15 +20,16 @@ module WebImages
|
|
20
20
|
# ========================================================================= #
|
21
21
|
# === Cyberweb::WebImages::IMG_DIR
|
22
22
|
#
|
23
|
-
# This constant points to the main image directory. In September 2020
|
24
|
-
# tried to bundle the images within the Cyberweb project, but I ran
|
23
|
+
# This constant points to the main image directory. In September 2020
|
24
|
+
# I tried to bundle the images within the Cyberweb project, but I ran
|
25
25
|
# into problems so I had to revert this for now.
|
26
26
|
#
|
27
27
|
# At a later time I may re-evaluate this decision. The next line of code
|
28
28
|
# will be retained as a reminder.
|
29
29
|
# ========================================================================= #
|
30
30
|
# IMG_DIR = "#{::Cyberweb.project_base_dir?}images/real/"
|
31
|
-
IMG_DIR = 'STD/'
|
31
|
+
# IMG_DIR = 'STD/'
|
32
|
+
IMG_DIR = "#{::Cyberweb.project_base_dir?}images/standard_images/"
|
32
33
|
|
33
34
|
# ========================================================================= #
|
34
35
|
# === Cyberweb::WebImages.map_symbol_to_image_location
|
@@ -867,7 +868,8 @@ module WebImages
|
|
867
868
|
# ======================================================================= #
|
868
869
|
# === :minibaum1
|
869
870
|
# ======================================================================= #
|
870
|
-
when :minibaum1
|
871
|
+
when :minibaum1,
|
872
|
+
:baum1
|
871
873
|
_ = "#{IMG_DIR}MINI_BAUM1.png"
|
872
874
|
# ======================================================================= #
|
873
875
|
# === :minibaum2
|
@@ -1067,7 +1069,11 @@ module WebImages
|
|
1067
1069
|
_ = "#{IMG_DIR}PFEIL10.png"
|
1068
1070
|
when :pfeil11
|
1069
1071
|
_ = "#{IMG_DIR}PFEIL11.png"
|
1070
|
-
|
1072
|
+
# ======================================================================= #
|
1073
|
+
# === :pfeil12
|
1074
|
+
# ======================================================================= #
|
1075
|
+
when :pfeil12,
|
1076
|
+
:explanation
|
1071
1077
|
_ = "#{IMG_DIR}PFEIL12.png"
|
1072
1078
|
# ======================================================================= #
|
1073
1079
|
# === :pfeil_links_oben
|
@@ -1581,6 +1587,11 @@ module WebImages
|
|
1581
1587
|
when :webserver
|
1582
1588
|
_ = "#{IMG_DIR}WEBSERVER.png"
|
1583
1589
|
# ======================================================================= #
|
1590
|
+
# === :windows_key
|
1591
|
+
# ======================================================================= #
|
1592
|
+
when :windows_key
|
1593
|
+
_ = "#{IMG_DIR}windows_key.png"
|
1594
|
+
# ======================================================================= #
|
1584
1595
|
# === :wings
|
1585
1596
|
# ======================================================================= #
|
1586
1597
|
when :wings
|