1.0.5 • Published 10 months ago

pal.video v1.0.5

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

npm.io

Pal.video | web plugin

Your new in app friend. Integrate video story within your app.

  • Get feedbacks in your app using the power of videos.
  • Onboard your users

Installation with node

npm i pal.video

Page npm de pal.video

Add pal style file Open your index.html file and add this style file between <head> and </head> like this

<head>
    ...
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pal.video/build/style.css" type="text/css" />
</head>

Installation using html only

Open your index.html file and add these style and js files between <head> and </head> like this :

<head>
    ...
    <script src="https://cdn.jsdelivr.net/npm/pal.video/build/pal.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pal.video/build/style.css" type="text/css" />
</head>

Send an event

Inside the body of your page.

1 - Setup the pal instance

<script type="text/javascript">
    var devApiKey = "eyJ...";
    var prodApiKey = "eyJ0...";

    var pal = pal.Pal.createInstance({
        apiKey: prodApiKey
    });
</script>

2 - Send the Pal event on every page

<script type="text/javascript">
    var pal = pal.Pal.getInstance()
    pal.initialize().then(() => {
        pal.logCurrentScreenAuto();
    });
</script>

If you prefer sending the event with a manual path please use this :

logCurrentScreen('/mypage/'); // don't include your domain name here. Only the path 

Documentation

📙 Check our complete documentation here

Compile

npm run compile-browser

Example run

cd example/webpage 
npm install
npm start
1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago