Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable logo #19

Closed
Nostalgiaplatz opened this issue Feb 28, 2016 · 3 comments
Closed

Disable logo #19

Nostalgiaplatz opened this issue Feb 28, 2016 · 3 comments

Comments

@Nostalgiaplatz
Copy link

I have an issue where the logo doesn't load immediately and only actually appears just before loading my app is done.

Is there a way to disable the logo entirely and only use the html, I tried a couple of things but there is always an empty img tag added to the splash page!

@jhdavids8
Copy link
Contributor

Yep! You can specify a custom template if you like that simply omits the logo, and we should handle that just fine (via the template option). Here's the default template we use. Try passing this in without the logo, and let me know if that works.

<div class='pg-loading-inner'>
  <div class='pg-loading-center-outer'>
    <div class='pg-loading-center-middle'>
      <h1 class='pg-loading-logo-header'>
        <img class='pg-loading-logo'></img>
      </h1>
      <div class='pg-loading-html'>
      </div>
    </div>
  </div>
</div>

@ricolo
Copy link

ricolo commented Jul 26, 2016

@jhdavids8 Thanks for this nice plugin. I tried to control the logo size using template option, however once I added this option, it cannot close the loading screen with finish() command. Is it because it's not an official option?

@emekaelo
Copy link

emekaelo commented Dec 16, 2022

Yep! You can specify a custom template if you like that simply omits the logo, and we should handle that just fine (via the template option). Here's the default template we use. Try passing this in without the logo, and let me know if that works.

<div class='pg-loading-inner'>
  <div class='pg-loading-center-outer'>
    <div class='pg-loading-center-middle'>
      <h1 class='pg-loading-logo-header'>
        <img class='pg-loading-logo'></img>
      </h1>
      <div class='pg-loading-html'>
      </div>
    </div>
  </div>
</div>

I needed to style image size so it was helpful to see this since it wasn't in the documentation. The value of the template option should be wrapped in backticks like

pleaseWait({
...,
template: `
<div class='pg-loading-inner'>
  <div class='pg-loading-center-outer'>
    <div class='pg-loading-center-middle'>
      <h1 class='pg-loading-logo-header'>
        <img class='pg-loading-logo'></img>
      </h1>
      <div class='pg-loading-html'>
      </div>
    </div>
  </div>
</div>
`,
...
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants