This commit is contained in:
2023-08-17 17:11:47 +03:00
parent e6bc30cb80
commit ddf9f74db5
3 changed files with 15 additions and 3 deletions

View File

@@ -40,6 +40,11 @@
// }
// var i = 0
import "chat_socket_functions/inital_old_tab.js"
import "chat_socket_functions/etc_operations_for_chat_socket.js"
import "chat_socket_functions/update_messenger.js"
import "chat_socket_functions/update_tickets_operations_manager.js"
//
const chatSocket = new WebSocket(ws_url);
@@ -55,7 +60,7 @@ function sendMessageSocket (data) {
chatSocket.onmessage = function (e) {
let old_item_tab_user = inital_old_tab()
inital_old_tab()
let data = JSON.parse(e.data);
console.log('Data:', data);
console.log("return")

View File

@@ -39,8 +39,10 @@ function inital_slider (){
// validate
if (val < min) {
val = min;
$inputFrom[0].value = val
} else if (val > to) {
val = to;
$inputFrom[0].value = val
}
instance.update({
@@ -54,12 +56,14 @@ function inital_slider (){
// validate
if (val < from) {
val = from;
$inputTo[0].value = val
} else if (val > max) {
val = max;
$inputTo[0].value = val
}
instance.update({
to: val
});
});
}
}

View File

@@ -9,7 +9,10 @@
{# <script src="{% static "js/serch_town.js" %}"></script>#}
<script src="{% static "js/user_profile.js" %}"></script>
<script src="{% static "js/user_profile(boris).js" %}"></script>
<script src="{% static "js/range_slider_double.js" %}"></script>
<script src="{% static "js/chat_socket_functions/etc_operations_for_chat_socket.js" %}"></script>
<script src="{% static "js/chat_socket_functions/inital_old_tab.js" %}"></script>
<script src="{% static "js/chat_socket_functions/update_messenger.js" %}"></script>
<script src="{% static "js/chat_socket_functions/update_tickets_operations_manager.js" %}"></script>
{% endblock %}