Rev 5773 | Rev 5779 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5773 | Rev 5774 | ||
---|---|---|---|
Line 502... | Line 502... | ||
502 | if (http_transfer == 0) return; |
502 | if (http_transfer == 0) return; |
503 | if (wv_progress_bar.max) btn = address_box.width*wv_progress_bar.value/wv_progress_bar.max; else btn = 30; |
503 | if (wv_progress_bar.max) btn = address_box.width*wv_progress_bar.value/wv_progress_bar.max; else btn = 30; |
504 | DrawBar(address_box.left-2, address_box.top+15, btn, 2, wv_progress_bar.progress_color); |
504 | DrawBar(address_box.left-2, address_box.top+15, btn, 2, wv_progress_bar.progress_color); |
505 | } |
505 | } |
Line -... | Line 506... | ||
- | 506 | ||
- | 507 | void ClickLink() |
|
- | 508 | { |
|
- | 509 | if (http_transfer > 0) |
|
- | 510 | { |
|
- | 511 | StopLoading(); |
|
- | 512 | BrowserHistory.current--; |
|
- | 513 | } |
|
- | 514 | ||
- | 515 | strcpy(#URL, PageLinks.GetURL(PageLinks.active)); |
|
- | 516 | //#1 |
|
- | 517 | if (URL[0] == '#') |
|
- | 518 | { |
|
- | 519 | strcpy(#anchor, #URL+strrchr(#URL, '#')); |
|
- | 520 | strcpy(#URL, BrowserHistory.CurrentUrl()); |
|
- | 521 | WB1.list.first=WB1.list.count-WB1.list.visible; |
|
- | 522 | ShowPage(); |
|
- | 523 | return; |
|
- | 524 | } |
|
- | 525 | //liner.ru#1 |
|
- | 526 | if (strrchr(#URL, '#')!=-1) |
|
- | 527 | { |
|
- | 528 | strcpy(#anchor, #URL+strrchr(#URL, '#')); |
|
- | 529 | URL[strrchr(#URL, '#')-1] = 0x00; |
|
- | 530 | } |
|
- | 531 | ||
- | 532 | PageLinks.GetAbsoluteURL(#URL); |
|
- | 533 | ||
- | 534 | if (UrlExtIs(".png")==1) || (UrlExtIs(".gif")==1) || (UrlExtIs(".jpg")==1) || (UrlExtIs(".zip")==1) || (UrlExtIs(".kex")==1) |
|
- | 535 | || (UrlExtIs(".7z")==1) || (UrlExtIs("netcfg")==1) |
|
- | 536 | { |
|
- | 537 | //notify(#URL); |
|
- | 538 | if (!strncmp(#URL,"http://", 7)) |
|
- | 539 | { |
|
- | 540 | strcpy(#DL_URL, #URL); |
|
- | 541 | CreateThread(#Downloader,#downloader_stak+4092); |
|
- | 542 | } |
|
- | 543 | else RunProgram("@open", #URL); |
|
- | 544 | strcpy(#editURL, BrowserHistory.CurrentUrl()); |
|
- | 545 | strcpy(#URL, BrowserHistory.CurrentUrl()); |
|
- | 546 | return; |
|
- | 547 | } |
|
- | 548 | if (!strncmp(#URL,"mailto:", 7)) |
|
- | 549 | { |
|
- | 550 | notify(#URL); |
|
- | 551 | strcpy(#editURL, BrowserHistory.CurrentUrl()); |
|
- | 552 | strcpy(#URL, BrowserHistory.CurrentUrl()); |
|
- | 553 | return; |
|
- | 554 | } |
|
- | 555 | OpenPage(); |
|
- | 556 | return; |
|
- | 557 | } |
|
Line 506... | Line 558... | ||
506 | 558 | ||
507 | 559 | ||
508 | char downloader_stak[4096]; |
560 | char downloader_stak[4096]; |