Skip to content

Commit 669f6d2

Browse files
committed
adapted for mootools
1 parent 73ae027 commit 669f6d2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html>
2-
<html lang="fr">
2+
<html lang="de">
33
<head>
44
<meta charset="UTF-8">
55
<title>Sharrre.com</title>
66
<meta name="description" content="Sharrre" />
7-
<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
8-
<script src="jquery.sharrre-1.3.1.js"></script>
7+
<script src="http://ajax.googleapis.com/ajax/libs/mootools/1.5.1/mootools-yui-compressed.js"></script>
8+
<script src="mootools.sharrre-1.3.5.js"></script>
99
<script>
10-
$(function(){
11-
$('#demo1').sharrre({
10+
window.addEvent('domready',function() {
11+
new Sharrre('demo1',{
1212
share: {
1313
googlePlus: true,
1414
facebook: true,
@@ -21,15 +21,15 @@
2121
twitter: {count: 'vertical'},
2222
delicious: {size: 'tall'}
2323
},
24-
hover: function(api, options){
25-
$(api.element).find('.buttons').show();
24+
onHover: function(api, options){
25+
$(api.element).getElement('.buttons').show();
2626
},
27-
hide: function(api, options){
28-
$(api.element).find('.buttons').hide();
27+
onHide: function(api, options){
28+
$(api.element).getElement('.buttons').hide();
2929
}
3030
});
3131

32-
$('#demo2').sharrre({
32+
new Sharrre('demo2',{
3333
share: {
3434
googlePlus: true,
3535
facebook: true,

0 commit comments

Comments
 (0)