Rev 2660 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2660 | Rev 2696 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | int i; |
13 | int i; |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | char download_path[]="/rd/1/.download"; |
15 | char download_path[]="/rd/1/.download"; |
16 | //char search_path[]="http://nova.rambler.ru/search?words="; |
16 | //char search_path[]="http://nova.rambler.ru/search?words="; |
17 | char search_path[]="http://nigma.ru/index.php?s="; |
17 | char search_path[]="http://nigma.ru/index.php?s="; |
Line 18... | Line 18... | ||
18 | char version[]=" Text-based Browser 0.81"; |
18 | char version[]=" Text-based Browser 0.83"; |
19 | 19 | ||
20 | 20 | ||
Line 150... | Line 150... | ||
150 | IF(edit1.flags <> 66) |
150 | IF(edit1.flags <> 66) |
151 | IF (strcmp(get_URL_part(5),"http:")<>0) RunProgram("tinypad", #URL); ELSE RunProgram("tinypad", #download_path); |
151 | IF (strcmp(get_URL_part(5),"http:")<>0) RunProgram("tinypad", #URL); ELSE RunProgram("tinypad", #download_path); |
152 | return; |
152 | return; |
Line 153... | Line 153... | ||
153 | 153 | ||
154 | case HOME: |
154 | case HOME: |
155 | copystr("http://bash.org.ru", #editURL); |
155 | copystr("http://kolibri-os.narod.ru", #editURL); |
156 | case GOTOURL: |
156 | case GOTOURL: |
157 | case 0x0D: //enter |
157 | case 0x0D: //enter |
158 | copystr(#editURL, #URL); |
158 | copystr(#editURL, #URL); |
159 | if (!strcmp(get_URL_part(5),"http:"))) HttpLoad(); |
159 | if (!strcmp(get_URL_part(5),"http:"))) HttpLoad(); |
Line 526... | Line 526... | ||
526 | 526 | ||
527 | //âûâîä íà ýêðàí |
527 | //âûâîä íà ýêðàí |
528 | if (stroka >= 0) && (stroka - 2 < max_kolvo_strok) && (line) |
528 | if (stroka >= 0) && (stroka - 2 < max_kolvo_strok) && (line) |
529 | { |
529 | { |
530 | WriteText(stolbec * 6 + left1, top1, 0x80, text_colors[text_color_index], #line, 0); //ìîæåò òóò ðèñîâàòü áåëóþ ñòðîêó? |
530 | WriteText(stolbec * 6 + left1, top1, 0x80, text_colors[text_color_index], #line, 0); //ìîæåò òóò ðèñîâàòü áåëóþ ñòðîêó? |
531 | IF (b_text) WriteText(stolbec * 6 + left1 + 1, top1, 0x80, text_colors[text_color_index], #line, 0); |
531 | IF (b_text) { $add ebx, 1<<16 $int 0x40 } |
532 | IF (i_text) Skew(stolbec * 6 + left1, top1, strlen(#line)+1*6, 10); //íàêëîííûé òåêñò |
532 | IF (i_text) Skew(stolbec * 6 + left1, top1, strlen(#line)+1*6, 10); //íàêëîííûé òåêñò |
533 | IF (s_text) DrawBar(stolbec * 6 + left1, top1 + 4, strlen(#line) * 6, 1, text_colors[text_color_index]); //çà÷¸ðêíóòûé |
533 | IF (s_text) DrawBar(stolbec * 6 + left1, top1 + 4, strlen(#line) * 6, 1, text_colors[text_color_index]); //çà÷¸ðêíóòûé |
534 | IF (u_text) DrawBar(stolbec * 6 + left1, top1 + 8, strlen(#line) * 6, 1, text_colors[text_color_index]); //ïîä÷¸ðêíóòûé |
534 | IF (u_text) DrawBar(stolbec * 6 + left1, top1 + 8, strlen(#line) * 6, 1, text_colors[text_color_index]); //ïîä÷¸ðêíóòûé |
535 | IF (link) { |
535 | IF (link) { |
Line 640... | Line 640... | ||
640 | IF(!chTag("i")) || (!chTag("em")) || (!chTag("subtitle")) { |
640 | IF(!chTag("i")) || (!chTag("em")) || (!chTag("subtitle")) { |
641 | i_text = rez; |
641 | i_text = rez; |
642 | return; |
642 | return; |
643 | } |
643 | } |
644 | //////////////////////////// |
644 | //////////////////////////// |
645 | if(!chTag("li")) || (!chTag("dt")) //íàäî ñäåëàòü âëîæåííûå ñïèñêè |
645 | if (!chTag("dt")) |
646 | { |
646 | { |
647 | li_text = rez; |
647 | li_text = rez; |
648 | IF(rez == 0) return; |
648 | IF(rez == 0) return; |
649 | TextGoDown(left1, top1, width1); |
649 | TextGoDown(left1, top1, width1); |
- | 650 | return; |
|
- | 651 | } |
|
- | 652 | ///////////////////////////// |
|
- | 653 | if(!chTag("li")) //íàäî ñäåëàòü âëîæåííûå ñïèñêè |
|
- | 654 | { |
|
- | 655 | li_text = rez; |
|
- | 656 | IF(rez == 0) return; |
|
- | 657 | TextGoDown(left1, top1, width1); |
|
650 | IF(stroka > -1) && (stroka - 2 < max_kolvo_strok) IF(!chTag("li")) DrawBar(li_tab * 5 * 6 + left1 - 5, top1 + 12, 2, 2, 0); |
658 | IF(stroka > -1) && (stroka - 2 < max_kolvo_strok) DrawBar(li_tab * 5 * 6 + left1 - 5, top1 + 12, 2, 2, 0); |
651 | return; |
659 | return; |
652 | } |
660 | } |
653 | //////////////////////////// |
661 | //////////////////////////// |
654 | IF(!chTag("u")) || (!chTag("ins")) u_text = rez; |
662 | IF(!chTag("u")) || (!chTag("ins")) u_text = rez; |
655 | IF(!chTag("s")) || (!chTag("strike")) || (!chTag("del")) s_text = rez; |
663 | IF(!chTag("s")) || (!chTag("strike")) || (!chTag("del")) s_text = rez; |