You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I prevent user to do control-c and control-a and print screen over index.html page when showing the book?
And for touch devices also to disable select / copy events?
Applying javascript and styling over index.html file doesnt work.It does not apply to book iframe .
style:
.b {
-webkit-user-select: none;
}
In my opinion, this question is not specific to Readium and should be asked on more general-purpose forums (such as StackOverflow?).
However, let me take this opportunity to share this tip: the Javascript snippet below explains how to inject "behaviours" (such as event interception) in each EPUB HTML Content Document that loads in the Readium views. Simply add to the head of index.html of the cloud reader:
How can I prevent user to do control-c and control-a and print screen over index.html page when showing the book?
And for touch devices also to disable select / copy events?
Applying javascript and styling over index.html file doesnt work.It does not apply to book iframe .
style:
.b {
-webkit-user-select: none;
}
script:
in index body <body class="chrome-app" onkeydown="javascript:Disable_Control_C()"
The text was updated successfully, but these errors were encountered: