Schedule appointment
</p><script> window.addEventListener('DOMContentLoaded', function() { // Get reference to plugin iframe contentWindow var f = document.getElementById('pluginFrame').contentWindow; // Setup plugin configuration data. // (Note: your center will receive an apiKey and regKey(s) upon registering with // the eKYROS Call Center in CenterPiece). // // Parameters: // type: Message type should always be 'ekyros' // apiKey: Identifies Call Center // regKeys: Array that identifies 1 or more registered office locations. // themeColor: Optional. Specify a primary color used by the plug-in to match your // site's theme. Default is color 'blue'. Accepts hex value or named color. // waitTimeInMinutes: Optional. Specify duration (in minutes) before the user can create // another appointment. Default is 30 minutes. var data = { "type": 'ekyros', "apiKey": '41301EE0-560C-45B3-BC89-CD32C1B2EE36', "regKeys": ['CB124A4C-7679-4F96-84C9-87CEA27F8891','066B9A8A-872C-4E42-8F0A-09F6551B209B','37431EB3-CE82-4FA6-8587-BF1E1A27C8AA'], "themeColor": '#86A149', "waitTimeInMinutes": 30 }; // Setup message listener to receive messages from the plugin. window.addEventListener("message", function(e){ // Optional. Handle callback message when someone books an appointment if (e.data.type == 'ekyros') { // Do something like redirect to google analytics page etc... window.location.href='https://my-site/my-google-analytics-page.html'; } // Required! Handle initialization. // Param1: Configuration data. // Param2: Secuity requirement. Must be origin (domain) used in iframe SRC // attribute. if (e.data.type == 'ekyros-init') { f.postMessage(data, "https://pluslinkplugin.ekyros.com"); } }); }); </script>