Home Man
Search
Today's Posts
Register

Discuss whatever is on your mind. New members can introduce themselves. Talk or comment about any topic that's on your mind..

Loading Animation for Large Man Page Repositories

Tags
discussions, jquery, loading, man, man page repositories, man pages

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 5 Days Ago
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 5 Days Ago
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 to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Man Page Repositories - Added jQuery and Bootstrap Neo What is on Your Mind? 0 07-24-2018 04:42 AM
remove large portion of web page code between two tags georgi58 Shell Programming and Scripting 5 04-29-2012 01:46 PM
PHP client location based page loading zing_foru Web Programming 1 03-11-2012 12:30 PM
Repositories in sources.list zdorian Debian 0 12-20-2011 04:01 PM
Page Break in large file koti_rama Shell Programming and Scripting 3 11-28-2011 05:01 AM
amount of memory allocated to large page daveisme AIX 1 09-08-2009 09:46 AM
background image not loading in newly thrown html page by shell script ravi18s Shell Programming and Scripting 10 05-05-2009 07:41 AM
Page cache too large timothy.edwards Solaris 4 03-28-2009 06:30 PM
Function loading in a shell scripting like class loading in java mpsc_sela Shell Programming and Scripting 1 06-09-2008 07:02 AM


All times are GMT -4. The time now is 12:18 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password