inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Jan 14, 2020 3:29:55 GMT -8
Peter I want to devlop it with some help so I can learn So where i may put '$[plugin.settings.autoform]' ?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jan 14, 2020 3:39:34 GMT -8
So layout exactly what this plugin should do.
Provide a step by step of how a user would play this.
Some people may not have read your original post, so provide as much info here as possible.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Jan 14, 2020 3:48:25 GMT -8
Well, When a user clicks a button
<button type="button" onclick="functionName();">Start</button The game starts by showing up a table, Then a question appear at the top of that table says the questions setted in the plugin, Then an input
<input id="idName" type="text"> And types any number, Then click the button to submit, Then a message will show up and says two things 'correct' or 'incorrect' And if that was correct the question will be changed
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jan 16, 2020 4:17:33 GMT -8
What do you have so far?
Do you have any of the plugin started?
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Jan 17, 2020 7:16:07 GMT -8
Peter sorry i don't have desktop for 35 days, i'm so sorry, if you can make one and make it editable also please
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jan 17, 2020 7:25:15 GMT -8
Peter sorry i don't have desktop for 35 days, i'm so sorry, if you can make one and make it editable also please
Errr...no. I will be happy to point you in the right direction, answer some questions etc. But I am not here in this board to create your plugin. You need to put some effort in yourself. If you don't, then it's basically a request isn't it? Your initial thread in the request board was you asking help develop the plugin you are creating, but now you have posted in here, it's become a request instead. I guess post back in the request board if that is the case.
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Feb 1, 2020 10:31:17 GMT -8
Peter not a lot and I'll make the plugin with some help
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Feb 18, 2020 10:13:48 GMT -8
Hi Peter I'll start tommorrow, I want to make a plan Will I need a for loop for the autoform ? I guess And I guess also I'll use arrays to remove and add the autoform content, is there a better way ?
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Feb 26, 2020 5:27:28 GMT -8
Hey Peter , I wrote now the next function randGame() {
var in = document.getElementById(''),
msg = document.getElementById(''),
autoform = pb.plugin.get('number_game').settings.game;
for (var i = 0; i < autoform.length; i++) {
var question = pb.plugin.get('number_game').settings.game.question,
answer = pb.plugin.get('number_game').settings.game.answer;
if (in == "") {
msg.innerHTML = "Can't be empty";
}
if (isNaN(in)) {
msg.innerHTML = "Numbers only";
}
if (in == question) {
msg.innerHTML = "Congratulations";
} else {
msg.innerHTML = "Try again";
}
} <div class="container">
<div class="title-bar"></div>
<div class="content">
<input id="in" type="text" />
<button onclick="randGame();">Submit</button>
</div>
</div> What will I need now, also is that correct as a first type ?
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Nov 2, 2020 8:24:01 GMT -8
Hey Peter , I wrote now the next function randGame() {
var in = document.getElementById(''),
msg = document.getElementById(''),
autoform = pb.plugin.get('number_game').settings.game;
for (var i = 0; i < autoform.length; i++) {
var question = pb.plugin.get('number_game').settings.game.question,
answer = pb.plugin.get('number_game').settings.game.answer;
if (in == "") {
msg.innerHTML = "Can't be empty";
}
if (isNaN(in)) {
msg.innerHTML = "Numbers only";
}
if (in == question) {
msg.innerHTML = "Congratulations";
} else {
msg.innerHTML = "Try again";
}
} <div class="container">
<div class="title-bar"></div>
<div class="content">
<input id="in" type="text" />
<button onclick="randGame();">Submit</button>
</div>
</div> What will I need now, also is that correct as a first type ? I noticed you have a for loop but not referencing [ i ] var question = pb.plugin.get('number_game').settings.game [ i ] .question Is how to correctly use an autoform
|
|