changes
This commit is contained in:
@@ -82,7 +82,6 @@ $(function() {
|
||||
});
|
||||
|
||||
function updateFace(value) {
|
||||
saveSliderValue(value);
|
||||
var face = $(".face-wrapper").children();
|
||||
|
||||
switch (value) {
|
||||
@@ -113,22 +112,6 @@ $(function() {
|
||||
}
|
||||
}
|
||||
|
||||
function saveSliderValue(value) {
|
||||
// Odeslat aktuální hodnotu posuvníku na server
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "saveData.php",
|
||||
data: JSON.stringify({ sliderValue: value }),
|
||||
contentType: "application/json; charset=utf-8",
|
||||
success: function(response) {
|
||||
console.log("Slider value saved successfully!");
|
||||
},
|
||||
error: function(error) {
|
||||
console.error("Error saving slider value:", error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function removeClass() {
|
||||
$(".face-wrapper").children().removeClass("case1 case2 case3 case4 case5 case6");
|
||||
}
|
||||
@@ -152,4 +135,4 @@ $(function() {
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user