mirror of
https://github.com/ysoftdevs/pf2015.git
synced 2026-01-17 00:57:22 +01:00
add morse alphabet
This commit is contained in:
@@ -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': '--..'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user