mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-02 17:33:58 +00:00
10 lines
318 B
Python
10 lines
318 B
Python
src = """
|
|
(function() {
|
|
var css = document.createElement("style");
|
|
css.type = "text/css";
|
|
css.innerHTML = "%s";
|
|
document.head.appendChild(css);
|
|
})()
|
|
"""
|
|
|
|
disable_text_select = src % 'body {-webkit-user-select: none; -khtml-user-select: none; -ms-user-select: none; user-select: none; cursor: default;}' |