sheep2.js demo page

sheep2.js is the second version of the little sheep watermark in the bottom right corner of the page. Try right-clicking or long pressing it! It's the successor of sheep.js, and was used for almost all web pages created between 2017-11-30 and 2018-12-14, when sheep3.js was created.

In sheep2.js, the little sheep has a new name: l' ŝafeto. It is a terse form of "la eta ŝafo," Esperanto for "the little sheep."

L' ŝafeto features

Generally, sheep2.js has roughly the same features as sheep.js, as most of the improvements were on the code quality side.

Context menu features

Right-clicking or long-pressing on l' ŝafeto opens a context menu with various options. While now it looks uglier than sheep.js's context menu, I believe I designed it based on Chrome's context menu at the time, with sharp corners and a border. I was a big fan of Chrome's context menu for some reason.

Style documentation

sheep2.css contains a CSS reset:

L' ŝafeto is a custom <sheep-btn> element, and it can be hidden by adding the no-sheep class to <body>.

SHEEP API documentation

One of the reasons I wrote sheep2.js was to relax the requirement that the script be loaded in the document body, and to avoid injecting the stylesheet dynamically, which I felt was bad practice (since it slightly increases load times).

<link rel="stylesheet" type="text/css" href="../sheep2.css">
<script src="../sheep2.js" charset="utf-8"></script>

Create a notification