Spaces:
Sleeping
Sleeping
File size: 725 Bytes
b4d2108 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
no_copy_paste_js = """
function disableCopyPaste() {
// 禁用复制
document.addEventListener('copy', (event) => {
event.preventDefault();
alert('Copy has been disabled.');
});
// no paste
document.addEventListener('paste', (event) => {
event.preventDefault();
alert('Paste has been disabled, please type your original answer.');
});
}
"""
background_css = """
.gradio-container {
background: url('https://platform.vox.com/wp-content/uploads/sites/2/chorus/uploads/chorus_asset/file/9376591/blade3.jpg');
background-size: cover;
background-attachment: fixed;
background-position: center;
}
""" |