Category: JavaScript
How to fix VSC ESLint error “The file must be included in at least one of the projects provided”?
When you’re using the Visual Studio Code’s ESLint plugin (with TypeScript), you might get this error in the first character of the document.
Display element from the set using probability (Vanilla JS)
This is simple Vanilla JS script that will allow you to show one element from the set using basic percentage probability.
Cool vaporizing notification for form inputs
Read more and check how cool your forms might be! Click multiple times and ratatatatatatatatata…
JS Glitcher
I’ve created simple JS glitcher based on jQuery for fun. It has framework like structure so you can easily extend it’s effects. Check JSFiddle for demo or Gist for raw code.
Differences between character counting in PHP and Javascript
I’ve recently codded my own validation rules for forms. I’m checking length of a string on a client side and also on a server side (obviously it’s a good practice). After my script went on a production, users started to complain about validation errors (even if data in a form was passed proper). This is […]
Javascript inline function parser
Since the dawn of time I’ve needed method to put a Javascript code into HTML node in a nice manner. Finally it’s here! I shall present to you inline function parser for JS callbacks…
Horizontal color fill loop for a preloader
Here’s a method to create horizontal color fill preloader using svg, js and a bit of CSS. Enjoy: https://jsfiddle.net/fedek6/nd6huxkr/1/
How to add Bower component when it’s not in the repository?
Sometimes component that you want to use in your project isn’t available in Bower repo. There is a way to install it, even in very specified version. Go to project’s Github, in my case it’s here. Copy URL from the browser, and paste it somewhere. Now go to relases and click commit id that you’re interested […]
How to change mass edit limit in Vtiger 6.5
Sometimes you need to make mass operation on houndreds of records in Vtiger. Well in this case it’s 500 ones maximum… Well this is kinda stupid because it can surely handle up to thousands. How do I know? I’ve hacked the code and successfully converted 2000 leads 🙂 Well it takes some time but it […]
jQuery UI dialog with form fields passing data into single input
I’ve recently ran into this scenario: there is a single input field with dimensions in a height x width x depth format. What we can do to force/guide user to use propper format?