1.4.4 • Published 1 year ago

smyld-lib-common v1.4.4

Weekly downloads
22
License
MIT
Repository
github
Last release
1 year ago

npm.io License npm.io

SMYLD Common Library

is a library that contains some core APIs that helps the SPA developer, this library is a work in progress, it contains the following functionalities so far:

1 - Logging API:

logging API facilitates the work on SPA, printing syntax highlighted messages with date and time stamp.

Usage

The library is available on NPM, as any standard JS/TS library, it can be easily installed via the following command:

npm install smyld-lib-common

To make it easy and straight forward, there is an extra instance of the logger that is created for you:

import MainLogger from 'smyld-lib-common';



    MainLogger.info("This is a smlyd library generated Info Message");
    MainLogger.debug("This is a smlyd library generated Debug Message");
    MainLogger.warn("This is a smlyd library generated Warning Message");
    MainLogger.error("This is a smlyd library generated Error Message");

The output of the above code can be seen on the console of the browser as shown below:

Library Commong Logging API usage - from smyld.org site

2 - Visibility API:

HTML elements can define a special behavior upon being visible in the page. Using these APIs will add a nice affect to the web page design.

Usage

The library can be referenced inside any page as a usual JavaScript library:

<script src='https://cdn.jsdelivr.net/npm/smyld-lib-common@1.0.35/main.min.js'></script>

In your code, you need to define an attribute with the name shown inside the div element you want to animate when it is visible, this attribute should hold the css class name(s) that will be applied to your element once it is visible on the screen.

 <div id="part1" class="testDiv" style="top:1600px;left:340px;" shown="myCssWhenVisible">One</div>

Below is a sample of animation applied to the elements once they will be visible in the screen, the animation will take place only once in the opened page cycle, if the user would love to review the animation, he can refresh the page.

Library Commong Logging API usage - from smyld.org site

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.94

2 years ago

1.3.97

2 years ago

1.3.98

2 years ago

1.3.95

2 years ago

1.3.96

2 years ago

1.3.99

2 years ago

1.3.90

3 years ago

1.3.93

3 years ago

1.3.91

3 years ago

1.3.92

3 years ago

1.3.87

3 years ago

1.3.88

3 years ago

1.3.89

3 years ago

1.0.87

3 years ago

1.0.84

3 years ago

1.0.83

3 years ago

1.0.86

3 years ago

1.0.85

3 years ago

1.0.62

3 years ago

1.0.61

3 years ago

1.0.66

3 years ago

1.0.65

3 years ago

1.0.64

3 years ago

1.0.63

3 years ago

1.0.69

3 years ago

1.0.68

3 years ago

1.0.67

3 years ago

1.0.73

3 years ago

1.0.72

3 years ago

1.0.71

3 years ago

1.0.70

3 years ago

1.0.77

3 years ago

1.0.76

3 years ago

1.0.75

3 years ago

1.0.74

3 years ago

1.0.79

3 years ago

1.0.78

3 years ago

1.0.80

3 years ago

1.0.82

3 years ago

1.0.81

3 years ago

1.0.60

3 years ago

1.0.48

3 years ago

1.0.47

3 years ago

1.0.49

3 years ago

1.0.51

3 years ago

1.0.50

3 years ago

1.0.55

3 years ago

1.0.54

3 years ago

1.0.53

3 years ago

1.0.52

3 years ago

1.0.59

3 years ago

1.0.58

3 years ago

1.0.57

3 years ago

1.0.56

3 years ago

1.0.46

4 years ago

1.0.45

4 years ago

1.0.44

4 years ago

1.0.39

4 years ago

1.0.38

4 years ago

1.0.40

4 years ago

1.0.43

4 years ago

1.0.42

4 years ago

1.0.41

4 years ago

1.0.37

4 years ago

1.0.36

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.33

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.35

4 years ago

1.0.34

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.19

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.14

4 years ago

1.0.11

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago