Skip to content
View kevinXmichael's full-sized avatar
πŸ‡©πŸ‡ͺ
πŸ‡©πŸ‡ͺ

Block or report kevinXmichael

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
kevinXmichael/README.md

πŸ‘‹ Kevin Michael Schott

πŸ§‘β€πŸ’» Freelancer in IT

πŸ‡©πŸ‡ͺ Based in Germany

🌍 Remote, agile, async work

πŸ‘‰ https://www.kms695.de/


Pinned Loading

  1. Easy unique ID generator to use as a... Easy unique ID generator to use as a module
    1
    let uniqueIDs = 0
    2
    let uniqueIDsLength = 20
    3
    
                  
    4
    export function id(name = '') {
    5
        try {
  2. Truncate text but don't break words Truncate text but don't break words
    1
    export const MAX_STR_LEN = 80
    2
    
                  
    3
    /** This will split a sentence to a length of MAX_STR_LEN while not cutting through words. */
    4
    export function truncate(str = "", length = MAX_STR_LEN) {
    5
      str = str.trim()
  3. Update viewport units to inner viewp... Update viewport units to inner viewport everytime the screensize changes
    1
    function setInnerViewport() {
    2
      const vh = window.innerHeight * 0.01
    3
      const vw = window.innerWidth * 0.01
    4
      document.documentElement.style.setProperty("--vh", `${vh}px`)
    5
      document.documentElement.style.setProperty("--vw", `${vw}px`)