Not able to change the size of the label on a list item (which mapped to the response of the list service) according to the screen size by calling JS when page load.
However when I preview the app and inspect the elements of the label and change the size
I've created a new Javascript for the app:
(from https://getsatisfaction.com/apperyio/...)
//This function will be used to add some css rule to the page.
function addCSSRule(sheet, selector, rules, index) {
if("insertRule" in sheet) {
sheet.insertRule(selector + "{" + rules + "}", index);
}
else if("addRule" in sheet) {
sheet.addRule(selector, rules, index);
}
}
When the page load, call JS:
addCSSRule(document.styleSheets[0], '.Chat_Screen_Label', "font-size: 40px;");