mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-15 03:12:35 +03:00
adea6f05e9
No page blinking on scroll, proper alpha-channel blend (PNG 32bpp), local images support, base64 images support* (only small ones yet). Need code refactoring. git-svn-id: svn://kolibrios.org@8396 a494cfbc-eb01-0410-851d-a64ba20cac60
53 lines
1.2 KiB
C
53 lines
1.2 KiB
C
#ifdef LANG_RUS
|
||
#define HISTORY_HEADER "<html>
|
||
<head>
|
||
<title>ˆáâ®à¨ï</title>
|
||
</head>
|
||
<body>
|
||
<h1>ˆáâ®à¨ï</h1>
|
||
<br>
|
||
<b><EFBFBD>®á¥é¥ë¥ áâà ¨æë</b><br>
|
||
"
|
||
#else
|
||
#define HISTORY_HEADER "<html>
|
||
<head>
|
||
<title>History</title>
|
||
</head>
|
||
<body>
|
||
<h1>History</h1>
|
||
<br>
|
||
<b>Visited pages</b><br>
|
||
"
|
||
#endif
|
||
|
||
|
||
ShowHistory()
|
||
{
|
||
int i;
|
||
static int history_pointer;
|
||
int t;
|
||
|
||
free(history_pointer);
|
||
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, "\t<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>");
|
||
}
|
||
|
||
strcat(history_pointer, "</body></html>");
|
||
LoadInternalPage(history_pointer, strlen(history_pointer));
|
||
} |