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
<script> | |
/** | |
* This cognosJqFix.ready block can now be used in place of the $(document).ready block | |
* You can create as many of these blocks as you want. | |
*/ | |
cognosJqFix.ready(function($){ | |
//This function passes in the jQuery library as the $ variable | |
//As long as your code stays within this block, you can safely use the $ | |
$('.block').css('background', 'pink'); |
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
<script> | |
/** | |
* Config block must specifiy a path to the jQuery library | |
* Can optionally list extra JS files to load in order in the scripts array | |
* Can optionally list extra CSS files to load in order in the styles array | |
*/ | |
cognosJqFix.setup({ | |
jqueryPath : 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', | |
scripts : [ | |
// Any extra js libraries to load in: |
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script> | |
jQuery(document).ready(function(){ | |
jQuery('.block').css('background', 'pink'); | |
}); | |
</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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$('.block').css('background', 'pink'); | |
}); | |
</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
<script> | |
/** | |
* Safer method of loading and using jQuery and other libraries into | |
* an IBM Congos Report (version 10.2) | |
* Normally this is overkill and you can get away with a simple | |
* <script src="path/to/jquery.js"> | |
* However when you start to add prompts, because the Prompt API uses | |
* the same '$' variable as jQuery defaults to, you start to see some | |
* odd inconsistencies. | |
*/ |
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
/** | |
* Chunkify | |
* Google Chrome Speech Synthesis Chunking Pattern | |
* Fixes inconsistencies with speaking long texts in speechUtterance objects | |
* Licensed under the MIT License | |
* | |
* Peter Woolley and Brett Zamir | |
*/ | |
var speechUtteranceChunker = function (utt, settings, callback) { |