This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-12 col-sm-12 col-xs-12"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Location Response</div> | |
<div class="panel-body"> | |
<p>Latitude / Longitude: <input id="location" type="text" class="form-control" value="Retrieving location…"/></p> | |
<div id="map-container"></div> | |
</div> | |
</div> | |
</div><!-- .col --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-2 col-sm-2 col-xs-2"> | |
<p><button class="btn btn-primary btn-sm" id="get-date-btn"><span>Get Date</span></button></p> | |
</div><!-- .col --> | |
<div class="col-md-10 col-sm-10 col-xs-10"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Response Status</div> | |
<div class="panel-body"> | |
<p>Current date: <input id="date" type="text" class="form-control"/></p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-2 col-sm-2 col-xs-2"> | |
<p><button class="btn btn-primary btn-sm" id="get-time-btn"><span>Get Time</span></button></p> | |
</div><!-- .col --> | |
<div class="col-md-10 col-sm-10 col-xs-10"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Response Status</div> | |
<div class="panel-body"> | |
<p>Exact time: <input id="exact-time" type="text" class="form-control"/></p> | |
<p>Fuzzy time: <textarea id="status" class="form-control"></textarea></p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-2 col-sm-2 col-xs-2"> | |
<p><button class="btn btn-primary btn-sm" id="speak-btn"><span>Listen</span></button></p> | |
</div><!-- .col --> | |
<div class="col-md-10 col-sm-10 col-xs-10"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Response Status</div> | |
<div class="panel-body"> | |
<textarea id="status" class="form-control" placeholder="Spoken text will appear here"></textarea> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-2 col-sm-2 col-xs-2"> | |
<p><button class="btn btn-primary btn-sm" id="record-btn"><span>Record</span></button></p> | |
</div><!-- .col --> | |
<div class="col-md-10 col-sm-10 col-xs-10"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Dictation Output</div> | |
<div class="panel-body"> | |
<textarea id="dictation" class="form-control" placeholder="Spoken text will appear here"></textarea> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="panel panel-default"> | |
<div class="panel-heading">Speech Recognition Status</div> | |
<div class="panel-body"> | |
<div id="status"></div> | |
</div> | |
</div> | |
<script src="/assets/js/annyang.min.js"/> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- form to send sms --> | |
<form id="send-email-sms" onsubmit="emailSMS(this); return false;"> | |
<fieldset> | |
<legend>Email -> SMS Demo</legend> | |
<div class="row"><div id="response"></div></div> | |
<div class="row"> | |
<div class="six columns"> | |
<label for="phone_num">Phone #</label><input type="text" name="phone_num" id="phone_num" placeholder="10-digit number, no dashes" maxlength="15" class="inline"/> | |
</div><!-- .six --> | |
<div class="six columns"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* if you're having trouble, uncomment this section to show php errors/warnings | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
*/ | |
// create an array to hold the tweets | |
$tweets = array(); | |
// enter your twitter username in the screen_name parameter below |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* -------------------------------------------- | |
START USER CONFIG -------------------------- */ | |
$flickrUser = 'YOURUSERNAME'; // look at your profile url: http://flickr.com/photos/YOURUSERNAME/ | |
$photoCount = '7'; // the # of photos for the scroller + 1 for top photo (minimum of 3, odd numbers work best) | |
$flickrAPI = 'YOURFLICKRAPIKEY'; // get yours here: http://www.flickr.com/services/api/keys/apply/ | |
/* END USER CONFIG ---------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$albumParams = array( | |
'method' => 'flickr.photos.search', | |
'user_id' => 'YOURFLICKRUSERID', // find it at http://idgettr.com | |
'per_page' => '18' | |
); | |
$albumInfo = getFlickr($albumParams); | |
?> | |
<html> |