opt-cc/static/src/app/utils/global.helpers.ts

21 lines
486 B
TypeScript

export const CSSHelpers = {
getBackgroundCSS: (imageUrl) => {
return 'background-image: url(' + imageUrl + ');' +
'background-size: cover;' +
'background-attachment: fixed;' +
'background-position: center;' +
'background-repeat: no-repeat;';
}
};
export const UIHelpers = {
toggleReleaseButton: (currentVal, group) => {
if (currentVal === group.value) {
group.value = '';
return '';
} else {
return group.value;
}
}
};