Page 1 of 1

Ability to have a per application background

Posted: Sat Nov 23, 2019 5:00 pm
by Niffo
Please add the ability to have a per application background (in place of the blue one)

Re: Ability to have a per application background

Posted: Sun Nov 24, 2019 9:20 am
by useful
Replace
~\Libraries\javascript\media\background.png
with your own and enjoy.

For example, http://800strok.ru/lib/media/background.png

http://800strok.ru/index.html

Re: Ability to have a per application background

Posted: Sun Nov 24, 2019 10:02 am
by Niffo
Yes, i know that, but you have to do that every time you want to compile a different app and on all platforms :-(
My wish was that the background could be located in the project.

Re: Ability to have a per application background

Posted: Sun Nov 24, 2019 2:34 pm
by Peter
Niffo wrote:Please add the ability to have a per application background (in place of the blue one)

+1

@Niffo: In the meantime you can use something like this:

Code: Select all
! $('html').css("background","url('http://getwallpapers.com/wallpaper/full/a/6/c/186396.jpg') no-repeat center center fixed");

It's not perfect because you see the blue background image for a short moment, but better than nothing. ;)

Greetings ... Peter

Re: Ability to have a per application background

Posted: Sun Nov 24, 2019 3:15 pm
by Niffo
Peter wrote:@Niffo: In the meantime you can use something like this:
Code: Select all
! $('html').css("background","url('http://getwallpapers.com/wallpaper/full/a/6/c/186396.jpg') no-repeat center center fixed");


Thank you for the tip Peter.
Peter wrote:It's not perfect because you see the blue background image for a short moment, but better than nothing. ;)
Greetings ... Peter

That's the problem :(

Re: Ability to have a per application background

Posted: Sun Nov 24, 2019 4:13 pm
by Peter
Niffo wrote:That's the problem :(

You could also use my HtmlPreprocessor (https://github.com/spiderbytes/HtmlPreprocessor)

Code: Select all
;!  <HtmlPreprocessor>
;!    [
;!      {
;!        "search": "<script type=\"text/javascript\" src=\"spiderbasic.js\"></script>",
;!        "replace": "<style>html { background: url('http://getwallpapers.com/wallpaper/full/a/6/c/186396.jpg') no-repeat center center fixed; } </style>\n<script type=\"text/javascript\" src=\"spiderbasic.js\"></script>"
;!      }
;!    ]
;!  </HtmlPreprocessor>


The blue background then does not appear at all.

Greetings ... Peter