-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
67 lines (58 loc) · 2.09 KB
/
index.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Bubble cursor example/prototype</title>
<script type="text/javascript">
/* <![CDATA[ */
(function() {
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://api.flattr.com/js/0.5.0/load.js?mode=auto';
t.parentNode.insertBefore(s, t);
})();
/* ]]> */
</script>
<style type="text/css">
body {
font: 14pt/1.2 Helvetica,Arial,sans-serif;
}
h1, h2, h3 { font-weight: normal; text-align: center; }
#container {
width: 800px;
margin: 0 auto;
}
li {
margin: 5px 0;
}
#bookmarklet {
margin-top: -10px;
display: block;
padding: 20px;
width: 200px;
height: 200px;
line-height: 200px;
margin: 0 auto;
background: #529DFF;
color: #FFF;
text-decoration: none;
font-weight: bold;
-moz-border-radius: 999px;
-webkit-border-radius: 999px;
border-radius: 999px;
}
</style>
</head>
<body>
<div id="container">
<h1>Bubble cursor example/prototype</h1>
<h2><a id="bookmarklet" href="#">Bubble cursor</a></h2>
<script type="text/javascript">document.getElementById("bookmarklet").href='javascript:var s=document.createElement("script");s.src="'+location.href+'bubble.min.js";document.body.appendChild(s);void(0);';</script>
<p><strong>Drag</strong> the above bookmarklet to your <strong>bookmarks bar</strong> or <strong>another tab</strong>. Use it on any webpage to see how a bubble cursor works.</p>
<p>The current link will be outlined in blue. Click to follow the link. <strong>Press B</strong> to see the bubble.</p>
<p>Made as a quick experiment by <a href="http://stuartk.co.uk/">Stuart Knightley</a> based on <a href="http://ieor.berkeley.edu/~anandk/bubbleCursor.html">this research/demo</a> via <a href="http://ignorethecode.net/blog/2010/09/28/bubble_cursor/">ignore the code</a>.</p>
<p>Check out the code on <a href="http://github.com/Stuk/Bubble-cursor">Github</a>. <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://stuartk.co.uk/bubble-cursor/"></a></p>
</div>
</body>
</html>