GithubHelp home page GithubHelp logo

maz01001 / maz01001.github.io Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 6.93 MB

my git website - small coding projects

Home Page: https://maz01001.github.io/

License: MIT License

HTML 100.00%
physics p5js tools games single-page-applications animations client-only javascript html5 css3

maz01001.github.io's Introduction

MAZ01001.github.io

my git website with random JS/CSS/HTML single-pages (can be used offline) made for pc/chrome browser


view the live webpage

  • A simple word guessing game
  • no graphics (no actual hangman)
  • guessing is case insensitive
  • full Unicode support (allows for special symbols and Emojis)
  • when clicking on "new round" when over 20 seconds of progress, it shows a confirm dialog (YES/NO)
  • customization (settings)
    • custom alphabet
      • keys can be set to always show and not be on the "keyboard" (useful for spaces and punctuation)
    • custom word list
    • set maximum allowed fails (or disable loosing with -1)
    • set a percentage for how many letters of the word are uncovered at the start of the round (0% to 99%)
    • clear stored settings and reload page (shows a confirm dialog (YES/NO))
  • current settings and progress is stored in browser local storage (reload does not start a new round or reset settings)
  • export current settings and progress to a JSON file
  • import settings and progress from saved JSON file
    • shows data preview of selected save file
      • only shows time and fails of progress preview
    • choose to override, ignore, or combine current alphabet / word list with the imported
    • choose to override or ignore imported rng-unhide / max-fails value
    • choose to continue with saved progress or start a new round
      • can only be continues if alphabet, word list, and max fails are also imported

Scroll TOP

view the live webpage

Scroll TOP

view the live webpage

  • almost like the real thing ft. loading screen
  • create enigma for encoding
    • read from file
    • configure
      • give custom alphabet (Unicode supported)
      • set number of weels (signal only goes one way)
      • set number of plugs (auto maximum)
  • import enigma for decoding
    • read from file
    • mirror encoding enigma
  • set custom turning number
  • auto "turn" on every character that is encoded, one after another

Scroll TOP

view the live webpage

Scroll TOP

view the live webpage

Scroll TOP

view the live webpage

Scroll TOP

view the live webpage

  • dice for random numbers
  • choose min/max number of eyes (0-9)
  • left-click on dice for stats
  • uses Math.random() for random numbers - colors button differently for each new number ('cause sometimes the same number is generated multiple times in a row)

Scroll TOP

view the live webpage

  • a ball that moves diagonally across the screen and changes color
  • using only javascript (visuals via HTML5 canvas)
  • see below table for a lot of customizability via URL parameters

Note

If you can't see anything, your device might not support OKLCH colors.
To fix this, use the URL parameter colorRGB for RGB colors.

[Ball Screensaver] available URL parameters

URL parameters can be in any order starting with ? after the URL, then parameters in the format PARAMETER=VALUE (empty value: PARAMETER / PARAMETER=) with & between each parameter (values must be encoded URI components)

Click to hide table
parameter description default value possible values
bgColor set the background color of the page (can be transparent)
or a rainbow color animation
with the speed in seconds or milliseconds as parameter
#222 (dark grey)
(rainbow default speed is 6s)
CSS color like black or transparent
or rainbow or rainbow([+|-]speed[s|ms])
(speed is a finite integer)
bgRGB if set, uses HSL instead of OKLCH color model for bgColor NO empty or 1 for YES and 0 or else for NO
keepCanvas if set, doesn't clear the canvas every frame NO empty or 1 for YES and 0 or else for NO
fps shows frames per second in the top left corner NO empty or 1 for YES and 0 or else for NO
seed set the seed for RNG minute timestamp in hex anything (even empty)
ballSize set the ball size (%) relative to the smaller window size 0.2 decimal number between 0 and 1 (inclusive)
ballSpeed set the speed of the ball in pixels per second 240 decimal number
hideOutline if set, hides the black outline around ball/image NO empty or 1 for YES and 0 or else for NO
colorSpeed set the speed of the color shift in degrees per second 60 decimal number
colorRGB if set, uses HSL instead of OKLCH color model for the ball NO empty or 1 for YES and 0 or else for NO
img put an image over the ball
(if the image doesn't replace the ball, it gets cut to fit)
none HTML image source (URL)
imgPixelArt if set, enables better scaling filter for pixel art NO empty or 1 for YES and 0 or else for NO
imgOverlay if set, overlays the img instead of replacing the ball NO empty or 1 for YES and 0 or else for NO
txt (single line) text to put over the ball/image none single line text
txtHeight set the txt size (height) relative to the size of the ball
with no ball/image it is relative to the smaller window size
0.4 positive decimal number
txtFill txt fill color (CSS color, canvas gradient/pattern) #0F0 (green) CSS color / canvas gradient or pattern
txtLine txt outline color (CSS color, canvas gradient/pattern) #000 (black) CSS color / canvas gradient or pattern
txtLineWidth set the width of txt outline relative to txtHeight 1 positive decimal number
txtFont set the font of the txt (CSS font family) "Times New Roman", Times, serif CSS font-family, like sans-serif
txtWeight set the boldness of the txt normal CSS font-weight, like bold or 1 to 1000 (inclusive)
txtSmallCaps if set, uses small-caps for the txt
(scaled down uppercase for lowercase letters)
NO empty or 1 for YES and 0 or else for NO
txtStyle set the font style of the txt (italic/oblique) normal CSS font-style, like italic or oblique
txtStretch set the horizontal stretch of the txt normal CSS font-stretch, but only keywords and not percentages

Scroll UP | TOP

view the live webpage

  • vector objects
  • default points to mouse
  • use console
    • set variables
    • set custom function for render each vector
  • use buttons
    • scroll to make arrows larger
    • left-click/hold to hide cross with coordinates
  • shows fps counter
  • made with P5.js

Scroll TOP

view the live webpage

  • use sliders(show sliders button on the right) to set the coefficients
  • scroll or use sliders(top & left) to set scale (zoom)
  • render own polynomial (check the checkbox top-left and enter your coefficients)
  • shows fps counter

Scroll TOP

view the live webpage

  • example of a 3d-card effect with HTML/JS/CSS

Scroll TOP

view the live webpage

  • example of a custom context menu using HTML/JS/CSS

Scroll TOP

view the live webpage

  • example for detecting touch (not the best detection)

Scroll TOP

view the live webpage

  • choose the number of rows to generate

Scroll TOP

view the live webpage

Scroll TOP

maz01001.github.io's People

Contributors

maz01001 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.