What do you want to save?
Add Code snippet
New code examples
-
-
Javascript 2022-03-12 20:20:10
match height jquery
var matchHeight = function(classe, perLine) { var peeps = $(String(classe)+":visible").css('height','auto').get(); var line = isNaN(perLine) ? peeps.length : parseInt(perLine); for(var i = 0;i<peeps.length;i=i+line) { var height = 0... Add solution -
Javascript 2022-03-11 20:00:13
hex to rgba in js
hexToRGB(hex: string, alpha: string) { const r = parseInt(hex.slice(1, 3), 16); const g = parseInt(hex.slice(3, 5), 16); const b = parseInt(hex.slice(5, 7), 16); if (alpha) { return `rgba(${r}, ${g}, ${b}, ${alpha})`; } else { return `... Add solution -
Javascript 2022-03-10 21:00:04
tofixed is not a function javascript
// toFixed only exists on numbers. // Trying to use it on another data type like strings will not work // Example let num = 1.23456; num.toFixed(2); // 1.23 num = String(num); num.toFixed(2); // Uncaught TypeError: num.toFixed is not a function // Sol... Add solution -
Javascript 2022-03-02 09:30:05
javascript fade color
<div id="x" style="background-color:rgb(255,255,105)">hello world</div> <script type="text/javascript"> var gEvent=setInterval("toWhite();", 100); function toWhite(){ var obj=document.getElemen... Add solution
Best helpers
Chris
+5
Zbw
+5
Hey
+5
Pro24
+5
Ecir Hana
+5
Azeem
+5
Nick Heidke
+5
Eestudent
+5
Dune
+5
Sam Figueroa
+5
Ryan Turner
+5
Tnff
+5
Pukku
+5
Hx1997
+5