retour ligne et centre memory
This commit is contained in:
parent
1bc1f7f3e3
commit
f0fcd0da22
@ -167,14 +167,17 @@ img {
|
|||||||
*/
|
*/
|
||||||
.mg__wrapper {
|
.mg__wrapper {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mg__contents {
|
.mg__contents {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-bottom: 47%;
|
padding-bottom: 50%;
|
||||||
margin-left: -5px;
|
margin-left: 35%;
|
||||||
margin-right: -5px;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -304,18 +304,19 @@
|
|||||||
this.newCards.push(this.cards[i], this.cards[i]);
|
this.newCards.push(this.cards[i], this.cards[i]);
|
||||||
}
|
}
|
||||||
this.newCards = shuffle(this.newCards);
|
this.newCards = shuffle(this.newCards);
|
||||||
/* this.newCards.push(0, 0);
|
|
||||||
this.newCards.push(0, 0);*/
|
|
||||||
this.tilesHTML = '';
|
this.tilesHTML = '';
|
||||||
|
var n = 0;
|
||||||
for ( var i = 0; i < this.numTiles; i++ ) {
|
for ( var i = 0; i < this.numTiles; i++ ) {
|
||||||
var n = i + 1;
|
n = n + 1;
|
||||||
//this.tilesHTML += '<div class="col-xs-6 col-sm-4">';
|
if(this.level == 3 && n == 5 ){n = 9}
|
||||||
|
if(this.level == 2 && n == 4 ){n = 7}
|
||||||
this.tilesHTML += '<div class="mg__tile mg__tile-' + n + '">\
|
this.tilesHTML += '<div class="mg__tile mg__tile-' + n + '">\
|
||||||
<div class="mg__tile--inner" data-id="' + this.newCards[i]["id"] + '">\
|
<div class="mg__tile--inner" data-id="' + this.newCards[i]["id"] + '">\
|
||||||
<span class="mg__tile--outside"></span>\
|
<span class="mg__tile--outside"></span>\
|
||||||
<span class="mg__tile--inside"><img src="' + this.newCards[i]["img"] + '"></span>';
|
<span class="mg__tile--inside"><img src="' + this.newCards[i]["img"] + '"></span>';
|
||||||
this.tilesHTML +='</div>';
|
this.tilesHTML +='</div>';
|
||||||
// this.tilesHTML +='</div>';
|
|
||||||
|
|
||||||
/* if(this.level == 1 && n == 2){
|
/* if(this.level == 1 && n == 2){
|
||||||
this.tilesHTML +="</tr><tr>";
|
this.tilesHTML +="</tr><tr>";
|
||||||
|
Reference in New Issue
Block a user