Category Archives: Javascript

Force https (Laravel)

Provider (AppServiceProvider)

HTML:

 

Ajax for JSON

 

C3 Chart

Official:

https://c3js.org/samples/timeseries.html

D3.js (Required)

https://d3js.org/

HTML Example:

Javascript Example:

PHP example:

 

Enter to submit a form (or trigger a button)

 

serialize form

 

Reload / Refresh page when user click back button on browser

Reference:

Useful Javascript Functions

 

身份證檢查

Javascript:

 

身份證驗證