//slider1
$ („#slideBox1“). Schweber (
{
annehmen: „#marker1“,
Brüche: 5,
onSlide: Funktion (cordx, cordy, x, y)
{
wenn (cordx >= 0 && cordx <= 20) {
$ („#slider1“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider1“) .addClass („rating0“);
document.getElementById („rating1“) .value = 0;
} //close wenn 1
wenn (cordx >= 20 && cordx <= 40) {
$ („#slider1“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider1“) .addClass („rating1“);
document.getElementById („rating1“) .value = 1;
} //close wenn 1
wenn (cordx >= 40 && cordx <= 60) {
$ („#slider1“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider1“) .addClass („rating2“);
document.getElementById („rating1“) .value = 2;
} //close wenn 2
wenn (cordx >= 60 && cordx <= 80) {
$ („#slider1“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider1“) .addClass („rating3“);
document.getElementById („rating1“) .value = 3;
} //close wenn 3
wenn (cordx >= 80 && cordx <= 100) {
$ („#slider1“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider1“) .addClass („rating4“);
document.getElementById („rating1“) .value = 4;
} //close wenn 4
wenn (cordx >= 100) {
$ („#slider1“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider1“) .addClass („rating5“);
document.getElementById („rating1“) .value = 5;
} //close wenn 5
},
Werte: [
[0.1.2.3.4.5]
]
}
);
$ („#slideBox2“). Schweber (
{
annehmen: „#marker2“,
Brüche: 5,
onSlide: Funktion (cordx, cordy, x, y)
{
wenn (cordx >= 0 && cordx <= 20) {
$ („#slider2“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider2“) .addClass („rating0“);
document.getElementById („rating2“) .value = 0;
} //close wenn 1
wenn (cordx >= 20 && cordx <= 40) {
$ („#slider2“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider2“) .addClass („rating1“);
document.getElementById („rating2“) .value = 1;
} //close wenn 1
wenn (cordx >= 40 && cordx <= 60) {
$ („#slider2“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider2“) .addClass („rating2“);
document.getElementById („rating2“) .value = 2;
} //close wenn 2
wenn (cordx >= 60 && cordx <= 80) {
$ („#slider2“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider2“) .addClass („rating3“);
document.getElementById („rating2“) .value = 3;
} //close wenn 3
wenn (cordx >= 80 && cordx <= 100) {
$ („#slider2“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider2“) .addClass („rating4“);
document.getElementById („rating2“) .value = 4;
} //close wenn 4
wenn (cordx >= 100) {
$ („#slider2“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider2“) .addClass („rating5“);
document.getElementById („rating2“) .value = 5;
} //close wenn 5
},
Werte: [
[0.1.2.3.4.5]
]
}
);
$ („#slideBox3“). Schweber (
{
annehmen: „#marker3“,
Brüche: 5,
onSlide: Funktion (cordx, cordy, x, y)
{
wenn (cordx >= 0 && cordx <= 20) {
$ („#slider3“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider3“) .addClass („rating0“);
document.getElementById („rating3“) .value = 0;
} //close wenn 1
wenn (cordx >= 20 && cordx <= 40) {
$ („#slider3“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider3“) .addClass („rating1“);
document.getElementById („rating3“) .value = 1;
} //close wenn 1
wenn (cordx >= 40 && cordx <= 60) {
$ („#slider3“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider3“) .addClass („rating2“);
document.getElementById („rating3“) .value = 2;
} //close wenn 2
wenn (cordx >= 60 && cordx <= 80) {
$ („#slider3“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider3“) .addClass („rating3“);
document.getElementById („rating3“) .value = 3;
} //close wenn 3
wenn (cordx >= 80 && cordx <= 100) {
$ („#slider3“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider3“) .addClass („rating4“);
document.getElementById („rating3“) .value = 4;
} //close wenn 4
wenn (cordx >= 100) {
$ („#slider3“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider3“) .addClass („rating5“);
document.getElementById („rating3“) .value = 5;
} //close wenn 5
},
Werte: [
[0.1.2.3.4.5]
]
}
);
$ („#slideBox4“). Schweber (
{
annehmen: „#marker4“,
Brüche: 5,
onSlide: Funktion (cordx, cordy, x, y)
{
wenn (cordx >= 0 && cordx <= 20) {
$ („#slider4“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider4“) .addClass („rating0“);
document.getElementById („rating4“) .value = 0;
} //close wenn 1
wenn (cordx >= 20 && cordx <= 40) {
$ („#slider4“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider4“) .addClass („rating1“);
document.getElementById („rating4“) .value = 1;
} //close wenn 1
wenn (cordx >= 40 && cordx <= 60) {
$ („#slider4“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider4“) .addClass („rating2“);
document.getElementById („rating4“) .value = 2;
} //close wenn 2
wenn (cordx >= 60 && cordx <= 80) {
$ („#slider4“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider4“) .addClass („rating3“);
document.getElementById („rating4“) .value = 3;
} //close wenn 3
wenn (cordx >= 80 && cordx <= 100) {
$ („#slider4“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider4“) .addClass („rating4“);
document.getElementById („rating4“) .value = 4;
} //close wenn 4
wenn (cordx >= 100) {
$ („#slider4“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider4“) .addClass („rating5“);
document.getElementById („rating4“) .value = 5;
} //close wenn 5
},
Werte: [
[0.1.2.3.4.5]
]
}
);
$ („#slideBox5“). Schweber (
{
annehmen: „#marker5“,
Brüche: 5,
onSlide: Funktion (cordx, cordy, x, y)
{
wenn (cordx >= 0 && cordx <= 20) {
$ („#slider5“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider5“) .addClass („rating0“);
document.getElementById („rating5“) .value = 0;
} //close wenn 1
wenn (cordx >= 20 && cordx <= 40) {
$ („#slider5“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider5“) .addClass („rating1“);
document.getElementById („rating5“) .value = 1;
} //close wenn 1
wenn (cordx >= 40 && cordx <= 60) {
$ („#slider5“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider5“) .addClass („rating2“);
document.getElementById („rating5“) .value = 2;
} //close wenn 2
wenn (cordx >= 60 && cordx <= 80) {
$ („#slider5“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider5“) .addClass („rating3“);
document.getElementById („rating5“) .value = 3;
} //close wenn 3
wenn (cordx >= 80 && cordx <= 100) {
$ („#slider5“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider5“) .addClass („rating4“);
document.getElementById („rating5“) .value = 4;
} //close wenn 4
wenn (cordx >= 100) {
$ („#slider5“) .removeClass („rating1 rating2 rating3 rating4 rating5 rating0“);
$ („#slider5“) .addClass („rating5“);
document.getElementById („rating5“) .value = 5;
} //close wenn 5
},
Werte: [
[0.1.2.3.4.5]
]
}
);
|