Loading Animation for Large Man Page Repositories


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Loading Animation for Large Man Page Repositories
# 1  
Old 09-16-2018
Loading Animation for Large Man Page Repositories

Should have done this 10 years ago, so better late than never:

Just added a "loading" animation to the the man page repositories when they load, especially since some are very large and take many seconds to load.

See for example:

https://www.unix.com/man-page-openso...repository.php

This is too trivial to do:

Added this single div element to our forum_man-pages_repository template:

Code:
<div id="loading" align="center">
<p>Repository <img  src="https://www.unix.com/images/ajax-loader.gif"> Please Wait</p>
</div>

Added this very simple jQuery to the same template:

Code:
<script>
$(document).ready( function(){
  $('#loading').css({"display":"none"});
 });
</script>

So simple... LOL
# 2  
Old 09-16-2018
Made a slight change to this "repository loading" animation:

Code:
<div id="loading" align="center">
  <p>Repository <img  src="https://www.unix.com/images/ajax-loader.gif"> Please Wait</p>
</div>
<div id="loaded_msg" align="center" style="display:none;">
  <p>Repository Loaded</p>
</div>

Code:
<script>
$(document).ready( function(){
   $('#loading').css({"display":"none"});
   $('#loaded_msg').fadeIn().delay(3000).fadeOut();
 });
</script>

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Man Page Repositories - Added jQuery and Bootstrap

I added both jQuery and Bootstrap Javacript libs to all man page repository pages. TODO: I need to add pagination to these repos because most are very large and load to slow on a single page. For the first upgrade, I manually added one new CSS Class (repository) to the main repo tables and... (0 Replies)
Discussion started by: Neo
0 Replies

2. Solaris

man page question

What does the last change means in man page .. does that this man page has not been updated since 2003 or something else ? newfs-options The options are documented in the newfs man page. SunOS 5.10 Last change: 9 Dec 2003 1 System... (2 Replies)
Discussion started by: fugitive
2 Replies

3. Solaris

Unable to get help from man page

Help, it seem that i am unable to get man help form solaris 10. I am running SunOS unknown 5.10 Generic_120012-14 i86pc i386 i86pc when ever i try to man a command what i get is "No manual entry" like the one below. # man grep No manual entry for grep. # man ls No manual entry for ls.... (8 Replies)
Discussion started by: ezsurf
8 Replies

4. UNIX for Advanced & Expert Users

man page issue

Man page is not working my system. It is giving the following the following error > man ls gdbm fatal: read error with debug option > man -d ls ... .... ... ... using less as pager checking for locale en_US add_nls_manpath(): processing /usr/local/man:/usr/share/man:/usr/X11R6/man... (4 Replies)
Discussion started by: praveenkumar_l
4 Replies

5. Solaris

loading man pages

Hi, I am using solaris. I have to load the some man pages on different node from solaris. I have no basic idea regarding this. can anyone plz give me some basic ideas so that i can proceed. Thanks in advance. (3 Replies)
Discussion started by: ravi rajeev
3 Replies

6. Red Hat

scp-1.2.27 man page

Hi Guys, I'm looking for the man page for scp version 1.2.27 I have an old redhat server that has a few large scripts that use this version and I want to know what the -A flag does and the man page is not on there. (4 Replies)
Discussion started by: Tornado
4 Replies

7. UNIX for Dummies Questions & Answers

adding a man page

I was wonderiong if ther is a way for a user to add a man page specific to thier account. similar to copying the .1 or .1.gz to /usr/share/man/man1 "cp *.1.gz /usr/share/man/man1". Except for using another folder as I don't have access to /usr/share/man/man1. I would think that this might involve... (1 Reply)
Discussion started by: jacob358
1 Replies

8. UNIX for Dummies Questions & Answers

how do you create a man page?

i've never done this before. i created a script that I placed in /usr/bin, but want to create a man page for it. i'm clueless thanks (3 Replies)
Discussion started by: theDirtiest
3 Replies
Login or Register to Ask a Question