Spaces:
Runtime error
Runtime error
Update custom.py
Browse files
custom.py
CHANGED
@@ -127,13 +127,13 @@ js_code = """
|
|
127 |
event.preventDefault();
|
128 |
}
|
129 |
});
|
130 |
-
textinput.addEventListener('focusin', function() {
|
131 |
event.stopPropagation();
|
132 |
-
|
133 |
});
|
134 |
-
textinput.addEventListener('focusout', function() {
|
135 |
event.stopPropagation();
|
136 |
-
|
137 |
});
|
138 |
|
139 |
// Ctrl + Enter快捷方式
|
|
|
127 |
event.preventDefault();
|
128 |
}
|
129 |
});
|
130 |
+
textinput.addEventListener('focusin', function(event) {
|
131 |
event.stopPropagation();
|
132 |
+
textarea.style.borderColor = 'rgb(255,196,35)';
|
133 |
});
|
134 |
+
textinput.addEventListener('focusout', function(event) {
|
135 |
event.stopPropagation();
|
136 |
+
textarea.style.borderColor = 'white';
|
137 |
});
|
138 |
|
139 |
// Ctrl + Enter快捷方式
|