Image vrac et sachet bicolor
This commit is contained in:
parent
83dcc7a2c4
commit
39cfa63fd6
@ -89,16 +89,16 @@ function initFaces()
|
||||
$('.chocos-holder').find('.date-holder').remove();
|
||||
$('.face-custom-txt').removeClass('face-custom-txt');
|
||||
$('.face-custom-img').removeClass('face-custom-img');
|
||||
$(".chocos-holder").empty()
|
||||
$('#custom-freeface').hide()
|
||||
$(".chocos-holder").empty();
|
||||
$('#custom-freeface').hide();
|
||||
|
||||
if(theme == "damier")
|
||||
{
|
||||
$(".chocos-holder").html($('#temp-base .chocos').contents().clone());
|
||||
$('.chocos-holder .flipper .front').html('<div class="colorface color_1"></div><div class="colorface color_2"></div>')
|
||||
$('.chocos-holder .flipper .back').html('<div class="colorface color_1"></div><div class="colorface color_2"></div>')
|
||||
$(".color_1").addClass(color1)
|
||||
$(".color_2").addClass(color2)
|
||||
$(".color_1").addClass(color1);
|
||||
$(".color_2").addClass(color2);
|
||||
$('.switch').removeClass('switch');
|
||||
|
||||
// Chocos
|
||||
@ -127,32 +127,30 @@ function initFaces()
|
||||
else if(theme == "ruban")
|
||||
{
|
||||
$(".chocos-holder").html($('#temp-ruban .chocos').contents().clone());
|
||||
$('.chocos-holder .front').addClass('b-'+color1)
|
||||
$('.chocos-holder .back').addClass('b-'+color1)
|
||||
$('.chocos-holder .bande').addClass('b-'+color2)
|
||||
$(".chocos-holder .txt").addClass('c-'+color1)
|
||||
|
||||
$('.chocos-holder .back').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/face_14.png)'})
|
||||
$('.chocos-holder .front').addClass('b-'+color1);
|
||||
$('.chocos-holder .back').addClass('b-'+color1);
|
||||
$('.chocos-holder .bande').addClass('b-'+color2);
|
||||
$(".chocos-holder .txt").addClass('c-'+color1);
|
||||
$('.chocos-holder .back').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/1B.png)'});
|
||||
}
|
||||
else if(theme == "bayadere")
|
||||
{
|
||||
$(".chocos-holder").html($('#temp-base .chocos').contents().clone());
|
||||
$('.chocos-holder .flipper .front').html($('#temp-bayadere .bayaface').clone())
|
||||
$('.chocos-holder .flipper .back').html($('#temp-bayadere .bayaface').clone())
|
||||
$('.bayaface .col1').addClass('b-'+color1)
|
||||
$('.bayaface .col2').addClass('b-'+color2)
|
||||
$('.bayaface .col3').addClass('b-'+color1)
|
||||
$('.bayaface .col4').addClass('b-'+color2)
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .front")
|
||||
$('#custom_elmts .date-holder-line').clone().appendTo(".chocos-holder .back")
|
||||
|
||||
$('.chocos-holder .back .colover').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/face_14.png)'})
|
||||
$('.chocos-holder .flipper .front').html($('#temp-bayadere .bayaface').clone());
|
||||
$('.chocos-holder .flipper .back').html($('#temp-bayadere .bayaface').clone());
|
||||
$('.bayaface .col1').addClass('b-'+color1);
|
||||
$('.bayaface .col2').addClass('b-'+color2);
|
||||
$('.bayaface .col3').addClass('b-'+color1);
|
||||
$('.bayaface .col4').addClass('b-'+color2);
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .front");
|
||||
$('#custom_elmts .date-holder-line').clone().appendTo(".chocos-holder .back");
|
||||
$('.chocos-holder .back .colover').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/1B.png)'});
|
||||
}
|
||||
else if(theme == "liseres")
|
||||
{
|
||||
$(".chocos-holder").html($('#temp-base .chocos').contents().clone());
|
||||
$('.chocos-holder .flipper .front').html($('#temp-liseres .lisefacesmall').contents().clone())
|
||||
$('.chocos-holder .flipper .back').html($('#temp-liseres .lisefacesmall').contents().clone())
|
||||
$('.chocos-holder .flipper .front').html($('#temp-liseres .lisefacesmall').contents().clone());
|
||||
$('.chocos-holder .flipper .back').html($('#temp-liseres .lisefacesmall').contents().clone());
|
||||
var file;
|
||||
if(color1 == "blanc")
|
||||
{
|
||||
@ -172,13 +170,11 @@ function initFaces()
|
||||
file = color2;
|
||||
color = color2;
|
||||
}
|
||||
|
||||
$('.chocos-holder .back .bkgface').css({'background-image':'url('+themeImg+'/chocos/'+(color1 == "blanc" || color1 == "ivoire") ? 'noir' : color2+'/face_14.png)'})
|
||||
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .front .txtface")
|
||||
$('#custom_elmts .date-holder-line').clone().appendTo(".chocos-holder .back .txtface")
|
||||
$('.chocos-holder .bkgface').addClass('b-'+color1)
|
||||
$('.chocos-holder .txtface').addClass('c-'+color2)
|
||||
$('.chocos-holder .back .bkgface').css({'background-image':'url('+themeImg+'/chocos/'+(color1 == "blanc" || color1 == "ivoire") ? 'noir' : color2+'/1B.png)'});
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .front .txtface");
|
||||
$('#custom_elmts .date-holder-line').clone().appendTo(".chocos-holder .back .txtface");
|
||||
$('.chocos-holder .bkgface').addClass('b-'+color1);
|
||||
$('.chocos-holder .txtface').addClass('c-'+color2);
|
||||
}
|
||||
|
||||
$('.chocos-holder .flip-container').eq(4).show();
|
||||
|
@ -89,69 +89,68 @@ function initFaces()
|
||||
$('.chocos-holder').find('.date-holder').remove();
|
||||
$('.face-custom-txt').removeClass('face-custom-txt');
|
||||
$('.face-custom-img').removeClass('face-custom-img');
|
||||
$(".chocos-holder").empty()
|
||||
|
||||
$('#custom-freeface').hide()
|
||||
$(".chocos-holder").empty();
|
||||
$('#custom-freeface').hide();
|
||||
|
||||
if(theme == "damier")
|
||||
{
|
||||
$(".chocos-holder").html($('#temp-base .chocos').contents().clone());
|
||||
$('.chocos-holder .flipper .front').html('<div class="colorface color_1"></div><div class="colorface color_2"></div>')
|
||||
$('.chocos-holder .flipper .back').html('<div class="colorface color_1"></div><div class="colorface color_2"></div>')
|
||||
$(".color_1").addClass(color1)
|
||||
$(".color_2").addClass(color2)
|
||||
$(".color_1").addClass(color1);
|
||||
$(".color_2").addClass(color2);
|
||||
$('.switch').removeClass('switch');
|
||||
|
||||
var color = (color1 == "blanc" || color1 == "ivoire") ? 'noir' : color2;
|
||||
$('.chocos-holder .choco1 .back .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color+'/face_14.png)'})
|
||||
$('.chocos-holder .choco2 .back .color_1').css({'background-image':'url('+themeImg+'/chocos/'+color1+'/face_16.png)'})
|
||||
$('.chocos-holder .choco3 .front .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/face_17.png)'})
|
||||
$('.chocos-holder .choco3 .back .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color+'/face_18.png)'})
|
||||
$('.chocos-holder .choco4 .back .color_1').css({'background-image':'url('+themeImg+'/chocos/'+color1+'/face_20.png)'})
|
||||
$('.chocos-holder .choco5 .front .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/face_21.png)'})
|
||||
$('.chocos-holder .choco5 .back .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color+'/face_22.png)'})
|
||||
|
||||
// Chocos
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .choco1 .front .color_2")
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .choco4 .front .color_1")
|
||||
$('#custom_elmts .date-holder').clone().appendTo(".chocos-holder .choco2 .front .color_1")
|
||||
$(".chocos-holder .choco2").addClass('switch')
|
||||
$(".chocos-holder .choco4").addClass('switch')
|
||||
$('.chocos-holder').addClass('damier');
|
||||
$('.chocos-holder .color_1').css({ 'background-color':colorRGB[color1]})
|
||||
$('.chocos-holder .color_2').css({ 'color':colorRGB[color2]})
|
||||
$('.chocos-holder .switch .color_1').css({ 'color':colorRGB[color1]})
|
||||
$('.chocos-holder .switch .color_2').css({'background-color':colorRGB[color2]})
|
||||
var color = (color1 == "blanc" || color1 == "ivoire") ? 'noir' : color2;
|
||||
$('.chocos-holder .choco1 .front .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/1F.png)'});
|
||||
$('.chocos-holder .choco1 .back .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color+'/1B.png)'});
|
||||
$('.chocos-holder .choco1 .front .color_1').css({'background-image':'url('+themeImg+'/chocos/'+color1+'/2F.png)'});
|
||||
$('.chocos-holder .choco2 .back .color_1').css({'background-image':'url('+themeImg+'/chocos/'+color1+'/2B.png)'});
|
||||
$('.chocos-holder .choco3 .front .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/3F.png)'});
|
||||
$('.chocos-holder .choco3 .back .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color+'/3B.png)'});
|
||||
$('.chocos-holder .choco4 .front .color_1').css({'background-image':'url('+themeImg+'/chocos/'+color1+'/4F.png)'});
|
||||
$('.chocos-holder .choco4 .back .color_1').css({'background-image':'url('+themeImg+'/chocos/'+color1+'/4B.png)'});
|
||||
$('.chocos-holder .choco5 .front .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/5F.png)'});
|
||||
$('.chocos-holder .choco5 .back .color_2').css({'background-image':'url('+themeImg+'/chocos/'+color+'/5B.png)'});
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .choco1 .front .color_2");
|
||||
$('#custom_elmts .date-holder').clone().appendTo(".chocos-holder .choco2 .front .color_1");
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .choco4 .front .color_1");
|
||||
$(".chocos-holder .choco2").addClass('switch');
|
||||
$(".chocos-holder .choco4").addClass('switch');
|
||||
$('.chocos-holder').addClass(theme);
|
||||
$('.chocos-holder .color_1').css({ 'background-color':colorRGB[color1]});
|
||||
$('.chocos-holder .color_2').css({ 'color':colorRGB[color2]});
|
||||
$('.chocos-holder .switch .color_1').css({ 'color':colorRGB[color1]});
|
||||
$('.chocos-holder .switch .color_2').css({'background-color':colorRGB[color2]});
|
||||
}
|
||||
else if(theme == "ruban")
|
||||
{
|
||||
$(".chocos-holder").html($('#temp-ruban .chocos').contents().clone());
|
||||
$('.chocos-holder .front').addClass('b-'+color1)
|
||||
$('.chocos-holder .back').addClass('b-'+color1)
|
||||
$('.chocos-holder .bande').addClass('b-'+color2)
|
||||
$(".chocos-holder .txt").addClass('c-'+color1)
|
||||
$('.chocos-holder .back').css({'background-image':'url(img/simulation/bicolore/liseres/chocos/'+color2+'/face_14.png)'})
|
||||
$('.chocos-holder .front').addClass('b-'+color1);
|
||||
$('.chocos-holder .back').addClass('b-'+color1);
|
||||
$('.chocos-holder .bande').addClass('b-'+color2);
|
||||
$(".chocos-holder .txt").addClass('c-'+color1);
|
||||
$('.chocos-holder .back').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/1B.png)'});
|
||||
}
|
||||
else if(theme == "bayadere")
|
||||
{
|
||||
$(".chocos-holder").html($('#temp-base .chocos').contents().clone());
|
||||
$('.chocos-holder .flipper .front').html($('#temp-bayadere .bayaface').clone())
|
||||
$('.chocos-holder .flipper .back').html($('#temp-bayadere .bayaface').clone())
|
||||
$(".container-db .db-cube1 .back").append('<div class="face-custom-txt face-custom-img"></div>')
|
||||
$('.bayaface .col1').addClass('b-'+color1)
|
||||
$('.bayaface .col2').addClass('b-'+color2)
|
||||
$('.bayaface .col3').addClass('b-'+color1)
|
||||
$('.bayaface .col4').addClass('b-'+color2)
|
||||
// Chocos
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .front")
|
||||
$('#custom_elmts .date-holder-line').clone().appendTo(".chocos-holder .back")
|
||||
$('.chocos-holder .back .colover').css({'background-image':'url(img/simulation/bicolore/liseres/chocos/'+color2+'/face_14.png)'})
|
||||
$('.chocos-holder .flipper .front').html($('#temp-bayadere .bayaface').clone());
|
||||
$('.chocos-holder .flipper .back').html($('#temp-bayadere .bayaface').clone());
|
||||
$('.bayaface .col1').addClass('b-'+color1);
|
||||
$('.bayaface .col2').addClass('b-'+color2);
|
||||
$('.bayaface .col3').addClass('b-'+color1);
|
||||
$('.bayaface .col4').addClass('b-'+color2);
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .front");
|
||||
$('#custom_elmts .date-holder-line').clone().appendTo(".chocos-holder .back");
|
||||
$('.chocos-holder .back .colover').css({'background-image':'url('+themeImg+'/chocos/'+color2+'/1B.png)'});
|
||||
}
|
||||
else if(theme == "liseres")
|
||||
{
|
||||
$(".chocos-holder").html($('#temp-base .chocos').contents().clone());
|
||||
$('.chocos-holder .flipper .front').html($('#temp-liseres .lisefacesmall').contents().clone())
|
||||
$('.chocos-holder .flipper .back').html($('#temp-liseres .lisefacesmall').contents().clone())
|
||||
$('.chocos-holder .flipper .front').html($('#temp-liseres .lisefacesmall').contents().clone());
|
||||
$('.chocos-holder .flipper .back').html($('#temp-liseres .lisefacesmall').contents().clone());
|
||||
var file;
|
||||
if(color1 == "blanc")
|
||||
{
|
||||
@ -171,8 +170,7 @@ function initFaces()
|
||||
file = color2;
|
||||
color = color2;
|
||||
}
|
||||
$('.chocos-holder .back .bkgface').css({'background-image':'url(img/simulation/bicolore/liseres/chocos/'+(color1 == "blanc" || color1 == "ivoire") ? 'noir' : color2+'/face_14.png)'})
|
||||
// Chocos
|
||||
$('.chocos-holder .back .bkgface').css({'background-image':'url('+themeImg+'/chocos/'+(color1 == "blanc" || color1 == "ivoire") ? 'noir' : color2+'/1B.png)'})
|
||||
$('#custom_elmts .noms-holder').clone().appendTo(".chocos-holder .front .txtface")
|
||||
$('#custom_elmts .date-holder-line').clone().appendTo(".chocos-holder .back .txtface")
|
||||
$('.chocos-holder .bkgface').addClass('b-'+color1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user