It is interesting to know what parts are copied by readers.
Using this function, copy notice function was implemented in this blog.
Sign up to Mandrill
Sign up to Mandrill, and get an API key.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
In Octopress, I made
and put my functions there.
It is read from
1 2 3 4 5 6 7 8
To use the script, you just need to change:
key: What you got from Mandrill.
from_email: Sender’s email address. Any adress with correct shape (
[email protected]) can be used.
name: Receiver’s name.
the function is called when
copy event occurs.
(by Ctrl-C(Cmd-C) or from contextmenu.)
In the function,
window.getSelection() is used to get a selected region.
document.selection part is for old IE.
In this way, API key is published. It is a bit bad, but the key is used only for this purpose, then I think it is ok for now.
Copy notice function was implemented rather easier than what I thought.
This method is not only for Octopress, but you can use in any sites/blogs. It is interesting to see it.
After the implementation, I some copies. It seems that there are many copies which are just accidents…