var classList = document.getElementById('divId').className.split(/\s+/);
for (var i = 0; i < classList.length; i++) {
if (classList[i].substr(0, 13) === 'color-scheme-') {
console.log(classList[i].substr(0, 14)); // ваше число
}
}
var classList = $('#divId').attr('class').split(/\s+/);
$.each(classList, function(index, class) {
if (class.substr(0, 13) === 'color-scheme-') {
console.log(class.substr(0, 14)); // ваше число
}
});
@app-themed-default: #1bbae1;
@app-themed-dark-default: #394263;
@app-themed-night: #888888;
@app-themed-dark-night: #333333;
@app-themed-amethyst: #af64cc;
@app-themed-dark-amethyst: #583a63;
@app-themed-modern: #46b7bf;
@app-themed-dark-modern: #3b3f40;
@app-themed-autumn: #e67e22;
@app-themed-dark-autumn: #4a392b;
@app-themed-flatie: #1ec1b8;
@app-themed-dark-flatie: #32323a;
@app-themed-spring: #27ae60;
@app-themed-dark-spring: #344a3d;
@app-themed-fancy: #d9416c;
@app-themed-dark-fancy: #352b4e;
@app-themed-fire: #e74c3c;
@app-themed-dark-fire: #4a2e2b;