MCPcopy
hub / github.com/027xiguapi/code-box / copyCodeCssFunc

Function copyCodeCssFunc

contents/php.tsx:92–108  ·  view source on GitHub ↗
(copyCode)

Source from the content-addressed store, hash-verified

90
91 /* 未登录复制代码 */
92 function copyCodeCssFunc(copyCode) {
93 copyCode
94 ? addCss(
95 `
96 .php-article .code,
97 .php-article{
98 -webkit-touch-callout: auto !important;
99 -webkit-user-select: auto !important;
100 -khtml-user-select: auto !important;
101 -moz-user-select: auto !important;
102 -ms-user-select: auto !important;
103 user-select: auto !important;
104 }`,
105 `php-copyCode-css`
106 )
107 : removeCss(`php-copyCode-css`)
108 }
109
110 function copyCodeFunc(copyCode) {
111 copyCode &&

Callers 1

copyCodeFuncFunction · 0.70

Calls 2

addCssFunction · 0.85
removeCssFunction · 0.85

Tested by

no test coverage detected