-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
40 lines (36 loc) · 942 Bytes
/
script.js
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
// JavaScript Document
jQuery(document).ready(function($) {
var allowed_sites = ['http://gizmodo.com'];
$('a').each(function() {
var href = this.href;
pathArray = href.split( '/' );
protocol = pathArray[0];
host = pathArray[2];
url = protocol + '//' + host;
/*if($.inArray(url, allowed_sites) !== -1) {*/
if(href.length > url.length + 3) {
Tipped.create(this, "http://nicholasrub.in/mhacks/quink.php", {
ajax: { data: {href: href}, type: 'post' },
skin: "white",
hook: 'rightmiddle',
maxWidth: 430,
stem: { spacing: 35 },
spinner: {
radius: 7,
height: 1,
width: 2.5,
dashes: 30,
opacity: 1,
padding: 10,
rotation: 700,
color: '#000000'
},
});
}
});
$("#tryme").click(function() {
$('html, body').animate({
scrollTop: $("#tryitout").offset().top
}, 500);
});
});