Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var colors=[];
- colors['Черный']='black';
- colors['Серый']='gray';
- colors['Темно-серый']='darkgray';
- colors['Коричневый']='brown';
- colors['Бежевый']='beje';
- colors['Темно-бежевый']='darkbeje';
- colors['Зеленый']='green';
- colors['Салатовый']='salat';
- colors['Синий']='blue';
- colors['Василек']='vas';
- colors['Темно-синий']='darkblue';
- colors['Бордовый']='bordo';
- colors['Красный']='red';
- colors['Оранжевый']='orange';
- colors['Желтый']='yellow';
- colors['Фиолетовый']='violet';
- colors['Белый']='white';
- jQuery('.color-bgF').data("value","Оранжевый");
- jQuery('.color-borderF').val('Бордовый');
- jQuery('.color-bgF').change(function(){
- var bgclass='bg-'+colors[jQuery(this).val()];
- jQuery('#kovrikF').removeClass (function (index, className) {
- return (className.match (/(^|s)bg-S+/g) || []).join(' ');
- });
- jQuery('#kovrikF').addClass(bgclass)
- });
- jQuery('.color-borderF').change(function(){
- var bgclass='border-'+colors[jQuery(this).val()];
- jQuery('#kovrikF').removeClass (function (index, className) {
- return (className.match (/(^|s)border-S+/g) || []).join(' ');
- });
- jQuery('#kovrikF').addClass(bgclass)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement