-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #501 from hplato/ia7
Tracking latest changes of Howard for the IA7 web interface
- Loading branch information
Showing
28 changed files
with
611 additions
and
100 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div class='row top-buffer'> | ||
<div class='col-sm-12 col-sm-offset-0 col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2'> | ||
<div class='col-sm-12'> | ||
|
||
Type something below to have MisterHouse | ||
process the text to speech and send a wav file to your browser, using | ||
<a href=/bin/browse.pl?/code/common/eliza_server.pl>common/eliza_server.pl</a>. | ||
If you are in need of some consoling, click the Eliza checkbot, | ||
and a ChatBot version of the famous Eliza psychologist will have a conversation with you. | ||
Or have MisterHouse read you a deep thought, read a tagline or | ||
show what was <a target=speech href=/ia7/#path=/print_speaklog>recently spoken</a>,<br> | ||
|
||
<center> | ||
<form target="speech"> | ||
<textarea rows=2 cols=40 id="speakText" name=eliza_data></textarea> | ||
<input type="button" value="Speak it!" id="speakNow"/> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
|
||
$(document).ready(function() { | ||
$('#speakNow').click(function() { | ||
//alert($('#speakText').val()); | ||
var url = '/SET;last_response?eliza_data=' + $('#speakText').val(); | ||
$.get( url, function(data) { | ||
var start = data.toLowerCase().indexOf('<body>') + 6; | ||
var end = data.toLowerCase().indexOf('</body>'); | ||
$('#lastResponse').find('.modal-body').html(data.substring(start, end)); | ||
$('#lastResponse').modal({ | ||
show: true | ||
}); | ||
}); | ||
}); | ||
}); | ||
|
||
</script> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
<iframe id="mhIframe" src="" width="100%" height="100%" marginheight="0" frameborder="0"></iframe> | ||
|
||
<script> | ||
//set up the iframe to have height of the window and then add in the src passed in the URL... | ||
var newheight = $(window.parent.document).height(); | ||
var loc = window.location.toString(), | ||
params = loc.split('?'); | ||
var url = params[1]; | ||
for (var i = 2; i < params.length; i++){ | ||
url += "?"+params[i]; | ||
} | ||
//check if http / https is in the URL... | ||
var prefix = "http://"; | ||
if (url.indexOf("http") == 0) prefix = ""; | ||
var params2 = prefix + url.split('&_collection_key')[0]; | ||
//alert("pref="+prefix+" url="+params2); | ||
|
||
$('#mhIframe').attr("src",params2); | ||
$('#mhIframe').attr("height",newheight+"px"); | ||
|
||
</script> |
Oops, something went wrong.