Advertisement
Laynester

Loadingv2js

Apr 3rd, 2019
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. window.FlashExternalInterface.logLoginStep = function(b) {
  2. if (b == "client.init.start") {
  3. document.getElementById('loader_bar').style = "width:10%;";
  4. $('.throne,.cola,.deck').addClass('loaded');
  5. }
  6. if (b == "client.init.core.init") {
  7. document.getElementById('loader_bar').style = "width:25%;";
  8. $('.globe,.bc,.dino').addClass('loaded');
  9. }
  10. if (b == "client.init.auth.ok") {
  11. document.getElementById('loader_bar').style = "width:50%;";
  12. $('.tl,.samovar,.barrier').addClass('loaded')
  13. }
  14. if (b == "client.init.localization.loaded") {
  15. document.getElementById('loader_bar').style = "width:75%;";
  16. $('.dice,.clubsofa,.desk').addClass('loaded');
  17. $('.spotlight,.trax,.mocha').addClass('loaded');
  18. }
  19. if (b === "client.init.config.loaded") {
  20. setTimeout(function() {
  21. document.getElementById('loader_bar').style = "width:100%;";
  22. $('.hammock,.typewriter,.clog,.plant').addClass('loaded');
  23. }, 3000);
  24. setTimeout(function() {
  25. $('#loader-wrapper').fadeOut('1000');
  26. }, 5000);
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement