Jump to content

Set  TUniHTMLFrame on Bakground of Loginform


Ario.Paxaz

Recommended Posts

  • 3 weeks later...
On 1/1/2022 at 12:34 PM, A.Soltani said:

How to set  TUniHTMLFrame on bakground of loginform?
I want run JavaScript file in  bakground of loginform instead of a photo .

Hello,

Sorry for the late reply.

Can you please explain in more details?

You cannot use UniHTMLFrame outside the form, but if you specify what you would like to do, then we can try to analyze and embed in the body.

Link to comment
Share on other sites

 

Quote

I mean that after opening the main form, will you stop the animation and the plugin in general?

 

I thought that by logging in and closing the login form, all the resources allocated to the login form would be released.

 

Link to comment
Share on other sites

20 hours ago, A.Soltani said:

I want to create my login page as follows.

Hello,

Try this approach.

1. CustomFiles:

files/particles.css
files/particles.js

2. Create a json file (particles.json) in the files folder, this is the settings file, like this for example:

https://github.com/VincentGarreau/particles.js/blob/master/demo/particles.json

3. UniLoginForm.Script:

particlesJS.load('body', 'files/particles.json', function() {
  console.log('callback - particles.js config loaded');
});

4. MainForm.Script:

document.querySelector('.particles-js-canvas-el').remove();

 

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
On 1/18/2022 at 12:25 PM, Sherzod said:

Hello,

Try this approach.

1. CustomFiles:

files/particles.css
files/particles.js

2. Create a json file (particles.json) in the files folder, this is the settings file, like this for example:

https://github.com/VincentGarreau/particles.js/blob/master/demo/particles.json

3. UniLoginForm.Script:

particlesJS.load('body', 'files/particles.json', function() {
  console.log('callback - particles.js config loaded');
});

4. MainForm.Script:

document.querySelector('.particles-js-canvas-el').remove();

 

Thank's, it's working!

But, I have a question.

How write code, that animation working on MainForm on background?

Now, or working animation or not. Need spleet animation on MainForm and set them on background.

Link to comment
Share on other sites

7 minutes ago, Sherzod said:

Well you can analyze and apply the code above.

I applied it.
I'm saying it works.
Animation works on LoginForm, great.
But on UniTabSheet , in UniHTMLMemo I can not apply it so that it only works on this tab.
The code that is above and which is placed in Mainorm.Script, it makes the animation stretch over the entire main form.
And I only need to play it in a certain place.

Link to comment
Share on other sites

36 minutes ago, Артем said:

Animation works on LoginForm, great.

Good.

36 minutes ago, Артем said:

But on UniTabSheet , in UniHTMLMemo I can not apply it so that it only works on this tab.

Your case is not very clear.

37 minutes ago, Артем said:

The code that is above and which is placed in Mainorm.Script, it makes the animation stretch over the entire main form.
And I only need to play it in a certain place.

Can you clarify in more detail?

 

Link to comment
Share on other sites

7 minutes ago, Sherzod said:

Good.

Your case is not very clear.

Can you clarify in more detail?

 

 

7 minutes ago, Sherzod said:

Can you clarify in more detail?

1. On MainForm create UniPageControl with one UniTabSheet.

2. Put UniHTMLFrame in UniTabSheet.

3. In UniHTMLFrame write script from top post.

This is all.

Animation must showing only in UniHTMLFrame, not on MainForm, only in UniHTMLFrame. 

 

This is all I need...

Edited by Артем
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...