1.6.3 • Published 2 years ago

songphracharoen v1.6.3

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

ทรงพระเจริญ.js (SongPhraCharoen.js)

เพิ่มหน้า "ทรงพระเจริญ" เข้าไปในเว็บคุณภายใน 1 นาที โดยไม่ต้องเขียนโค้ดเพิ่ม ลดเวลาพัฒนาเว็บของนักพัฒนารัฐบาลให้ไปทำอะไรที่มีประโยชน์กว่านี้ให้ประชาชน จะได้คุ้มภาษีหน่อย

Easily add Song Phra Charoen splash screen and save thousands of government web developer's time to do more useful things for the people.

sample image

Demo

See the demo in action at heypoom.github.io/songphracharoen.js. The demo uses the latest version of songphracharoen.js.

Quick Start

Add the following script tag to use SongPhraCharoen.js

<script src="//www.unpkg.com/songphracharoen/dist/index.js"></script>

Install via NPM

You can also install the package using npm or yarn if needed.

npm install songphracharoen
yarn add songphracharoen

Then, import the package in your JavaScript file.

import 'songphracharoen'

How to customize?

Refer to the exported RoyalSplashScreenOptions type for the up-to-date configuration options.

For example, you can customize whether to enable book signing, the language, and the themes using the below configuration.

<script>
  window.RoyalSplashScreenOptions = {
    // Enables the book signing button (ลงนามถวายพระพร)
    signing: true,

    // Uses the "blue" theme instead.
    theme: 'sky',

    // Use the english language as the default language.
    language: 'en',
  }
</script>

demo of usage with simple customization

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago