Create for to add and edit data to JS file

已完成 已发布的 Aug 7, 2013 货到付款
已完成 货到付款

I have a phone app that gets its information from a JS file. I'd like you to create a form that will add and edit data in the JS file so I don't have to do it manually.

The JS file is attached. There are 3 types (var) of information in the file: 1) trivia 2) iq 3) audio

At first I should have a choice to edit or add to one of these 3. Here are the following variables that need to be added when creating a new entry (with notes and samples):

1) trivia:

{

questionText:"Who is the president of the United States?'",

For some reason my description got cut off - here is a continuation.

1) trivia:
{
questionText:"Who is the president of the United States?'", <--- QUESTION
fontSize:".8em", <---- Font Size (The default should be 8 - but there should be a choice between 5 - 9em)
answers:[
"George Bush", <---- Choice A
"Hillary Clinton", <----- Choice B
"Will Smith", <---- Choice C
"Barack Obama" <---- Choice D
],
weights:[ <----- SCORE
3, <---- Score for Choice A (Default is 0 -- should have choice between 0 - 10)
3, <---- Score for Choice B (Default is 0 -- should have choice between 0 - 10)
1, <---- Score for Choice C (Default is 0 -- should have choice between 0 - 10)
10 <---- Score for Choice D (Default is 0 -- should have choice between 0 - 10)
],
diffulty:1, <---- Question Difficulty (Default is 1 - should have choice between 1 - 3)
answered:false, <---- (Don't need to edit -- but needs to be added to each new entry)
answer:0 <---- (Don't need to edit -- but needs to be added to each new entry)
},

2) iq
(SAME VARIABLES AS #1)

3) audio
{
questionText:"Speak the following phrase: Prince Charles is a nerd", <--- AUDIO TEXT - NEED TO BE ABLE TO ADD EDIT
answered:false, <---- (Don't need to edit -- but needs to be added to each new entry)
answerCount:"0", (Don't need to edit -- but needs to be added to each new entry)
answer:0 (Don't need to edit -- but needs to be added to each new entry)
},

HTML JavaScript PhoneGap PHP 软件构架

项目ID: #4805061

关于项目

1个方案 远程项目 活跃的Aug 7, 2013

授予:

praveen458

Hi, I am a JavaScript and PHP programmer.I can do this job perfectly as per your need and available now. Please look at my message. thanks,praveen

$40 USD 在3天内
(14条评论)
4.0

1 威客就此工作平均出价 $40

wildcoder91

tiy consider its done

$155 USD 在6天内
(7条评论)
2.1