Changeset 608 in genapp


Ignore:
Timestamp:
Jan 23, 2016, 8:46:15 AM (6 years ago)
Author:
ehb
Message:

move "loading" animation to ga js

Location:
languages/html5
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • languages/html5/add/js/ga.min.js

    r599 r608  
    44Object.size=function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b};ga.colors=function(a){ga.colors.background=a.background;ga.colors.text=a.text};ga.plot_options=function(){var a="rgb( "+ga.colors.text+" )";return{font:{color:a},grid:{hoverable:!1},xaxis:{color:"gray",lineWidth:.5,font:{color:a}},yaxis:{color:"gray",lineWidth:.5,font:{color:a}},lines:{lineWidth:1},zoom:{interactive:!1},pan:{interactive:!1}}};ga.set=function(a,b){b&&(ga.set.data[a]=b);return ga.set.data[a]};
    55ga.set.data={};ga.restricted={};ga.restricted.add=function(a,b){ga.restricted.ids[a]=ga.restricted.ids[a]||[];ga.restricted.ids[a].push(b)};ga.restricted.hideall=function(){for(var a in ga.restricted.ids)$(ga.restricted.ids[a].join()).hide()};ga.restricted.show=function(a){for(var b in a)ga.restricted.ids[a[b]]&&$(ga.restricted.ids[a[b]].join()).show()};ga.specproj=function(a,b){var c={};c.id=a;c.value=b;ga.specproj.data.push(c)};ga.specproj.data=[];ga.specproj.clear=function(){ga.specproj.data=[]};
    6 ga.specproj.gname=function(){var a,b,c="";for(a in ga.specproj.data)b=ga.specproj.data[a].id+$(ga.specproj.data[a].value).val(),c+=b.replace(/[^A-z0-9.-]+/g,"_");return c};ga.urlparams=function(a){for(var b=window.location.search.substring(1).split("&"),c=0;c<b.length;c++){var d=b[c].split("=");if(d[0]==a)return d[1]}};ga.frontpage=function(a){$("html").load(a)};ga.event=function(a,b,c){ga.event.log.push({menu:a,module:b,action:c,when:new Date})};ga.event.log=[];
    7 ga.event.list=function(){for(var a=0,b=ga.event.log.length,c="Client Date/Time is "+(new Date).toUTCString()+"\n";a<b;a++)c+=ga.event.log[a].menu+" "+ga.event.log[a].module+" "+ga.event.log[a].action+" "+ga.event.log[a].when.toUTCString()+"\n";return c};
     6ga.specproj.gname=function(){var a,b,c="";for(a in ga.specproj.data)b=ga.specproj.data[a].id+$(ga.specproj.data[a].value).val(),c+=b.replace(/[^A-z0-9.-]+/g,"_");return c};ga.urlparams=function(a){for(var b=window.location.search.substring(1).split("&"),c=0;c<b.length;c++){var d=b[c].split("=");if(d[0]==a)return d[1]}};ga.frontpage=function(a){$("html").load(a)};ga.loader=function(a,b){ga.loader.jqtag=a;ga.loader.delay=b};ga.loader.timeout=null;
     7ga.loader.startshow=function(){ga.loader.timeout?(clearTimeout(ga.loader.timeout),ga.loader.timeout=null,$(ga.loader.jqtag).show()):$(ga.loader.jqtag).hide()};ga.loader.hide=function(){ga.loader.timeout&&(clearTimeout(ga.loader.timeout),ga.loader.timeout=null);$(ga.loader.jqtag).hide()};ga.loader.show=function(){ga.loader.timeout&&clearTimeout(ga.loader.timeout);ga.loader.timeout=setTimeout(ga.loader.startshow(),ga.loader.delay)};
     8ga.event=function(a,b,c){ga.event.log.push({menu:a,module:b,action:c,when:new Date})};ga.event.log=[];ga.event.list=function(){for(var a=0,b=ga.event.log.length,c="Client Date/Time is "+(new Date).toUTCString()+"\n";a<b;a++)c+=ga.event.log[a].menu+" "+ga.event.log[a].module+" "+ga.event.log[a].action+" "+ga.event.log[a].when.toUTCString()+"\n";return c};
    89ga.fc=function(a,b){var c,d;ga.fc.cache[a]?b(ga.fc.cache[a]):ga.fc.waits[a]?ga.fc.waits[a].push(b):(ga.fc.waits[a]=[b],$.ajax(ga.fc.url+a).success(function(b){d=ga.fc.waits[a];delete ga.fc.waits[a];b=$.parseJSON(b);ga.fc.cache[a]=b;for(c=d.length;c--;)d[c](b)}).error(function(b){d=ga.fc.waits[a];delete ga.fc.waits[a];console.log("ajax error");console.dir(b);for(c=d.length;c--;)d[c]("**error**");ga.fc.ajax_error_msg("ajax get error: "+b.statusText)}));return!0};
    910ga.fc.clear=function(a){var b,c=ga.fc.children(a);for(b in c)ga.fc.cache[b]&&delete ga.fc.cache[b];ga.fc.cache[a]&&delete ga.fc.cache[a];for(b in ga.fc.trees)$(b).length&&("#"!==a?$(b).jstree(!0).refresh_node(a):$(b).jstree(!0).refresh())};ga.fc.refresh=function(a){for(var b in ga.fc.trees)$(b).length&&ga.fc.cache[a]&&("#"!==a?$(b).jstree(!0).refresh_node(a):$(b).jstree(!0).refresh())};
  • languages/html5/base_footer.html

    r607 r608  
    3636        ga.event( "global", myTag, "load" );
    3737        if ( ga.valuen.lastload && $( "#" + ga.valuen.lastload ).is( ":visible" ) ) { ga.valuen.save( ga.valuen.lastload ); }
    38         $( ".cssload-wrap" ).fadeIn();
    39         $( "#panelmain" ).load( "ajax/" + myTag + ".html", function(){ resetHoverHelp();$( ".cssload-wrap" ).fadeOut(5);} );
     38        ga.loader.show();
     39        $( "#panelmain" ).load( "ajax/" + myTag + ".html", function(){ resetHoverHelp(); ga.loader.hide(); } );
    4040__~docsbaseurl{        $( "#tab_docs > a" ).attr( "href", "__docsbaseurl__/" + myTag + "/" + myTag + ".html" );}
    4141        if ( !ga.set.data[ "nohidemenu:" + myTag ] ) { $( "#menuspan" ).trigger( "click" ); };
     
    549549                  );
    550550} };
    551 $( window ).on( "load", function() { $( ".cssload-wrap" ).fadeOut(5); setTimeout( function() { eval( ga.tmp.atend ); }, 50 ); } );
     551$( window ).on( "load", function() { ga.loader.hide(); setTimeout( function() { eval( ga.tmp.atend ); }, 50 ); } );
    552552</script>
    553553<a class="logo opacity" href=http://genapp.rocks><img src='data:image/ico;base64,AAABAAEAKCgAAAEAIABoGgAAFgAAACgAAAAoAAAAUAAAAAEAIAAAAAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAA//////8AAAD//////wAAAP//////AAAA//////8AAAD//////wAAAP//gH//AAAA/4AAH/8AAAD+AAAP/wAAAP4AAAf/AAAA/gAAAf8AAAD8AAAA/wAAAPwAAAB/AAAA/AAAAB8AAAD8AAAADwAAAPgAAAAHAAAA+AAAAAcAAAD4AAAABwAAAPgAAAAHAAAA8AAAAA8AAADwAAAADwAAAPAAAAAPAAAA8AAAAB8AAADwAAAAHwAAAOAAAAAfAAAA4AAAAB8AAADgAAAAPwAAAPAAAAA/AAAA+AAAAD8AAAD8AAAAfwAAAP4AAAB/AAAA/wAAAH8AAAD/gAAA/wAAAP/AAAD/AAAA/+AAB/8AAAD/8AA//wAAAP/4Af//AAAA//wP//8AAAD//////wAAAP//////AAAA//////8AAAA='></a><span class="help">Powered by GenApp</span>
  • languages/html5/base_header.html

    r606 r608  
    13491349ga.tmp.atend = "";
    13501350ga.restricted.ids = {};
     1351ga.loader( ".cssload-wrap", 750 );
  • languages/html5/js/ga_global.js

    r599 r608  
    182182    $( 'html' ).load( url );
    183183}
     184
     185ga.loader = function( jqtag, delay ) {
     186    __~debug:loader{console.log( "ga.loader( " + delay + " , " + jqtag + " )" );}
     187    ga.loader.jqtag = jqtag;
     188    ga.loader.delay = delay;
     189};
     190
     191ga.loader.timeout = null;
     192
     193ga.loader.startshow = function() {
     194    __~debug:loader{console.log( "ga.loader.startshow tag is " + ga.loader.jqtag );}
     195    if ( ga.loader.timeout ) {
     196        clearTimeout( ga.loader.timeout );
     197        ga.loader.timeout = null;
     198        $( ga.loader.jqtag ).show();
     199    } else {
     200        __~debug:loader{console.log( "ga.loader.startshow hiding" );}
     201        $( ga.loader.jqtag ).hide();
     202    }
     203}
     204
     205ga.loader.hide = function() {
     206    __~debug:loader{console.log( "ga.loader.hide tag is " + ga.loader.jqtag );}
     207    if ( ga.loader.timeout ) {
     208        clearTimeout( ga.loader.timeout );
     209        ga.loader.timeout = null;
     210    }
     211    __~debug:loader{console.log( "ga.loader.hide hiding" );}
     212    $( ga.loader.jqtag ).hide();
     213}
     214
     215ga.loader.show = function() {
     216    __~debug:loader{console.log( "ga.loader.show tag is " + ga.loader.jqtag );}
     217    if ( ga.loader.timeout ) {
     218        clearTimeout( ga.loader.timeout );
     219    }
     220    ga.loader.timeout = setTimeout( ga.loader.startshow(), ga.loader.delay );
     221}
  • languages/html5/menuelement_items.html

    r607 r608  
    88
    99        if ( ga.valuen.lastload != "__menu:modules:id__" || !$( "#" + ga.valuen.lastload ).is( ":visible" ) ) {
    10             $( ".cssload-wrap" ).fadeIn();
    11             $( "#panel___menu:id__" ).load( "ajax/__menu:id__/__menu:modules:id__.html", function() { ga.valuen.save( "__menu:modules:id__", true ); ga.valuen.restore( "__menu:modules:id__" ); ga.valuen.lastload = "__menu:modules:id__"; $( ".cssload-wrap" ).fadeOut(5); });
     10            ga.loader.show();
     11            $( "#panel___menu:id__" ).load( "ajax/__menu:id__/__menu:modules:id__.html", function() { ga.valuen.save( "__menu:modules:id__", true ); ga.valuen.restore( "__menu:modules:id__" ); ga.valuen.lastload = "__menu:modules:id__"; ga.loader.hide(); });
    1212        }
    1313    });
Note: See TracChangeset for help on using the changeset viewer.