ga-wdi-exercises / project1

[project] GA- Project 1
3 stars 75 forks source link

Project 1 #214

Closed MaxKaye closed 8 years ago

MaxKaye commented 8 years ago

Is there any way that I can create a set of pinyin and english without having to create new functions? How do I get it to flip back and forth without having to refresh the page? when I click translation to English, Chinese character still remains. How do I get it so that “Chinese Character” switches to “English Text”?

My Chinese characters show up as illegal token when I call an array. Anyway to fix this?

RobertAKARobin commented 8 years ago

Are you using Chrome's built-in translator?

MaxKaye commented 8 years ago

no- Using mac's translator to get the words

RobertAKARobin commented 8 years ago

This sounds like it may be a Mac-specific issue, although I'm unsure. Would you mind going to the Genius Bar?

MaxKaye commented 8 years ago

code here: github.com/MaxKaye/project1

and for the last question I am trying to log the chinese here is what I have:

function logCharacters(chinese, english, pinyin) { console.log('a[' + english + '] = ' + chinese); } [你好,早上好,吃饭].forEach(logCharacters);

MaxKaye commented 8 years ago

yes i will

amaseda commented 8 years ago

@MaxKaye Made some good headway here. Feel free to re-open this issue if you have any additional questions.

MaxKaye commented 8 years ago

@amaseda thank you! got the refresh function running!