Code and unicorns
Code and unicorns
Home
Posts
Projects
Writing
Contact
About me
Light
Dark
Automatic
function
Format € money snippet
The following function transforms the inputed numeric value for example var sum = 50.3 sum.formatMoney(2,’,’ , ‘.’) + “€” and the output of this function is then 50,30€. As you notice it is quite simple to change it in $ or anything you desire.
Matjaz Trcek
Last updated on Jan 9, 2022
1 min read
The Code
Correct width in all browsers (JS snippet)
This is a short JS snippet which is quite hard to find but it works like a charm. Basically with help of this JS snippet you get your width of the page correctly
Matjaz Trcek
Last updated on Jan 9, 2022
2 min read
The Code
3 Data validation methods in javascript
Function is isValideDate can be used for example on a string data.isValideDate() to confirm that date is in correct format like these 2 for example: 04-11-2012 4-11-12 The isNumeric function is used same way with data.
Matjaz Trcek
Last updated on Jan 9, 2022
1 min read
The Code
Cite
×