|
1 |
|
2 /* START non link areas where cursor should change to pointing hand */ |
|
3 $('.t_button').mouseover(function() { |
|
4 $('.t_button').css('cursor','pointer'); |
|
5 /*document.getElementById(this.id).style.cursor='pointer';*/ |
|
6 }); |
|
7 |
|
8 /* END non link areas */ |
|
9 $('#smallA').click(function() { |
|
10 $('.content .heading,.content h1, .content h2, .content h3, .content p, .content li, .content table').css('font-size','smaller'); |
|
11 $('.t_button').removeClass('active') |
|
12 $(this).addClass('active') |
|
13 }); |
|
14 |
|
15 $('#medA').click(function() { |
|
16 $('.content .heading').css('font','600 16px/1 Arial'); |
|
17 $('.content h1').css('font','600 18px/1.2 Arial'); |
|
18 $('.content h2').css('font','600 16px/1.2 Arial'); |
|
19 $('.content h3').css('font','600 14px/1.2 Arial'); |
|
20 $('.content p').css('font','13px/20px Verdana'); |
|
21 $('.content li').css('font','400 13px/1 Verdana'); |
|
22 $('.content li').css('line-height','14px'); |
|
23 $('.content table').css('font','13px/1.2 Verdana'); |
|
24 $('.content .heading').css('font','600 16px/1 Arial'); |
|
25 $('.content .indexboxcont li').css('font','600 13px/1 Verdana'); |
|
26 $('.t_button').removeClass('active') |
|
27 $(this).addClass('active') |
|
28 }); |
|
29 |
|
30 $('#bigA').click(function() { |
|
31 $('.content .heading,.content h1, .content h2, .content h3, .content p, .content li, .content table').css('font-size','large'); |
|
32 $('.content .heading,.content h1, .content h2, .content h3, .content p, .content li, .content table').css('line-height','25px'); |
|
33 $('.t_button').removeClass('active') |
|
34 $(this).addClass('active') |
|
35 }); |
|
36 |
|
37 function doSearch(str){ |
|
38 |
|
39 if (str.length>3) |
|
40 { |
|
41 alert('start search'); |
|
42 // document.getElementById("refWrapper").innerHTML=""; |
|
43 return; |
|
44 } |
|
45 else |
|
46 return; |
|
47 |
|
48 // var url="indexSearch.php"; |
|
49 // url=url+"?q="+str; |
|
50 // url=url+"&sid="+Math.random(); |
|
51 // var url="http://localhost:8983/solr/select?"; |
|
52 // url=url+"&q="+str; |
|
53 // url=url+"&fq=&start=0&rows=10&fl=&qt=&wt=&explainOther=&hl.fl="; |
|
54 |
|
55 // $.get(url, function(data){ |
|
56 // alert(data); |
|
57 // document.getElementById("refWrapper").innerHTML=data; |
|
58 //}); |
|
59 |
|
60 } |