mirror of
https://github.com/ysoftdevs/pf2015.git
synced 2026-03-29 05:22:08 +02:00
add morse alphabet
This commit is contained in:
@@ -120,3 +120,84 @@ var mathCards = {
|
|||||||
'japanese': '十'
|
'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,
|
cardSet: mathCards,
|
||||||
cardTypes: ['arabic', 'math', 'roman', 'japanese']
|
cardTypes: ['arabic', 'math', 'roman', 'japanese']
|
||||||
},{
|
},{
|
||||||
levelName: "04: Picture + Word",
|
levelName: "08: Morse",
|
||||||
totalCards: 2*2,
|
totalCards: 4*4,
|
||||||
cardsPerRow: 2,
|
cardsPerRow: 4,
|
||||||
chainLength: 2,
|
chainLength: 2,
|
||||||
cardSet: basicCards,
|
cardSet: alphabetCards,
|
||||||
cardTypes: ['picture', 'en-US']
|
cardTypes: ['key', 'morse']
|
||||||
}, {
|
}, {
|
||||||
levelName: "05: Picture + Word",
|
levelName: "05: Picture + Word",
|
||||||
totalCards: 4*4,
|
totalCards: 4*4,
|
||||||
@@ -190,7 +190,11 @@ angular.module('app', ['angular-flippy', 'level-selector', 'level-complete'])
|
|||||||
tempCard.label = "";
|
tempCard.label = "";
|
||||||
} else {
|
} else {
|
||||||
tempCard.image = 'question';
|
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);
|
stack.push(tempCard);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user