by Kami-sama January 7th 2017, 11:34 pm
No go - same happens -.-
Cool! GL on your trip
I will continue experimenting.
OMG, I'm genius :DD added tis IF, to check if the page is USER profile.
- Code:
if(document.URL.indexOf("http://hogas.huhohi.com/u") >= 0){
var a = document.getElementById("field_id10").getElementsByClassName("field_uneditable")[0].innerHTML;
if (a == a1) {
R+=0;
} else if (a == a2) {
R+=2;
} else if (a == a3) {
R+=5;
} else if (a == a4) {
R+=8;
}
var b = document.getElementById("field_id12").getElementsByClassName("field_uneditable")[0].innerHTML;
if (b == b1) {
R+=0;
} else if (b == b2) {
R+=2;
} else if (b == b3) {
R+=5;
} else if (b == b4) {
R+=8;
}
}
Okey, now some minor things left
I want this test and result to be separated from other profile fields in some way (different background color, image separator before/after). Any ideas how to do that?
P.S. Let me know if I can optimize my script in any way.
P.P.S. Is there a way to delete "no choice"? or the only way is by having default answer?
Also, mods and admins can always see the questions, even i the answer is "no answer". BUT simple member does not see them. I the member does not see them, then the issue with not showing announcement appears. Soo. I guess we must have "default" option. ((Resoled with an if to check if the element exists, LOL))