a = 5 b = 10 a = a + b b = a - b a = a - b print(a, b) 10 5I found this algorithm interesting.
Example made in Python
a = 5 b = 10 a = a + b b = a - b a = a - b print(a, b) 10 5I found this algorithm interesting.
A favicon (/ˈfæv.ɪˌkɒn/; short for favorite icon), also known as a shortcut icon, website icon, tab icon, URL icon, or bookmark icon, is a file containing one or more small icons associated with a particular website or web page.
In March 1999, Microsoft released Internet Explorer 5, which supported favicons for the first time. Originally, the favicon was a file called favicon.ico
placed in the root directory of a website. It was used in Internet Explorer's favorites (bookmarks) and next to the URL in the address bar if the page was bookmarked.
Taken from Wikipedia
To add an icon to the site one must place an ico format file named favicon.ico in the root directory of the site.
But the uniGUI site does not have a root directory. Placing favicon.ico in the module directory does nothing.
This problem can be solved in various ways.
The Viber Analyzer on uniGui project and Embarcadero Delphi 10.4.1 Sydney are used as an example.
The first way is the most obvious.
Since web application is coded in Delphi, one can add an icon to it, like to an ordinary program.
The icon can be set in the Project->Options...->Application->Icons->Application Icon Settings->Icon.
And this icon will be the site icon.
procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
begin
try
Favicon.LoadFromFile('favicon.ico');
except
end;
end;
or
procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
begin
try
TUniGUIServerModule(Sender).Favicon.LoadFromFile('favicon.ico');
except
end;
end;