Search Results (Search, New, and Today's Topics) Animation Switch


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Search Results (Search, New, and Today's Topics) Animation Switch
# 1  
Old 07-28-2018
Search Results (Search, New, and Today's Topics) Animation Switch

Hey,

I added an animation switch on the search results page; so by default the thread previews are off, but if you want to look at them, just click on the green button and the thread previews will turn on (and back off).

See image and attached animation:

Image
This User Gave Thanks to Neo For This Post:
# 2  
Old 07-28-2018
Here is the query code which makes it all possible:

Code:
jQuery(document).ready(function(){
var mySwitch = false;
jQuery("#neo-search-results-animation").click(function(){
   if(jQuery(this).hasClass("fa-toggle-on")){
       jQuery(this).removeClass("fa-toggle-on");
       jQuery(this).addClass("fa-toggle-off");
       jQuery(".neo-threadbit-threadpreview").removeClass("neo-threadbit");
   }
   else if(jQuery("#neo-search-results-animation").hasClass("fa-toggle-off")){
       jQuery(this).removeClass("fa-toggle-off");
       jQuery(this).addClass("fa-toggle-on");
       jQuery(".neo-threadbit-threadpreview").addClass("neo-threadbit");
   }
  jQuery(".neo-threadbit").hover(function(){
      jQuery(this).css({"cursor":"pointer"});
      jQuery(this).find(".neo-threadbit-threadpreview").toggle();
  });
 });
});

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search pattern in today's files only

Hi Friends, I am in search of unix command which can search a particular pattern in all files which are created/modified today ONLY. Which is the best way to achieve this? Thanks in advance. (1 Reply)
Discussion started by: Nakul_sh
1 Replies

2. Shell Programming and Scripting

Always output 6 columns regardless of search results

If I am searching for AA then then BB in a loop, how do I make the output always contain 6 columns of comma separated data even when there may only be 4 search matches? AA11 AA12 AA13 AA14 BB11 BB12 BB13 BB14 BB15 BB16 Final output: AA11,AA12,AA13,AA14,,,... (14 Replies)
Discussion started by: jojojmac5
14 Replies

3. Shell Programming and Scripting

Gawk Narrowing Down Search Results

I am using GAWK to search for a specific pattern: gawk '{IGNORECASE=1;} /<a href=/&&/\$/,/<\/a/' index.html <a class=author href="http://washingtondc.craigslist.org/search/?areaID=10&amp;amp;catAbb=sss&amp;amp;query=ps vita" title="craigslist washington, DC | all fo r sale / wanted search &quot;ps... (1 Reply)
Discussion started by: metallica1973
1 Replies

4. Shell Programming and Scripting

Can ctag and cscope support recording search results and displaying the history results ?

Hello , When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
Discussion started by: 915086731
0 Replies

5. Shell Programming and Scripting

AWK - no search results

Hi all, I'm new to awk and I'm experiencing syntax error that I don't know how to resolve. Hopefully some experts in this forum can help me out. I created an awk file that look like this: $ cat myawk.awk BEGIN { VAR1=PATTERN1 VAR2=PATTERN2 } /VAR1/ { flag=1 } /VAR2/ { flag=0 } {... (7 Replies)
Discussion started by: hk18
7 Replies

6. Shell Programming and Scripting

Operations on search results

Hi, I am a newbie at Unix scritping, and I have a question. Looking at the search functionality on Unix. Here I have a structure root---------dir1 ------- file1, file2, file3 |_____dir2 ______file1@, file4 |_____dir3_______file1@, file5 Under root directory, I... (4 Replies)
Discussion started by: nj302
4 Replies
Login or Register to Ask a Question