mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-11-30 17:18:35 +00:00
16 lines
518 B
Python
16 lines
518 B
Python
src = """
|
|
(function() {
|
|
var loadCss = setInterval(function() {
|
|
if (document.readyState === "complete") {
|
|
clearInterval(loadCss);
|
|
|
|
var css = document.createElement("style");
|
|
css.type = "text/css";
|
|
css.innerHTML = "%s";
|
|
document.head.appendChild(css);
|
|
}
|
|
}, 10);
|
|
})()
|
|
"""
|
|
|
|
disable_text_select = src % 'body {-webkit-user-select: none; -khtml-user-select: none; -ms-user-select: none; user-select: none; cursor: default;}' |