The Functionis framework is a lightweight JavaScript library designed to simplify and enhance web development by providing a set of convenient functions for common tasks. It includes features such as generating random elements from arrays, handling delaye
npm install functionis
Features
1. Random Element Selection:
const myArray = [1, 2, 3, 4, 5];
const randomElement = functionis.getRandomElement(myArray);
console.log('Random Element:', randomElement);
2. Delayed and Repeated Code Execution:
functionis.play(1000, 5, function() {
console.log('Executing callback with delay and repetition');
});
3. Styled Authentication Input Fields:
functionis.auth('auth-input');
4. Comments:
This is an error comment
This is a warning comment
This is an info comment
This is a undefined comment
5. Variable Value Display:
6. Double-Click and Triple-Click Handling:
functionis.onDoubleClick(document.getElementById('doubleClickExample'), function() {
console.log('Double-clicked!');
});
functionis.onTripleClick(document.getElementById('tripleClickExample'), function() {
console.log('Triple-clicked!');
});
7. Math Expression Evaluation:
8. calculateTime:
const timeDifference = functionis.calculateTime('11-35-10');
console.log(Time difference: ${timeDifference.hours} hours, ${timeDifference.minutes} minutes, ${timeDifference.seconds} seconds);`