-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbookmarklet.html
More file actions
60 lines (47 loc) · 1.86 KB
/
Copy pathbookmarklet.html
File metadata and controls
60 lines (47 loc) · 1.86 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>uClassify Classifier Bookmarklet</title>
<!-- meta tags -->
<meta name="keywords" content="text, classifier, uClassify, bookmarklet">
<meta name="description" content="Demo page for Smith & Thompson's Classifier Bookmarklet">
<!-- stylesheets -->
<!-- javascript -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
var init = function(){
var oBm = document.getElementById('bookmarklet');
oBm.addEventListener('mouseover',function (e) {
document.getElementById('instructions').innerHTML = '<p>Yep, that one. Drag it and Drop it onto your browser\'s toolbar</p>';
},true);
oBm.addEventListener('mouseout',function (e) {
document.getElementById('instructions').innerHTML = '';
},true);
}
window.onload = init;
</script>
<!-- Internet Explorer HTML5 enabling script: -->
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<style type="text/css">
.clear {
zoom: 1;
display: block;
}
</style>
<![endif]-->
</head>
<body>
<header>
<h1>uClassify Classifier Bookmarklet</h1>
</header>
<section id="description">
<p>Drag the link below up to your toolbar to create your bookmarklet. Then, whenever you want to classify a web page, just click on the bookmarklet to see how the page you're on scores!</p>
</section>
<!-- be sure to change tokens ***YOUR_SERVER*** & ***YOUR_FILE_PATH*** to reflect your host & file name -->
<p><a href="javascript:(function(){ window.open('http:/***YOUR_SERVER***/***YOUR_FILE_NAME***?clsfr=topics&url='+encodeURIComponent(location.href),'uclassifyme',
'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); })();" id="bookmarklet" title="uClassify this!">uClassify Me!</a></p>
<section id="instructions"></section>
</body>
</html>