add morse alphabet

This commit is contained in:
Juraj Michalek
2014-12-29 12:00:57 +00:00
parent 079cd0f604
commit 1c0aeefa4d
2 changed files with 91 additions and 6 deletions

View File

@@ -120,3 +120,84 @@ var mathCards = {
'japanese': '十'
}
};
var alphabetCards = {
'A': {
'morse': '.-'
},
'B': {
'morse': '-...'
},
'C': {
'morse': '-.-.'
},
'D': {
'morse': '-..'
},
'E': {
'morse': '.'
},
'F': {
'morse': '..-.'
},
'G': {
'morse': '--.'
},
'H': {
'morse': '....'
},
'I': {
'morse': '..'
},
'J': {
'morse': '.---'
},
'K': {
'morse': '-.-'
},
'L': {
'morse': '.-..'
},
'M': {
'morse': '--'
},
'N': {
'morse': '-.'
},
'O': {
'morse': '---'
},
'P': {
'morse': '.--.'
},
'Q': {
'morse': '--.-'
},
'R': {
'morse': '.-.'
},
'S': {
'morse': '...'
},
'T': {
'morse': '-'
},
'U': {
'morse': '..-'
},
'V': {
'morse': '...-'
},
'W': {
'morse': '.--'
},
'X': {
'morse': '-..-'
},
'Y': {
'morse': '-.--'
},
'Z': {
'morse': '--..'
}
};

View File

@@ -86,12 +86,12 @@ angular.module('app', ['angular-flippy', 'level-selector', 'level-complete'])
cardSet: mathCards,
cardTypes: ['arabic', 'math', 'roman', 'japanese']
},{
levelName: "04: Picture + Word",
totalCards: 2*2,
cardsPerRow: 2,
levelName: "08: Morse",
totalCards: 4*4,
cardsPerRow: 4,
chainLength: 2,
cardSet: basicCards,
cardTypes: ['picture', 'en-US']
cardSet: alphabetCards,
cardTypes: ['key', 'morse']
}, {
levelName: "05: Picture + Word",
totalCards: 4*4,
@@ -190,7 +190,11 @@ angular.module('app', ['angular-flippy', 'level-selector', 'level-complete'])
tempCard.label = "";
} else {
tempCard.image = 'question';
tempCard.label = tempCard.card.card[tempCard.cardType];
if (tempCard.cardType == 'key') {
tempCard.label = tempCard.cardId;
} else {
tempCard.label = tempCard.card.card[tempCard.cardType];
}
}
stack.push(tempCard);
}