functionis

1.4.9 • Public • Published

Functionis Framework


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.

Include the functionis.js script in your HTML: <script src="./node_modules/functionis/functionist.js"></script>

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:

<comment type="error">This is an error comment</comment> <comment type="warning">This is a warning comment</comment> <comment type="info">This is an info comment</comment> <comment>This is a undefined comment</comment>


5. Variable Value Display:

<display get="myVariable">


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!'); });

  1. Math Expression Evaluation:

<math>1 + 5</math> <math>5 * 10</math> <math>20 + (23 + 1)</math>

  1. calculateTime:

const timeDifference = functionis.calculateTime('11-35-10'); console.log(`Time difference: ${timeDifference.hours} hours, ${timeDifference.minutes} minutes, ${timeDifference.seconds} seconds`);

Readme

Keywords

Package Sidebar

Install

npm i functionis

Weekly Downloads

4

Version

1.4.9

License

ISC

Unpacked Size

10.2 kB

Total Files

3

Last publish

Collaborators

  • artoperator