diff --git a/static/config-check.js b/static/config-check.js index 060b7f4..d130164 100644 --- a/static/config-check.js +++ b/static/config-check.js @@ -3,7 +3,6 @@ $(function() { configureField(response, 'TWILIO_ACCOUNT_SID','twilioAccountSID',false); configureField(response, 'TWILIO_API_KEY','twilioAPIKey',false); configureField(response, 'TWILIO_API_SECRET','twilioAPISecret',true); - configureField(response, 'TWILIO_CONFIGURATION_SID','twilioConfigurationSID',false); configureField(response, 'TWILIO_NOTIFICATION_SERVICE_SID','twilioNotificationServiceSID',false); configureField(response, 'TWILIO_CHAT_SERVICE_SID','twilioChatServiceSID',false); configureField(response, 'TWILIO_SYNC_SERVICE_SID','twilioSyncServiceSID',false); @@ -12,39 +11,33 @@ $(function() { if (response.TWILIO_ACCOUNT_SID && response.TWILIO_ACCOUNT_SID != '' && response.TWILIO_API_KEY && response.TWILIO_API_KEY != '' && response.TWILIO_API_SECRET) { - if (response.TWILIO_CONFIGURATION_SID && response.TWILIO_CONFIGURATION_SID != '') { - $('#videoDemoButton').addClass('btn-success'); - } else { - $('#videoDemoButton').addClass('btn-danger'); - } - if (response.TWILIO_CHAT_SERVICE_SID && response.TWILIO_CHAT_SERVICE_SID != '') { $('#chatDemoButton').addClass('btn-success'); } else { - $('#chatDemoButton').addClass('btn-danger'); + $('#chatDemoButton').addClass('btn-danger'); } if (response.TWILIO_SYNC_SERVICE_SID && response.TWILIO_SYNC_SERVICE_SID != '') { $('#syncDemoButton').addClass('btn-success'); } else { - $('#syncDemoButton').addClass('btn-danger'); + $('#syncDemoButton').addClass('btn-danger'); } if (response.TWILIO_NOTIFICATION_SERVICE_SID && response.TWILIO_NOTIFICATION_SERVICE_SID != '') { $('#notifyDemoButton').addClass('btn-success'); } else { - $('#notifyDemoButton').addClass('btn-danger'); + $('#notifyDemoButton').addClass('btn-danger'); } } else { $('#videoDemoButton').addClass('btn-danger'); $('#chatDemoButton').addClass('btn-danger'); $('#syncDemoButton').addClass('btn-danger'); - $('#notifyDemoButton').addClass('btn-danger'); + $('#notifyDemoButton').addClass('btn-danger'); } - - + + }); var configureField = function(response, keyName,elementId,masked) { @@ -67,4 +60,4 @@ $(function() { } }; -}); \ No newline at end of file +}); diff --git a/static/index.html b/static/index.html index 985017f..66c98d3 100644 --- a/static/index.html +++ b/static/index.html @@ -4,7 +4,7 @@ Twilio Server Starter Kit - + @@ -28,30 +28,25 @@

Products

- - - - - - + - + - +
VideoTWILIO_CONFIGURATION_SID
Notify TWILIO_NOTIFICATION_SERVICE_SID
Chat TWILIO_CHAT_SERVICE_SID
Sync TWILIO_SYNC_SERVICE_SID
- +

Demos

- Video + Video Sync Notify Chat @@ -61,4 +56,4 @@ - \ No newline at end of file + diff --git a/static/video/index.html b/static/video/index.html index 315570e..65d81c6 100755 --- a/static/video/index.html +++ b/static/video/index.html @@ -22,7 +22,7 @@ - +