Skip to content

mobven/donate.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DONATE.JS

Donate.js WEB SDK to show donation alerts easily in your website.

Examples

UI UI

Installation

npm install

Development mode

npm run dev

Production mode

You can include the javascript and css file created in the dist folder in your project.

npm run build

Usage

Default initializer

DONATE.JS can be initialized through, which has default title and message those are presented in the screenshot above. theme : dark or light position : center or top

  <link rel="stylesheet" href=".donate.min.css" />
  <script src="./donate.min.js"></script>
    <script>
    const donate = new Donate({
      position:"center",
      theme:"light"
      title:"Sample Title",
      highLight:"Sample HighLight Title"
      links: [
          {
            text: "Örnek Bağış Linki",
            url: "https://www.google.com",
          },
        ],
      message:"Sample Message",
    })
    donate.init();
    </script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published