Show/Hide Spinner – AngularJS/jQuery/Javascript

Standard
<div id="dvProgress" style="display: none; position: absolute; border: none; 
     z-index: 100; width: 100%; height: 100%; filter: alpha(opacity=80);
     -moz-opacity: .8; opacity: .8;">
    <img src="../Images/loader.gif" style="top: 48%; left: 42%;
      position: relative;" />
</div>

function showLoader(mode) {
            if (mode)
               $('#dvProgress').show();
            else
               $('#dvProgress').hide();
            }
Advertisements

2 thoughts on “Show/Hide Spinner – AngularJS/jQuery/Javascript

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s