Skip to content

Code Snippets

Useful code to copy and paste
  • ALL
  • Bootstrap
  • C#
  • CSS
  • Drupal 8-9
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • Raspbian
  • Terminal
  • Unity
  • Website Templates
  • WordPress

Forcing INPUT text to lowercase

May 16, 2018 Leonardo Signorelli

On every keystroke, a JavaScript event is triggered to convert the value to lowercase. <input type=”text” onkeyup=”this.value = this.value.toLowerCase();”>

Continue Reading →

Posted in: Drupal 8-9, HTML, JavaScript, WordPress Filed under: drupal 8, html, javascript, wordpress

Forcing INPUT text to uppercase

Leonardo Signorelli

On every keystroke, a JavaScript event is triggered to convert the value to uppercase. <input type=”text” onkeyup=”this.value = this.value.toUpperCase();”>

Continue Reading →

Posted in: Drupal 8-9, HTML, JavaScript, WordPress Filed under: drupal 8, html, javascript, wordpress

Visualizing Influence Maps in C#

May 1, 2018 Leonardo Signorelli

The code below can be used to generate images so that you can physically see what your map looks like.…

Continue Reading →

Posted in: C#, Uncategorized, Unity

Website Redirects

Leonardo Signorelli

HTML redirects Perhaps the simplest way to redirect to another URL is with the Meta Refresh tag. We can place…

Continue Reading →

Posted in: Drupal 8-9, HTML, JavaScript, PHP, WordPress

Concatenate variables in Debug.Log

April 25, 2018 Leonardo Signorelli

Concatenate in one string: Debug.Log(“Value1: ” + value1variable + ” Value2: ” + value2variable ); Use string.Format if you want to use…

Continue Reading →

Posted in: C#, Unity Filed under: C#, Concatenate, Unity

Post navigation

Page 4 of 4
← Previous 1 … 3 4
  • ALL
  • Bootstrap
  • C#
  • CSS
  • Drupal 8-9
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • Raspbian
  • Terminal
  • Unity
  • Website Templates
  • WordPress
Copyright © 2022 Code Snippets — Escapade WordPress theme by GoDaddy