1.0.4 • Published 2 years ago

sot-library-js v1.0.4

Weekly downloads
5
License
ISC
Repository
-
Last release
2 years ago

SOT Library JS

Description

This is a SOT package which contains the most used functions among SOT pages. You can see the available functions in here: SOT Library Example APP.

Including SOT Library JS

Below are some of the most common ways to include the JS library.

CDN

You can add the library just using the following link:

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sot-library-js@1.0.0"></script>

you can import as one of your JS files at the end of the body:

<script type="text/javascript" src="js/framerida.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sot-library-js@1.0.0"></script>
<script type="text/javascript" src="js/runner.js"></script>

Webpack

You can install it just like another npm package

npm install sot-library-js

and then importing the library in your project:

import 'sot-library-js/bundle.js';

Download

You can also just download the JS file and import it to your project:

<script type="text/javascript" src="js/framerida.js"></script>
<script type="text/javascript" src="js/SOT-JS-Lirary.js"></script>
<script type="text/javascript" src="js/runner.js"></script>

Ways To Use It

you can change the version just replacing the number after the @ for example:

https://cdn.jsdelivr.net/npm/sot-library-css@1.0.4/main.css

In your project you will have a global object with all the utils functions so you can use it for example:

SOT.browser.isMobileDevice()

or

SOT.misc.googleAnalyticsTracking("Subscribe Page")

You can check the functions that you can use in here SOT Library Example APP.

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

4 years ago

1.0.0

4 years ago