mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-14 19:07:09 +03:00
0cee7aa77a
- hack to show all text on the page, even if Y>32000 - open urls with #tag in the end - fix page open for some cases git-svn-id: svn://kolibrios.org@7739 a494cfbc-eb01-0410-851d-a64ba20cac60
29 lines
981 B
C
29 lines
981 B
C
ShowHistory()
|
|
{
|
|
int i;
|
|
static int history_pointer;
|
|
int t;
|
|
|
|
free(history_pointer);
|
|
history_pointer = malloc(history.items.data_size+256);
|
|
strcat(history_pointer, "<html><head><title>History</title></head><body><h1>History</h1>");
|
|
strcat(history_pointer, "<br><b>Visited pages</b><br>");
|
|
for (i=0; i<history.items.count; i++)
|
|
{
|
|
strcat(history_pointer, " <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>");
|
|
for (i=1; i<ImgCache.pics_count; i++)
|
|
{
|
|
strcat(history_pointer, "<img src='");
|
|
strcat(history_pointer, #pics[i].path);
|
|
strcat(history_pointer, "'><br>");
|
|
strcat(history_pointer, #pics[i].path);
|
|
}
|
|
strcat(history_pointer, "</body></html>");
|
|
WB1.LoadInternalPage(history_pointer, strlen(history_pointer));
|
|
} |