mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2025-08-03 19:56:31 -04:00

- fix crash at the end of the page https://menuetos.net/docs.htm; - improve position of the line under text (and related code) for a various font sizes; - handle params width= and size= of <hr>; - update acid_0.1.htm page. Reviewed-on: https://git.kolibrios.org/KolibriOS/kolibrios/pulls/230 Reviewed-by: Max Logaev <maxlogaev@proton.me> Co-authored-by: leency <lipatov.kiril@gmail.com> Co-committed-by: leency <lipatov.kiril@gmail.com>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
#ifdef LANG_RUS
|
||
#define HISTORY_HEADER "<html><title>ˆáâ®à¨ï</title><body bgcolor=#fff><h3><3E>®á¥é¥ë¥ áâà ¨æë</h3><br>"
|
||
#else
|
||
#define HISTORY_HEADER "<html><title>History</title><body bgcolor=#fff><h3>Visited pages</h3><br>"
|
||
#endif
|
||
|
||
|
||
ShowHistory()
|
||
{
|
||
int i;
|
||
dword history_pointer = malloc(history.items.data_size+256);
|
||
strcat(history_pointer, HISTORY_HEADER);
|
||
|
||
for (i=0; i<history.items.count-1; i++) //if (cache.type.get(i) == PAGE)
|
||
{
|
||
strcat(history_pointer, "<kosicon n=3><a href='");
|
||
strcat(history_pointer, history.items.get(i));
|
||
strcat(history_pointer, "'>");
|
||
strcat(history_pointer, history.items.get(i));
|
||
strcat(history_pointer, "</a><br>");
|
||
}
|
||
|
||
/*
|
||
strcat(history_pointer, "<br><b>Cached images</b><br>");
|
||
for (i=1; i<cache.url.count; i++) if (cache.type.get(i) == IMG)
|
||
{
|
||
strcat(history_pointer, cache.url.get(i));
|
||
strcat(history_pointer, " <img src='");
|
||
strcat(history_pointer, cache.url.get(i));
|
||
strcat(history_pointer, "'><br>");
|
||
}
|
||
*/
|
||
|
||
LoadInternalPage(history_pointer, strlen(history_pointer));
|
||
free(history_pointer);
|
||
}
|