+ 6
Suggestion What if this discussion for codes developer?
Suggestion # I suggest (if any one has codes needs to add modths to do develop on code by public sololearn community just put the code here and the one who makes the code will ask for any modths action or function) so The one who is able to make changes to helps code needed and each person has a good function for a specific code that can develop the code placed function and do comment about the function .. Here everyone is able to get the code and the functions that he responds to
8 Réponses
+ 6
I will start https://code.sololearn.com/W37ySHEZ5mKa/?ref=app. I want to call width and height and make changes by array
+ 4
Hi Mohammed,
I'm sorry, I don't understand what you are asking here. Maybe rephrase the statement, simplify it so people can understand what you mean.
+ 4
@lpang Suggestion
# I suggest (if any one has codes needs to add modths to do develop on code by public sololearn community just put the code here and the one who makes the code will ask for any modths action or function) so The one who is able to make changes to helps code needed and each person has a good function for a specific code that can develop the code placed function and do comment about the function .. Here everyone is able to get the code and the functions that he responds to
+ 4
Let's review your code:
var d = document.getElementById("convan1")
// d is undefined, there's no element with id #convan1 in your html
[used in ch()]
var f=3
var t=new Array( "rgba'(10, 200, 3, 1)'", "rgba'(10, 20, 3, 1)'" )
/* rgba is for color composition (plus transparency), you can't use it to change element size, changing color may work.
[used in ch()]
*/
var g=""
// g should have value,
// [used in ch() & chch()]
var e=""
// e should have value,
// [used in chch()]
function ch(){
w="#"+t[g]
// g is empty,w=t[g] is undetermined
con=d.getContext("2d")= con=style.width=w
/* since d is undefined, this probably fail, I think w doesn't contain a valid value for size (width)
*/
}
function chch(){
// as defined above:
// e="", g="" (both are string)
// can't compare string & number
if(e==2){
g++ // g="" (string), g++ expects number
}
if(g==68)
e=300
if(e==50){
g--
if(g==190)
e=30()
}
ch()
}
function start(){
// setContext() is undefined, tthis raises error
flash=setContext("chch()",3)
}
start()
That's how I see it Mohammed, I'm still learning
JavaScript, I hope other more experienced users can help more, I can only go that far.
Hope that helps
+ 4
oh that's good it helps
+ 3
that's really good thanks
+ 1
hiii
0
what