Head over to developer.facebook.com and create an App
On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.5
| <select name="nationality"> | |
| <option value="">-- select one --</option> | |
| <option value="afghan">Afghan</option> | |
| <option value="albanian">Albanian</option> | |
| <option value="algerian">Algerian</option> | |
| <option value="american">American</option> | |
| <option value="andorran">Andorran</option> | |
| <option value="angolan">Angolan</option> | |
| <option value="antiguans">Antiguans</option> | |
| <option value="argentinean">Argentinean</option> |
| <?php | |
| $challenge = $_REQUEST['hub_challenge']; | |
| $verify_token = $_REQUEST['hub_verify_token']; | |
| // Set this Verify Token Value on your Facebook App | |
| if ($verify_token === 'testtoken') { | |
| echo $challenge; | |
| } | |
| $input = json_decode(file_get_contents('php://input'), true); |
| <?php | |
| namespace Mauris\Utility; | |
| class NricUtility | |
| { | |
| public static function validate($nric) | |
| { | |
| $nric = strtoupper($nric); | |
| if (strlen($nric) == 9) { | |
| $hash = self::checksum(substr($nric, 0, 8)); |
Head over to developer.facebook.com and create an App
On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.5
| <span> | |
| <select name="month"> | |
| <option value="January">January</option> | |
| <option value="February">February</option> | |
| <option value="March">March</option> | |
| <option value="April">April</option> | |
| <option value="May">May</option> | |
| <option value="June">June</option> | |
| <option value="July">July</option> | |
| <option value="August">August</option> |
| <select name="year"> | |
| <option value="">Year</option> | |
| <?php for ($year = date('Y'); $year > date('Y')-100; $year--) { ?> | |
| <option value="<?php echo $year; ?>"><?php echo $year; ?></option> | |
| <?php } ?> | |
| </select> | |
| <select name="month"> | |
| <option value="">Month</option> | |
| <?php for ($month = 1; $month <= 12; $month++) { ?> | |
| <option value="<?php echo strlen($month)==1 ? '0'.$month : $month; ?>"><?php echo strlen($month)==1 ? '0'.$month : $month; ?></option> |
A basic tree layout with nodes that are aware of the sizes of other nodes. Also supports zoom functionality. I originally created this to answer my own Stackoverflow question on jsFiddle and am simply moving it over to Codepen.
A Pen by Augustus Yuan on CodePen.
| <meta charset="UTF-8"> | |
| <style> | |
| .node circle { | |
| fill: #fff; | |
| stroke: steelblue; | |
| stroke-width: 3px; | |
| } |
Set of D3 hierarchy layouts including: tree, cluster, treemap, pack, partition and sunburst. More info about layouts: http://d3indepth.com/layouts/
A Pen by Karol Stopyra on CodePen.