mirror of
				https://github.com/andrewgioia/keyrune.git
				synced 2025-11-03 23:50:45 +00:00 
			
		
		
		
	Updates to docs js
This commit is contained in:
		
							parent
							
								
									496038b4f7
								
							
						
					
					
						commit
						2470b15371
					
				@ -121,6 +121,35 @@ function filterIcons(q) {
 | 
			
		||||
                    $(this).addClass('hidden');
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        // check if after a date
 | 
			
		||||
        } else if (q.substring(0, 6) == 'after:') {
 | 
			
		||||
 | 
			
		||||
            // hide everything right away
 | 
			
		||||
            $(this).addClass('hidden');
 | 
			
		||||
 | 
			
		||||
            // get and check against the date
 | 
			
		||||
            date = new Date(q.split(':')[1]);
 | 
			
		||||
            if (release.getTime() > date.getTime()) {
 | 
			
		||||
                $(this).removeClass('hidden');
 | 
			
		||||
            } else {
 | 
			
		||||
                $(this).addClass('hidden');
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        // check if before a date
 | 
			
		||||
        } else if (q.substring(0, 7) == 'before:') {
 | 
			
		||||
 | 
			
		||||
            // hide everything right away
 | 
			
		||||
            $(this).addClass('hidden');
 | 
			
		||||
 | 
			
		||||
            // get and check against the date
 | 
			
		||||
            date = new Date(q.split(':')[1]);
 | 
			
		||||
            if (release.getTime() < date.getTime()) {
 | 
			
		||||
                $(this).removeClass('hidden');
 | 
			
		||||
            } else {
 | 
			
		||||
                $(this).addClass('hidden');
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        // otherwise check code/tags for the string
 | 
			
		||||
        } else {
 | 
			
		||||
            // show/hide icons based on query index
 | 
			
		||||
 | 
			
		||||
@ -121,6 +121,35 @@ function filterIcons(q) {
 | 
			
		||||
                    $(this).addClass('hidden');
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        // check if after a date
 | 
			
		||||
        } else if (q.substring(0, 6) == 'after:') {
 | 
			
		||||
 | 
			
		||||
            // hide everything right away
 | 
			
		||||
            $(this).addClass('hidden');
 | 
			
		||||
 | 
			
		||||
            // get and check against the date
 | 
			
		||||
            date = new Date(q.split(':')[1]);
 | 
			
		||||
            if (release.getTime() > date.getTime()) {
 | 
			
		||||
                $(this).removeClass('hidden');
 | 
			
		||||
            } else {
 | 
			
		||||
                $(this).addClass('hidden');
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        // check if before a date
 | 
			
		||||
        } else if (q.substring(0, 7) == 'before:') {
 | 
			
		||||
 | 
			
		||||
            // hide everything right away
 | 
			
		||||
            $(this).addClass('hidden');
 | 
			
		||||
 | 
			
		||||
            // get and check against the date
 | 
			
		||||
            date = new Date(q.split(':')[1]);
 | 
			
		||||
            if (release.getTime() < date.getTime()) {
 | 
			
		||||
                $(this).removeClass('hidden');
 | 
			
		||||
            } else {
 | 
			
		||||
                $(this).addClass('hidden');
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        // otherwise check code/tags for the string
 | 
			
		||||
        } else {
 | 
			
		||||
            // show/hide icons based on query index
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user