Skip to content

Commit

Permalink
Merge pull request archhachathon#4 from archhachathon/alexBranch
Browse files Browse the repository at this point in the history
counter deleted
  • Loading branch information
j3ang authored Oct 29, 2017
2 parents aaa6711 + e7da296 commit 37dfeb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions html/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,14 @@
sendSMS();
joinCall();
}





</script>

<!-- <script type="text/javascript">
(function(){
$('#inviteBtn').click(function(){
console.log('btn clicked');
alert('invitation sent');
sendSMS();
});
})();
Expand Down
3 changes: 3 additions & 0 deletions js/app2.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var authToken = '115e66de11ace97dfa3d083ff4980d34'; // Your Auth Token from ww

var twilio = require('twilio');
var client = new twilio(accountSid, authToken);
var count = 0;


app.get('/', function(req, res) {
Expand All @@ -20,6 +21,8 @@ app.get('/dashboard', function(req, res) {

app.get('/dashboard/sendSMS', function(req, res) {
// res.sendFile(path.join(__dirname + '/../html/dashboard.html'));
count++;

client.messages.create({
to: '+13126102079', // Text this number
from: '+13142079612', // From a valid Twilio number
Expand Down

0 comments on commit 37dfeb6

Please sign in to comment.