-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1.js
More file actions
55 lines (52 loc) · 1.08 KB
/
Copy path1.js
File metadata and controls
55 lines (52 loc) · 1.08 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
var a=[],
y=$('#y'),
t1=$('#t'),
s=$('#s'),
btn=$('#btn'),
t='',
l=location.href;
a=$('#x').html().split('*');
function btnA(){btn.attr('href', 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href)+'&src=sdkpreparse');}
s.click(function(){
var t=t1.val(),
z='';
if(t){for(var k in a){
if( a[k].toLowerCase().indexOf(t.toLowerCase())>=0 ){
var c = a[k].split('`');
z+='<a target=_blank href=//'+A+c[1]+'>'+c[0]+'</a><br>';
}
}}
y.html(z);
location.href='#'+t;
btnA();
});
btnA();
var h;
if(l.indexOf('#')>0){
h= location.href.split('#')[1];
}else if(h=l.match('query=.+&')){
h=h[0];h=h.substr(6);h=h.substr(0,h.length-1)
}else if(h=l.match('query=.+$')){
h=h[0];h=h.substr(6);
}
if(h&&h!=''){
if(h.match(/%[A-Z0-9]/)){
h=decodeURIComponent(h);
}
t1.val(h);s.trigger('click');
}
var $w=$(window),w=false,$hd=$('#hd'),$l=$('#l'),$f=$('#f');
$w.scroll(function(){
w=true;
});
setInterval(function(){
if(w){
var f='removeClass';
if($w.scrollTop()>390){
f='addClass';
}
$hd[f]('f');
$l[f]('f');
$f[f]('f');
}
},500);