Hi. Maybe someone knows where I can find the value which describe font size of captions? I mean some css files in published course (I know that in SL360 I can change font size of captions together with font size of whole player but this solution doesn't make me happy :)).
Solution found on Mathew Bibby site (it was changed by me - there is no necessity to change size of captions when we visit course using mobile devices):
var type = navigator.userAgent; var iPad = (type.indexOf("AppleWebKit/") > -1 && type.indexOf("Mobile/") > -1)?true:false;
var isAndroid = (type.indexOf("Android") > -1)?true:false;
var isIPad = (type.indexOf("iPad") > -1)?true:false;
if(!iPad && !isAndroid && !isIPad) { if (/_html5.html/.test(window.location.href)) { if (!window.alteredCaptions) { var sheet = document.createElement('style'); sheet.innerHTML = ".caption{font-size:150% !important;}"; document.body.appendChild(sheet); window.alteredCaptions = true; } } }
1 Reply
Solution found on Mathew Bibby site (it was changed by me - there is no necessity to change size of captions when we visit course using mobile devices):
var type = navigator.userAgent;
var iPad = (type.indexOf("AppleWebKit/") > -1 && type.indexOf("Mobile/") > -1)?true:false;
var isAndroid = (type.indexOf("Android") > -1)?true:false;
var isIPad = (type.indexOf("iPad") > -1)?true:false;
if(!iPad && !isAndroid && !isIPad)
{
if (/_html5.html/.test(window.location.href))
{
if (!window.alteredCaptions)
{
var sheet = document.createElement('style');
sheet.innerHTML = ".caption{font-size:150% !important;}";
document.body.appendChild(sheet);
window.alteredCaptions = true;
}
}
}
This discussion is closed. You can start a new discussion or contact Articulate Support.