Advertisement
Guest User

kierownik

a guest
Jul 11th, 2017
1,133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.82 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=10" />
  5. <meta name="Language" content="pl" />
  6. <meta name="author" content="Wirtualna Polska S.A." />
  7. <meta name="description"
  8. content="Darmowa poczta o najkrotszym adresie e-mail w Polsce." />
  9. <meta name="keywords"
  10. content="poczta, mail,wirtualna,polska,strony,wp,polska,poland,wyszukiwarka,portal,darmowa,darmo,login,email,e-mail,konto,pocztowe,skrzynka,wiadomosci,box" />
  11. <meta name="gwt:module"
  12. content="gwt/pl.wp.webspik.WebSpik=pl.wp.webspik.WebSpik" />
  13.  
  14. <title>Poczta - Wirtualna Polska</title>
  15. <link rel="SHORTCUT ICON"
  16. href="fav.ico" />
  17.  
  18.  
  19. <script type="text/javascript" charset="UTF-8" >
  20.  
  21.  
  22. /**
  23. * POCZTA - HEADER
  24. * -----------------------------------------------------------------------------
  25. *
  26. * Generacja belki górnej przy użyciu JS
  27. *
  28. * Klasy:
  29. *
  30. * Header - przeprowadza cały proces, wstrzykuje html oraz zawiera wszystkie metody API
  31. * Menu - renderuje główne menu
  32. *
  33. * Wymagane jest odpalenie Header.render(), przedtem należy ustawić parametry (patrz: przykładowe wywołanie)
  34. *
  35. * @author kelsay
  36. *
  37. **/
  38.  
  39.  
  40. /**
  41. *
  42. * Header - główna klasa nadzorująca proces generacji headera oraz łapiąca wyjątki
  43. * Tu znajduje się całe API do wywoływania z zewnątrz
  44. *
  45. **/
  46.  
  47. var Header = {
  48.  
  49. _menu : getMainMenuTree(), // json ze strukturą menu
  50. _pro : '', // czy poczta pro czy zwykła
  51. _container: null, // Kontener
  52. _email: '', // Login usera
  53. _photo: '', // Miejsce na photo usera
  54. _active: 0, // Active menu element,
  55. _white: false, // Czy jest na czarnym tle
  56. _serviceName: 'poczta', // Nazwa serwisu
  57. _photoSource: '//a.wpimg.pl/a/i/stg/500/poczta_avatar.png', // defaultowe photo
  58. _photoDestination: 'https://profil.wp.pl/wizytowka.html',
  59. _logged : true, // Domyślnie true, chyba że ustawiono inaczej
  60. _loginUrl : "/", // Domyślny url do logowania
  61. _visibleElements: null,
  62. render: function() {
  63. try {
  64. this._ensureContainerIsSet();
  65. this._clearContainer();
  66. var _html = this._prepareWrapper();
  67.  
  68. // Opcje
  69. Logo.setOptions({ white:this._white, serviceName: this._serviceName });
  70. Menu.setOptions({ pro:this._pro, menu: this._menu, active: this._active, visibleElements: this._visibleElements });
  71. UserMenu.setOptions({
  72. logged:this._logged, loginUrl:this._loginUrl,
  73. email:this._email, pro:this._pro, source: this._photoSource, destination: this._photoDestination });
  74.  
  75. // Budowanie drzewka
  76. _html.appendChild(Logo.render());
  77. _html.appendChild(Menu.render());
  78. _html.appendChild(UserMenu.render());
  79. this._fillContainer(_html);
  80. } catch(e) { doError(e); }
  81. },
  82.  
  83. /**
  84. * Upewnia się czy mamy ustawiony kontener do wstrzyknięcia drzewka
  85. **/
  86.  
  87. _ensureContainerIsSet: function() {
  88. try {
  89. if (!this._container) {
  90. this._container = document.getElementById('header');
  91. }
  92. } catch(e) {
  93. doError(e);
  94. }
  95. },
  96.  
  97. /**
  98. * Czyści kontener, niezbędne w przypadku potrzeby przerysowania menu
  99. **/
  100.  
  101. _clearContainer: function() {
  102. try {
  103. this._container.innerHTML = "";
  104. } catch(e) {
  105. doError(e);
  106. }
  107. },
  108.  
  109. /**
  110. * Wstrzyknięcie wygenerowanego HTML-a
  111. **/
  112.  
  113. _fillContainer: function(_html) {
  114. try {
  115. this._container.appendChild(_html);
  116. } catch(e) {
  117. doError(e);
  118. }
  119. },
  120.  
  121. /**
  122. * Tworzy wrapper w którym są umieszczone elementy menu (#headerWrapper)
  123. */
  124.  
  125. _prepareWrapper: function() {
  126. try {
  127. var _wrapper = document.createElement("div");
  128. _wrapper.id = "headerWrapper";
  129. return _wrapper;
  130. } catch(e) {
  131. doError(e);
  132. }
  133. },
  134.  
  135. /**
  136. * API
  137. * Ustawianie zmiennych konfiguracyjnych
  138. * Zmienne: _pro, _email, _container, _active, _photo, _white, _serviceName opisane na początku klasy
  139. *
  140. **/
  141.  
  142. setProDate: function(val) {
  143. try {
  144. this._pro = val;
  145. } catch(e) {
  146. doError(e);
  147. }
  148. },
  149.  
  150. setContainer: function(id) {
  151. },
  152.  
  153. setEmail: function(email) {
  154. try {
  155. this._email = email;
  156. } catch(e) {
  157. doError(e);
  158. }
  159. },
  160.  
  161. setActive: function(val) {
  162. try {
  163. this._active = val;
  164. } catch(e) {
  165. doError(e);
  166. }
  167. },
  168.  
  169. setMenu: function(json) {
  170. try {
  171. this._menu = json;
  172. } catch(e) {
  173. doError(e);
  174. }
  175. },
  176.  
  177. setWhite: function(bool) {
  178. try {
  179. var _img = document.getElementById("logo");
  180. this._white = bool;
  181. if (null !== _img) {
  182. Logo.setWhite(bool);
  183. }
  184. } catch(e) {
  185. doError(e);
  186. }
  187. },
  188.  
  189. setServiceName: function(name) {
  190. try {
  191. this._serviceName = name;
  192. } catch(e) {
  193. doError(e);
  194. }
  195. },
  196.  
  197. setPhoto: function(options) {
  198. try {
  199. if (null !== options) {
  200. this._photoSource = options.source ? options.source : this._photoPlaceholder;
  201. this._photoDestination = options.destination;
  202. }
  203. } catch(e) {
  204. doError(e);
  205. }
  206. },
  207.  
  208. /*
  209. * Ustawia stan zalogowany / niezalogowany oraz opcjonalnie url
  210. *
  211. * @param bool state
  212. */
  213.  
  214. setLoginState: function(loginState,loginUrl) {
  215. try {
  216. this._logged = loginState;
  217. this._loginUrl = loginUrl;
  218. } catch(e) {
  219. doError(e);
  220. }
  221. },
  222.  
  223.  
  224. setVisibleElement: function(elements){
  225. try {
  226. this._visibleElements = elements;
  227. } catch(e) {
  228. doError(e);
  229. }
  230. }
  231.  
  232.  
  233.  
  234. };
  235.  
  236. /**
  237. * Menu - renderuje DOM menu na podstawie dostarczonego obiektu JSON
  238. *
  239. * @author kelsay
  240. *
  241. **/
  242.  
  243.  
  244. var Menu = {
  245.  
  246. _html : document.createDocumentFragment(), // Główny kontener
  247. _submenuNum : 0, // Kolejne numery submenu, używane do nadania unikalnego ID
  248.  
  249. /**
  250. * Metoda ustawiająca opcje
  251. **/
  252.  
  253. setOptions: function(options) {
  254. this._menu = options.menu;
  255. this._pro = options.pro;
  256. this._active = options.active;
  257. this._visibleElements = options.visibleElements ;
  258. },
  259.  
  260. /**
  261. * Metoda inicjuje tworzenie i zwraca gotowy DOM menu
  262. */
  263.  
  264. render: function() {
  265. try {
  266. this._renderMainMenu();
  267. return this._html;
  268. } catch(e) {
  269. doError(e);
  270. }
  271. },
  272.  
  273. /**
  274. * Tworzy kontener mainMenu oraz wypełnia go elementami
  275. */
  276.  
  277. _renderMainMenu: function() {
  278. try {
  279. this._getVisibleElement();
  280. var _menu = this._menu,
  281. _list = document.createElement("div"),
  282. _num = 0,
  283. _level = 0;
  284. _list.id = "mainMenu";
  285. for(var _key in _menu) {
  286. try {
  287. if ( (_menu[_key].visible !== undefined) && ( _menu[_key].visible == false) ){
  288. continue;
  289. }
  290. } catch(e) { doError(e); }
  291. _list.appendChild(this._renderElement(_level,_menu[_key],_num++,_key));
  292. }
  293. this._html.appendChild(_list);
  294. } catch(e) { doError(e); }
  295. },
  296.  
  297.  
  298. _getVisibleElement: function(){
  299. try {
  300. if (this._visibleElements === null){
  301. return;
  302. }
  303. var _menu = this._menu;
  304. var elemnts = this._visibleElements.split(',');
  305. for(var i=0; i < elemnts.length; i++) {
  306. if (_menu[elemnts[i]] === undefined){
  307. continue;
  308. }
  309. if (_menu[elemnts[i]].visible === undefined){
  310. continue;
  311. }
  312.  
  313. _menu[elemnts[i]].visible = true;
  314. }
  315.  
  316. this._menu = _menu ;
  317. } catch(e) {
  318. doError(e);
  319. }
  320.  
  321.  
  322. },
  323.  
  324. /**
  325. * Tworzy element menu, zarówno pierwszego poziomu jak i kolejnego
  326. **/
  327.  
  328. _renderElement: function(_level,_element,_num,_id) {
  329. try {
  330. // Tworzenie elementów
  331. var _item = document.createElement("div"),
  332. _link = document.createElement("a");
  333. // Dodawanie klasy, w zależności od pozycji w menu oraz aktywnego elementu
  334. if (_level === 0) _item.className = "main main"+_num+" "+_element.label;
  335. else _item.className = "item";
  336. if (_id== this._active && _level === 0) _item.className = _item.className + " active";
  337. // Inne właściwości
  338. _link.innerHTML = _element.label;
  339. if (undefined !== _element.href) _link.href = this._formatLink(_element.href);
  340.  
  341. // Dodaje raquo dla elementów z submenu
  342. if (_element.submenu && _level !== 0) {
  343. _link.innerHTML += "<span>&raquo;</span>";
  344.  
  345. }
  346.  
  347. // Dodaje link do głównego elementu menu
  348. _item.appendChild(_link);
  349.  
  350. // Podbindowanie eventów
  351. this._bindItemEvents(_item,_level,this._submenuNum,!!_element.submenu);
  352.  
  353. if (_element.submenu) {
  354. _item.appendChild(this._renderSubmenu(_level+1,_element.submenu,_num));
  355. }
  356.  
  357. return _item;
  358.  
  359. } catch(e) {
  360. doError(e);
  361. }
  362. },
  363.  
  364. _renderSubmenu: function(_level,_submenu,_num) {
  365. try {
  366. var _wrapper = document.createElement("div");
  367. _wrapper.className = "submenu level"+_level;
  368. _wrapper.id = this.getSubmenuId(this._submenuNum);
  369. this._submenuNum++;
  370. for (var i in _submenu) {
  371. _wrapper.appendChild(this._renderElement(_level,_submenu[i],i));
  372. }
  373. this._bindSubmenuEvents(_wrapper,_level);
  374. return _wrapper;
  375. } catch(e) {
  376. doError(e);
  377. }
  378. },
  379.  
  380. /**
  381. * Podpina do elementów wywołania funkcji
  382. * Korzysta z funkcji skrótowej 'bindEvent()'
  383. **/
  384.  
  385. _bindItemEvents: function(_item,_level,_submenuNum,_submenu) {
  386. try {
  387. if (_submenu) {
  388. if (_level === 0) {
  389. bindEvent(_item,'mouseover',function(){
  390. menuShower.showImmediately(Menu.getSubmenuId(_submenuNum), _level, this);
  391. });
  392. }
  393. else {
  394. bindEvent(_item,'mouseover',function(){
  395. menuShower.show(Menu.getSubmenuId(_submenuNum), _level);
  396. });
  397. }
  398. }
  399. else {
  400. if (_level === 0) {
  401. bindEvent(_item,'mouseover',function(){
  402. menuShower.hideImmediately(_level);
  403. });
  404. }
  405. }
  406. bindEvent(_item,'mouseout',function(){
  407. menuShower.hide(_level);
  408. });
  409. } catch(e) {
  410. doError(e);
  411. }
  412. },
  413.  
  414. _bindSubmenuEvents: function(_submenu,_level) {
  415. try {
  416. bindEvent(_submenu,'mouseover',function(){
  417. menuShower.show(this.id,0);
  418. });
  419. bindEvent(_submenu,'mouseout',function() {
  420. menuShower.hide(_level);
  421. });
  422. } catch(e) {
  423. doError(e);
  424. }
  425. },
  426.  
  427. getSubmenuId: function(_submenuNum) {
  428. try {
  429. return "submenu_" + _submenuNum;
  430. } catch(e) {
  431. doError(e);
  432. }
  433. },
  434.  
  435. /**
  436. * Zwraca poprawnie sformatowany link z uzwględnieniem protokołu
  437. *
  438. * URL bezwzględny zwraca bez modyfikacji
  439. * URL względny zwraca z odpowiednim prefiksem
  440. * (w zależności od tego czy jest to domena poczty czy nie)
  441. *
  442. */
  443.  
  444. _formatLink: function(_url) {
  445. try {
  446. return (this._urlIsAbsolute(_url)) ? _url: this._getMailUrlPrefix() + _url;
  447. } catch(e) {
  448. doError(e);
  449. }
  450. },
  451.  
  452. /**
  453. * Zwraca poczatek adresu url poczty.
  454. *
  455. * Jesli jest w domenie poczty to zwraca pusty string,
  456. * poniewaz lepiej sie poslugiwac URL'em wzglednym.
  457. *
  458. * @return string
  459. *
  460. * @author elmo
  461. * @author kelsay
  462. *
  463. **/
  464.  
  465. _getMailUrlPrefix: function() {
  466. try {
  467. if (!this._mailUrlPrefix) {
  468. if (-1 == window.location.host.indexOf('poczta.')) {
  469. this._mailUrlPrefix = '//poczta.wp.pl/';
  470. } else {
  471. this._mailUrlPrefix = '';
  472. }
  473. }
  474. return this._mailUrlPrefix;
  475. } catch(e) {
  476. doError(e);
  477. }
  478. },
  479.  
  480. /**
  481. * Zwraca true jeśli url jest bezwzględny
  482. */
  483.  
  484. _urlIsAbsolute: function(_url) {
  485. try {
  486. return (_url.indexOf('//')>-1) ? true : false;
  487. } catch(e) {
  488. doError(e);
  489. }
  490. }
  491.  
  492. };
  493.  
  494.  
  495. /**
  496. * Generacja logotypu
  497. *
  498. */
  499.  
  500. var Logo = {
  501.  
  502. _white : false,
  503.  
  504. /**
  505. * Metoda ustawiająca opcje
  506. **/
  507.  
  508. setOptions: function(options) {
  509. this._white = options.white;
  510. this._pro = options.pro;
  511. this._serviceName = options.serviceName;
  512. },
  513.  
  514. /**
  515. * Metoda tworząca kontery
  516. **/
  517.  
  518. render: function() {
  519. try {
  520. var _logo = document.createElement("div");
  521. _logo.innerHTML = '<a class="stgHeaderLogo" href="http://www.wp.pl" title="WP.PL">'
  522. + '<img src="//a.wpimg.pl/a/i/stg/550/wp.png" class="stgHeaderLogoImage" alt="WP.PL">'
  523. + '</a>'
  524. + '<a href="/" class="logo-link"><img src="'+this.getSource()+'" id="logo" alt="WP.PL" /></a>';
  525. return _logo;
  526. } catch(e) {
  527. doError(e);
  528. }
  529. },
  530.  
  531. /**
  532. * Metoda wołana z Header.setWhite jeżeli obrazek logo już istnieje
  533. *
  534. **/
  535.  
  536. setWhite: function(bool) {
  537. try {
  538. this._white = bool;
  539. _img = document.getElementById("logo");
  540. _img.src = this.getSource();
  541. } catch(e) {
  542. doError(e);
  543. }
  544. },
  545.  
  546. /**
  547. * Zwraca adres obrazka w zależności od parametru _white ustawionego przez Header.setWhite();
  548. **/
  549.  
  550. getSource: function() {
  551. try {
  552. var src = "//a.wpimg.pl/a/i/stg/550/srv/header/wp_"+this._serviceName+"_header";
  553. if (this._white) {
  554. src += "_w.png"
  555. } else {
  556. src += ".png";
  557. }
  558. return src;
  559. } catch(e) {
  560. doError(e);
  561. }
  562. }
  563.  
  564. };
  565.  
  566. /**
  567. * Funkcja javascriptowa odpowiedzialna za wyswietlanie i chowanie menu.
  568. * Robi lekkie opoznienienia przy zjezdzaniu mysza z elementu, zeby odrazu nie znikal.
  569. *
  570. * @author elmo
  571. */
  572. var menuShower = {
  573.  
  574. /**
  575. * Aktualnie wyswietlany element na kazdej glebokosci menu
  576. *
  577. * @var object
  578. */
  579. _currentElems: [null, null],
  580.  
  581. /**
  582. * kandydat do wyswietlenia - po najechaniu mysza nie pokazujemy odrazu
  583. */
  584. _candidateElems: [null, null],
  585. _timers: [null, null],
  586.  
  587. /**
  588. * czasem jest zalezny element w ktorym chcemy ze styl takze znikal po czasie, a nie odrazu na hover
  589. */
  590. _dependentElem: null,
  591.  
  592. /**
  593. * nazwa stylu jaki bedzie dodawany _dependentElem
  594. */
  595. _DEPENDENT_ELEM_STYLE: 'on',
  596.  
  597. show: function(elemId, depth, dependentElem) {
  598. if (null === this._timers[depth]) {
  599. this.showImmediately(elemId, depth);
  600. } else if ((null !== this._currentElems[depth]) && (this._currentElems[depth].id == elemId)) {
  601. this.showImmediately(elemId, depth, dependentElem);
  602. } else {
  603. this._candidateElems[depth] = document.getElementById(elemId);
  604. }
  605. },
  606.  
  607. showImmediately: function(elemId, depth, dependentElem) {
  608. this._candidateElems[depth] = null;
  609.  
  610. if (null !== this._timers[depth]) {
  611. window.clearTimeout(this._timers[depth]);
  612. this._timers[depth] = null;
  613. }
  614.  
  615. var elem = document.getElementById(elemId);
  616. elem.style.display = "block";
  617.  
  618. if ((null !== this._currentElems[depth]) && (this._currentElems[depth].id != elemId)) {
  619. this._currentElems[depth].style.display = "none";
  620.  
  621. if ((0 === depth) && (null !== this._dependentElem)) {
  622. styleModificator.removeStyle(this._dependentElem, this._DEPENDENT_ELEM_STYLE);
  623. this._dependentElem = null;
  624. }
  625. }
  626.  
  627. if ((0 === depth) && (null !== dependentElem)) {
  628. styleModificator.addStyle(dependentElem, this._DEPENDENT_ELEM_STYLE);
  629. this._dependentElem = dependentElem;
  630. }
  631.  
  632. this._currentElems[depth] = elem;
  633. },
  634.  
  635. hide: function(depth) {
  636. if (null !== this._timers[depth]) {
  637. this._candidateElems[depth] = null;
  638. } else {
  639. this._timers[depth] = window.setTimeout('menuShower.hideImmediately(' + depth + ');', 400);
  640. }
  641. },
  642.  
  643. hideImmediately: function(depth) {
  644. if (null !== this._timers[depth]) {
  645. window.clearTimeout(this._timers[depth]);
  646. this._timers[depth] = null;
  647. }
  648.  
  649. if (null !== this._candidateElems[depth]) {
  650. this.showImmediately(this._candidateElems[depth].id, depth);
  651. } else if (null !== this._currentElems[depth]) {
  652. this._currentElems[depth].style.display = "none";
  653. this._currentElems[depth] = null;
  654.  
  655. if ((0 === depth) && (null !== this._dependentElem)) {
  656. styleModificator.removeStyle(this._dependentElem, this._DEPENDENT_ELEM_STYLE);
  657. this._dependentElem = null;
  658. }
  659. }
  660. }
  661. };
  662.  
  663. /**
  664. * Generuje HTML do menu bocznego
  665. **/
  666.  
  667. var UserMenu = {
  668.  
  669. /**
  670. * Metoda ustawiająca opcje
  671. **/
  672.  
  673. setOptions: function(options) {
  674. try {
  675. this._email = options.email;
  676. this._pro = options.pro;
  677. this._source = options.source;
  678. this._destination = options.destination;
  679. this._logged = options.logged;
  680. this._loginUrl = options.loginUrl;
  681. } catch (e) { doError(e) }
  682. },
  683.  
  684.  
  685. render: function() {
  686. try {
  687. if (this._logged == true) return this._renderUserMenu();
  688. else return this._renderLoginButton();
  689. } catch (e) { doError(e); }
  690. },
  691.  
  692.  
  693.  
  694. /**
  695. * Metoda tworząca html
  696. **/
  697.  
  698. _renderUserMenu: function() {
  699. try {
  700. var _wrapper = document.createElement("div");
  701. _wrapper.id = "userMenu";
  702.  
  703. // Small avatar
  704. var _smallAvatar = document.createElement("img");
  705. _smallAvatar.className = "small";
  706. _smallAvatar.src = this._source;
  707.  
  708. // Opcje
  709. var _button= this._createButton("buttonOptions");
  710. bindEvent(_button,'mouseover',function(){ menuShower.showImmediately('profileMenuId',0,this); });
  711. bindEvent(_button,'mouseout',function(){ menuShower.hide(0); });
  712.  
  713. var _html =
  714. '<div id="profileMenuId" class="profile">'+
  715. this._generatePhoto() +
  716. '<a href="https://profil.wp.pl/?serwis=poczta.wp.pl">Mój profil</a><br>'+
  717. '<a href="https://profil.wp.pl/zmien_haslo.html">Zmień hasło</a><br>'+
  718. '<a href="https://profil.wp.pl/rejestracja.html">Załóż nowe konto</a><br>';
  719. _html += this._generateProLink();
  720. _html +='</div>';
  721. _button.innerHTML = this._generateSmallPhoto() + _html;
  722.  
  723. _wrapper.appendChild(_button);
  724.  
  725. // Logout
  726.  
  727. var _button = this._createButton("buttonLogout"),
  728. _a = document.createElement("a");
  729. _a.innerHTML = "wyloguj";
  730. _a.href = "/logoutgwt.html";
  731. _button.appendChild(_a);
  732. _wrapper.appendChild(_button);
  733.  
  734. // Login
  735. var _button = this._createButton("buttonName");
  736. _button.textContent = this._email;
  737. _button.innerText = this._email;
  738. _wrapper.appendChild(_button);
  739.  
  740. return _wrapper;
  741. } catch(e) {
  742. doError(e);
  743. }
  744. },
  745.  
  746. _createButton: function(_id) {
  747. try {
  748. _button = document.createElement("div");
  749. _button.className = "btn";
  750. _button.id = _id;
  751. return _button;
  752. } catch(e) {
  753. doError(e);
  754. }
  755. },
  756.  
  757. _generateProLink: function() {
  758. try {
  759. if (this._pro != false) {
  760. return "<a href='https://platnosci.wp.pl/n/pakiety.html?extraRealizerData=pocztaflow,2&service=1'>Poczta PRO - <span class='proActive'>aktywna</span><small> (do: "+this._pro+")</small></a>";
  761. }
  762. else {
  763. return '<a href="info-pomoc-zakladanie.html?flow=4#pro">Poczta PRO - <span class="proNotActive">aktywuj</span></a>';
  764. }
  765. } catch(e) {
  766. doError(e);
  767. }
  768. },
  769.  
  770. /*
  771. * Generuje obrazki z profilu
  772. * parametr url: u=1 - domyślny UpCoreAvatar, u=2 - domyślny z buttonem "Dodaj"
  773. * @returns {String}
  774. */
  775. _generatePhoto: function() {
  776. return "<a href='"+this._destination+"' class='portrait'><img src='"+this._source+"&u=2'></a>";
  777. },
  778.  
  779. _generateSmallPhoto: function() {
  780. var _src = this._source,
  781. _newSize = '25',
  782. _smallSrc = _src.replace(/(s=).*?(&)/, '$1' + _newSize + '$2');
  783. return "<img src='" + _smallSrc + "&u=1' class='small'>";
  784. },
  785.  
  786. _renderLoginButton: function() {
  787. var _wrapper = document.createElement("div"),
  788. _button = document.createElement("a");
  789.  
  790. _button.innerHTML = "zaloguj";
  791. _button.href = this._loginUrl;
  792. _wrapper.id = "loginMenu";
  793.  
  794.  
  795. _wrapper.appendChild(_button);
  796. return _wrapper;
  797. }
  798.  
  799.  
  800.  
  801. };
  802.  
  803. /**
  804. * Renderuje stopkę
  805. *
  806. **/
  807.  
  808. var Footer = {
  809.  
  810. _container: 'footer',
  811. getWPYear: function(){
  812. try {
  813. var d = new Date();
  814. var n = d.getFullYear();
  815. return n;
  816. } catch(e) { doError(e); }
  817. },
  818.  
  819. render: function() {
  820. try {
  821. var _html =
  822. '<div id="stgFooter">'+
  823. '<div class="stgFooterMain">'+
  824. '<div id="stgFooterCnt">'+
  825. '<div class="stgFooterLnk">'+
  826. '<a href="http://onas.wp.pl/">O firmie</a>|'+
  827. '<a href="http://dlaprasy.wp.pl/">Dla prasy</a>|'+
  828. '<a href="http://reklama.wp.pl/">Reklama</a>|'+
  829. '<a href="http://ebiznes.wp.pl/">Biznes z WP</a>|'+
  830. '<a href="http://pomoc.wp.pl/formularz.html?serwis=Poczta">Skontaktuj się z WP</a>|'+
  831. '<a href="http://rekrutacja.wp.pl/">Praca</a>|'+
  832. '<a href="http://onas.wp.pl/poufnosc.html">Prywatność</a>|'+
  833. '<a href="http://poczta.wp.pl/info-antyspam-polityka.html">Polityka antyspamowa</a>'+
  834. '</div>'+
  835. '<div class="stgFooterCopyright">Copyright &copy; 1995-'+this.getWPYear() +' <a href="http://wp.pl">Grupa Wirtualna Polska</a></div>'+
  836. '</div>'+
  837. '</div>'+
  838. '</div>';
  839.  
  840. var _container = document.getElementById(this._container);
  841. _container.innerHTML = _html;
  842.  
  843. } catch(e) { doError(e); }
  844. }
  845.  
  846. };
  847.  
  848.  
  849. function bindEvent(object,event,handler) {
  850. try {
  851. if (object.addEventListener){
  852. object.addEventListener(event,handler,false);
  853. } else if (object.attachEvent){
  854. object.attachEvent("on"+event, handler);
  855. }
  856. } catch(e) {
  857. doError(e);
  858. }
  859. }
  860.  
  861. /**
  862. * Dodaje lub usuwa styl z elementu DOM
  863. *
  864. * @author elmo
  865. */
  866. var styleModificator = {
  867.  
  868. /**
  869. *
  870. * @param object elem
  871. * @param string styleName
  872. */
  873. addStyle: function(elem, styleName) {
  874. try{
  875. var oldStyle = elem.className;
  876. if("" === oldStyle) {
  877. elem.className = styleName;
  878. } else if (oldStyle == styleName) {
  879. return;
  880. } else if (oldStyle.indexOf(" " + styleName) === -1) {
  881. elem.className += " " + styleName;
  882. }
  883. }catch(e) {}
  884. },
  885.  
  886. /**
  887. * Usuwa styl tylko jesli jest na koncu
  888. *
  889. * @param object elem
  890. * @param string styleName
  891. */
  892. removeStyle: function(elem, styleName) {
  893. try{
  894. var oldStyle = elem.className;
  895. if ("" === oldStyle) {
  896. return;
  897. } else if (oldStyle == styleName) {
  898. elem.className = "";
  899. } else {
  900. var idx = oldStyle.indexOf(" " + styleName);
  901. if (idx !== -1) {
  902. elem.className = oldStyle.substring(0, idx);
  903. }
  904. }
  905. } catch(e) {}
  906. }
  907. };
  908.  
  909.  
  910.  
  911. var doError = function(e) {
  912. alert(e);
  913. };
  914.  
  915. function getMainMenuTree() {
  916.  
  917. // Zmienne
  918. //------------------------
  919.  
  920. // Konfiguracja submenu
  921.  
  922. var submenuKonto = [
  923. { label: '2.1. parametry konta', href: 'opcje-parametry.html'},
  924. { label: '2.2. mój profil', href: 'https://profil.wp.pl?serwis=poczta.wp.pl '},
  925. ];
  926.  
  927. var submenuUstawieniaKonta = [
  928. { label: '3.1. ogólne', href: 'opcje-skrzynka.html' },
  929. { label: '3.2. wygląd', href: 'opcje-wyglad.html' },
  930. { label: '3.3. foldery', href: 'opcje-foldery.html' },
  931. { label: '3.4. filtry ', href: 'opcje-filtry.html' },
  932. { label: '3.5. aliasy', href: 'opcje-adresy.html' },
  933. { label: '3.6. domeny', href: 'opcje-domeny.html' },
  934. { label: '3.7. powiadomienia', href: 'powiadomieniasms.html' },
  935. { label: '3.8. konta zewnętrzne', href: 'opcje-multipop.html'},
  936. { label: '3.9. segregator', href: 'segregator.html'}
  937. ];
  938.  
  939. var submenuDodatki = [
  940. { label: '4.1. bramka sms', href: 'opcje-sms.html' },
  941. { label: '4.2. kalendarz', href: 'opcje-kalendarz.html' }
  942. ];
  943.  
  944. var submenuBezpieczenstwo = [
  945. { label: '5.1. WPAntyspam', href: 'opcje-antyspam.html' },
  946. { label: '5.2. Antyhack', href: 'opcje-antyhack.html' }
  947. ];
  948.  
  949. // Submenu "Opcje"
  950. var submenuOpcje = [
  951. { label: '1. jeśli coś nie działa', href: 'opcje-cosniedziala.html' },
  952. { label: '2. konto', submenu: submenuKonto },
  953. { label: '3. ustawienia konta', submenu: submenuUstawieniaKonta },
  954. { label: '4. dodatki', submenu: submenuDodatki },
  955. { label: '5. bezpieczeństwo', submenu: submenuBezpieczenstwo },
  956. { label: '6. regulaminy', href: 'opcje-terms.html' }
  957. ];
  958.  
  959.  
  960. // Submenu Pomoc -> Pomoc
  961.  
  962. var submenuPomocPomoc = [
  963. { label: 'strona główna', href: 'info-pomoc.html' },
  964. { label: 'zgłoś problem', href: 'info-pomoc-awaria.html'},
  965. { label: 'konf. prog. pocz.', href: 'info-pomoc-konfig.html' },
  966. { label: 'ustawienia Poczty', href: 'info-pomoc-ustawienia.html#anc-faq-korzystanie' },
  967. { label: 'problemy', href: 'info-pomoc-ustawienia.html#anc-faq-problemy' },
  968. { label: 'Poczta PRO', href: 'info-pomoc-zakladanie.html?flow=6,#pro' },
  969. { label: 'kontakt', href: 'info-pomoc-awaria.html' }
  970. ];
  971.  
  972. // Submenu Pomoc->Antyspam
  973.  
  974. var submenuAntyspam = [
  975. { label: 'strona główna', href:'info-antyspam.html' },
  976. { label: 'metody', href: 'info-antyspam-metody.html' },
  977. { label: 'ustawienia', href: 'info-antyspam-ustawienia.html' },
  978. { label: 'polityka', href:'info-antyspam-polityka.html'}
  979. ];
  980.  
  981. // Submenu "Pomoc"
  982.  
  983. var submenuPomoc = [
  984. { label: 'o Poczcie WP', href: 'info-start.html' },
  985. { label: 'pomoc', submenu: submenuPomocPomoc },
  986. { label: 'nowości',href: 'info-nowosci.html'},
  987. { label: 'Antyspam', submenu: submenuAntyspam },
  988. { label: 'regulamin', href: 'info-regulamin.html' },
  989. { label: 'Poczta w komórce', href: 'info-poczwkom.html' }
  990. ];
  991.  
  992.  
  993. // Główne menu
  994. var mainMenu = {
  995.  
  996. poczta : {
  997. label: "poczta",
  998. href: "//poczta.wp.pl"
  999. },
  1000. contacts : {
  1001. label: "kontakty",
  1002. href: "http://kontakty.wp.pl"
  1003. },
  1004.  
  1005. kalendarz: {
  1006. label: "kalendarz",
  1007. href: "http://kalendarz.wp.pl"
  1008. },
  1009.  
  1010. opcje: {
  1011. label: "opcje",
  1012. submenu: submenuOpcje
  1013. },
  1014.  
  1015. pomoc: {
  1016. label: "pomoc",
  1017. href: "http://pomoc.wp.pl"
  1018. },
  1019.  
  1020. kupony: {
  1021. label: "kupony",
  1022. href: "http://poczta.wp.pl/kupony.html",
  1023. visible: false
  1024. }
  1025.  
  1026. };
  1027.  
  1028. return mainMenu;
  1029.  
  1030. }
  1031.  
  1032. </script>
  1033.  
  1034. <script type="text/javascript">
  1035. var loadingPageStart = (new Date()).getTime();
  1036. if(self!=top)top.location=self.location;
  1037. var ltFirst = 1499796173 ;
  1038. </script>
  1039. <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="http://i.wp.pl/a/i/stg/450/970_ie6.css" /><![endif]-->
  1040.  
  1041. <script type="text/javascript">
  1042. <!--//--><![CDATA[//><!--
  1043. var pp_gemius_identifier = 'zIEwDPhjE8DDFfZiJipH8ZRpfZWGG_OazjcM4jiWctL.37';
  1044. // lines below shouldn't be edited
  1045. function gemius_pending(i) { window[i] = window[i] || function() {var x = window[i+'_pdata'] = window[i+'_pdata'] || []; x[x.length]=arguments;};};
  1046. gemius_pending('gemius_hit'); gemius_pending('gemius_event'); gemius_pending('pp_gemius_hit'); gemius_pending('pp_gemius_event');
  1047. (function(d,t) {try {var gt=d.createElement(t),s=d.getElementsByTagName(t)[0],l='http'+((location.protocol=='https:')?'s':''); gt.setAttribute('async','async');
  1048. gt.setAttribute('defer','defer'); gt.src=l+'://a.wpimg.pl/a/i/stg/247,xgemius.js'; s.parentNode.insertBefore(gt,s);} catch (e) {}})(document,'script');
  1049.  
  1050. var interval_id = setInterval(function() { gemius_hit('zNiQ0fhfI0IjX4XrNgGzT8cQ7zdkg9sYVvZP4Ac7JNT.e7');},60000); //zainicjowanie pomiaru czasu
  1051. //--><!]]>
  1052. </script>
  1053. <script>
  1054.  
  1055. function gfkSst(param){
  1056. try {
  1057. return;
  1058. } catch(e) {}
  1059. }
  1060. /*
  1061. var gfkSstConf = {
  1062. "url": "config.sensic.net/pl1-sst-w.js",
  1063. "media" : "wpPL",
  1064. "impression" : "manually"
  1065. };
  1066. (function (w, d, c, s, id) {
  1067. if (d.getElementById(id)) {return;}
  1068. w[id] = w[id] || function () {
  1069. if ("undefined" == typeof gfkSstApi) {w[id].queue.push(arguments[0]);
  1070. } else {gfkSstApi.impression(arguments[0]);}
  1071. };
  1072. w[id].queue = w[id].queue || [];
  1073. var tag = d.createElement(s); var el = d.getElementsByTagName(s)[0];
  1074. tag.id = id; tag.async = true; tag.src = '//' + c.url;
  1075. el.parentNode.insertBefore(tag, el);
  1076. })(window, document, gfkSstConf, 'script', 'gfkSst');
  1077. */
  1078. <!--//<![CDATA[
  1079. var wp_sn = 'poczta_interfejs';
  1080. var wp_dot_type = 'time';
  1081. var wp_cookie_info = false;
  1082. var wp_fba = '1499796173.9423';
  1083. //]]> -->
  1084. </script>
  1085. <script>
  1086. <!--//<![CDATA[
  1087. var wp_gemius_send = false;
  1088. var wp_dot_send = false;
  1089.  
  1090. function gfkSstExt (gfkId){
  1091. try {
  1092. // wyrzucone, https://jira.int.wp-sa.pl/browse/POCZWPSUP-168
  1093. // gfkSst(gfkId);
  1094. gfkSstConf = {
  1095. 'media' : 'wpPL',
  1096. 'impression' : 'manually',
  1097. 'content' : gfkId
  1098. };
  1099. WP.stat.dot('poczta_dynamic', null , 'top');
  1100.  
  1101. } catch(e) {}
  1102. }
  1103. //]]> -->
  1104. </script>
  1105. <script type="text/javascript">
  1106. window.rekid = '234782';
  1107. window.habahaba = 'varxbxsampxemxstrongxinsxcitexi';
  1108. window.gafReady = true;
  1109. </script>
  1110.  
  1111.  
  1112.  
  1113.  
  1114. <script type="text/javascript" src="//a.wpimg.pl/a/i/stg/wpjslib-core.js" crossorigin charset="UTF-8"></script>
  1115.  
  1116.  
  1117.  
  1118.  
  1119. <script type="text/javascript">
  1120. function markWpStats(keyId){
  1121. try {
  1122. WP.performance.mark(keyId);
  1123. } catch(e) {}
  1124. }
  1125.  
  1126. function measureWpStats(keyPeriodId,keyStartId,keyFinishId){
  1127. try {
  1128. WP.performance.mark(keyPeriodId,keyStartId,keyFinishId);
  1129. } catch(e) {}
  1130. }
  1131.  
  1132. function sendAndResetWpStats(){
  1133. try {
  1134. WP.performance.sendAndReset();
  1135. } catch(e) {}
  1136. }
  1137. function countWpStats(countID){
  1138. try {
  1139. WP.performance.count(countID);
  1140. } catch(e) {}
  1141. }
  1142.  
  1143. function loggerWP(message){
  1144. try {
  1145. console.log(message);
  1146. } catch(e) {}
  1147. }
  1148.  
  1149. </script>
  1150.  
  1151. <script type="text/javascript">
  1152. // to ponizej trzeba sprawdzic przed wdrozeniem
  1153. window.wp_dot_send = false;
  1154. // window.habahaba = 'varxbxsampxemxstrongxinsxcitexi';
  1155. // window.gafReady = true;
  1156.  
  1157. var bunchID = window.rekid;
  1158. // bunchID = '234782';
  1159. __initializedSlots = [];
  1160. habahabaTags = window.habahaba.split('x');
  1161.  
  1162. function isGAFOK(){
  1163. try {
  1164. var gafAPI = window.gafAPI;
  1165. if (!gafAPI) {
  1166. return false;
  1167. }
  1168. return true;
  1169. } catch(e) {}
  1170. }
  1171.  
  1172. // isGAFOK();
  1173.  
  1174. function getCodeSlot(slot){
  1175. try {
  1176. var slotArray = ('' + slot).split('');
  1177. tagsToUse = [];
  1178. chosenTags = habahabaTags;
  1179. for (var i = 0; i < 4; i++) {
  1180. tagsToUse.splice(i, 0, chosenTags[slotArray[i]]);
  1181. }
  1182.  
  1183. var code = '<' + tagsToUse[0] + '><' + tagsToUse[1] + '><' + tagsToUse[2] + '><' + tagsToUse[3] + '></' + tagsToUse[3] + '></' + tagsToUse[2] + '></' + tagsToUse[1] + '></' + tagsToUse[0] + '>';
  1184. return code;
  1185. } catch(e) {}
  1186. }
  1187.  
  1188. function launchAdvElement(inbunchID, elementID){
  1189. try {
  1190. gafAPI.loadBunch(inbunchID, function(data) {
  1191. gafAPI.runSlot(inbunchID,elementID) ;
  1192. });
  1193. } catch(e) {}
  1194. }
  1195.  
  1196. function loadAndRunElement(inbunchID, elementID){
  1197. try {
  1198. gafAPI.loadAndRunSlots(inbunchID,elementID);
  1199. } catch(e) {}
  1200. }
  1201.  
  1202. function hideAdvElement(inbunchID,elementID){
  1203. try {
  1204. gafAPI.resetSlot(inbunchID,elementID );
  1205. } catch(e) {}
  1206. }
  1207.  
  1208. function isCampaignON(icheckSlots, SlotID){
  1209. try {
  1210. if (icheckSlots[SlotID]){
  1211. if (icheckSlots[SlotID].campaign === null){
  1212. return false;
  1213. }
  1214. return true;
  1215. }
  1216. return false;
  1217. } catch(e) {}
  1218. return false;
  1219. }
  1220.  
  1221. function launchAdvElementAndCheck(bunchID, SlotIDs, addBunchID, addSlotID, launchAll ){
  1222. try {
  1223. gafAPI.loadBunch(bunchID, function(data) {
  1224. var checkSlots = data[bunchID].slots;
  1225. var cpON = false;
  1226.  
  1227. var SlotIDsA = SlotIDs.split(",");
  1228. for (var i in SlotIDsA ){
  1229. cpON = isCampaignON(checkSlots,parseInt(SlotIDsA[i]));
  1230. if (cpON){
  1231. break;
  1232. }
  1233. }
  1234.  
  1235. if (!cpON){
  1236. if ((addBunchID.length > 0) && (addSlotID.length > 0 )){
  1237.  
  1238. gafAPI.runSlots(addBunchID,addSlotID );
  1239. }
  1240. }
  1241.  
  1242. if (launchAll){
  1243. gafAPI.runSlots(bunchID,SlotIDsA );
  1244. }
  1245.  
  1246. });
  1247. } catch(e) {}
  1248. }
  1249.  
  1250. function launchAdvElements(bunch1, parambunch1, bunch2 ,parambunch2 ){
  1251. try {
  1252. var aParam1 = parambunch1.split(",");
  1253. var aParam2 = parambunch2.split(",");
  1254. bunchs = new Array();
  1255. bunchs[0] = '';
  1256. if (bunch1.length > 0){
  1257. bunchs[0] = bunch1;
  1258. }
  1259.  
  1260. if (bunch2.length > 0){
  1261. bunchs[1] = bunch2;
  1262. }
  1263. if (bunchs.length <= 0){
  1264. return;
  1265. }
  1266.  
  1267. gafAPI.loadBunch(bunchs, function(data) {
  1268. var checkSlots;
  1269.  
  1270. if (aParam1.length>0 && bunchs[0].length> 0 ){
  1271. if (isBoxID(aParam1,'54')){
  1272. checkSlots = data[bunch1].slots;
  1273. aParam1 = cutSlotID(aParam1,'54');
  1274. launchBoxId(bunchs[0],checkSlots,'54');
  1275. }
  1276. if (isBoxID(aParam1,'58')){
  1277. checkSlots = data[bunch1].slots;
  1278. aParam1 = cutSlotID(aParam1,'58');
  1279. setTimeout(function(){ gafAPI.runSlot(bunchs[0] ,'58'); }, 1000);
  1280.  
  1281. }
  1282. if (aParam1.length>0){
  1283. gafAPI.runSlots(bunchs[0], aParam1);
  1284. }
  1285. }
  1286. if (typeof (bunchs[1]) !== "undefined") {
  1287. if (aParam2.length>0 && bunchs[1].length> 0){
  1288. if (isBoxID(aParam2,'54')){
  1289. checkSlots = data[bunch2].slots;
  1290. aParam2 = cutSlotID(aParam2,'54');
  1291. launchBoxId(bunchs[1],checkSlots,'54');
  1292. }
  1293. if (aParam1.length>0){
  1294. gafAPI.runSlots(bunchs[1], aParam2);
  1295. }
  1296. }
  1297. }
  1298. });
  1299. } catch(e) {}
  1300. }
  1301.  
  1302. function cutSlotID(slotsID, id){
  1303. try {
  1304. outslotsID = new Array();
  1305. if (typeof slotsID === 'string'){
  1306. slotsID = new Array(slotsID);
  1307. }
  1308. var countEl = 0;
  1309. for (var i in slotsID){
  1310. if (slotsID[i] != id){
  1311. outslotsID[countEl] = slotsID[i];
  1312. countEl++;
  1313. }
  1314.  
  1315. }
  1316. return outslotsID;
  1317. } catch(e) {}
  1318. }
  1319.  
  1320.  
  1321. function isBoxID(slotsID, id){
  1322. try {
  1323. if (typeof slotsID === 'string'){
  1324. slotsID = new Array(slotsID);
  1325. }
  1326. for (var i in slotsID){
  1327. if (slotsID[i] == id){
  1328. return true;
  1329. }
  1330. }
  1331. return false;
  1332. } catch(e) {}
  1333. }
  1334.  
  1335.  
  1336. function launchBoxId(bunchId,checkSlots,boxId ){
  1337. try {
  1338. var cpON = isCampaignON(checkSlots,parseInt(boxId));
  1339. if (cpON ){
  1340. try {
  1341. var ppWrap = document.getElementById('w345_dr');
  1342. ppWrap.style.minHeight = '60px';
  1343. ppWrap.style.marginBottom = '15px';
  1344. } catch(e) {}
  1345. gafAPI.runSlot(bunchId,boxId);
  1346. }
  1347. } catch(e) {}
  1348. }
  1349.  
  1350. // sekcja multiupload
  1351.  
  1352.  
  1353. var attListG = Array();
  1354. var upListFile ;
  1355.  
  1356. function removeAtt(){
  1357. attListG = Array();
  1358. }
  1359.  
  1360. function getAttFileInfo(){
  1361. try {
  1362. var ret = new Array();
  1363. // ustawienie globala
  1364. upListFile = document.getElementById("uploadInputPlik").files;
  1365. var oFiles = upListFile;
  1366. for (var nFileId = 0; nFileId < oFiles.length; nFileId++) {
  1367. var ofileInfo ={fileName: oFiles[nFileId].name, fileSize: oFiles[nFileId].size,fileAttId: nFileId};
  1368. ret[nFileId] = ofileInfo;
  1369. }
  1370. return ret;
  1371. } catch(e) {}
  1372. }
  1373.  
  1374.  
  1375. function getUploadId(str){
  1376. try {
  1377. var mark = ';';
  1378. var ptmp = str.split(");var muploadId=");
  1379. if (ptmp[1] !== "undefined"){
  1380. var stt = ptmp[1];
  1381. imark = stt.indexOf(mark);
  1382. return stt.slice(0,imark);
  1383. }
  1384. return '';
  1385. } catch(e) {}
  1386.  
  1387. }
  1388.  
  1389. function getErrorUploadId(str){
  1390. try {
  1391. var npos = str.indexOf(");var muploadIdError=");
  1392. if (npos == -1){
  1393. return '';
  1394. }
  1395. var mark = ';';
  1396. var ptmp = str.split(");var muploadIdError=");
  1397. if (ptmp[1] !== "undefined"){
  1398. var stt = ptmp[1];
  1399. imark = stt.indexOf(mark);
  1400. return stt.slice(0,imark);
  1401. }
  1402. return '';
  1403. } catch(e) {}
  1404.  
  1405. }
  1406.  
  1407.  
  1408.  
  1409. function setAttachmentList(inAttId,attUrl,attUrlID) {
  1410. try {
  1411. inAttId = parseInt(inAttId);
  1412. oFiles = upListFile;
  1413. var ofileInfo = {ofileName: oFiles[inAttId].name, oattId:inAttId, oattUrl:attUrl, oattUrlID:attUrlID};
  1414. attListG[inAttId] = ofileInfo;
  1415. } catch(e) {}
  1416. }
  1417.  
  1418.  
  1419. function getFirstAtt(){
  1420. try {
  1421. for (var i in attListG){
  1422. return attListG[i];
  1423. }
  1424. return -1;
  1425. } catch(e) {}
  1426. }
  1427.  
  1428.  
  1429. function resetAttList(){
  1430. try {
  1431. attListG = new Array();
  1432. return -1;
  1433. } catch(e) {}
  1434. }
  1435.  
  1436. function removeItemAtt(iAtt){
  1437. try {
  1438. var oFiles = upListFile;
  1439. var localAtt = new Array();
  1440. for (var i in attListG){
  1441. if ( attListG[i].oattUrlID == iAtt){
  1442. continue;
  1443. }
  1444. localAtt[i] = attListG[i];
  1445. }
  1446. attListG = localAtt;
  1447. } catch(e) {}
  1448. }
  1449.  
  1450.  
  1451.  
  1452.  
  1453. function sendAttMulti(){
  1454. try {
  1455. var dataAtt = getFirstAtt();
  1456.  
  1457. if ('number' === typeof(dataAtt)){
  1458. var pFinish = "";
  1459. attAllMultiFinished(pFinish);
  1460. return ;
  1461. }
  1462.  
  1463. var formData = new FormData();
  1464. formData.append("plik", upListFile[dataAtt.oattId]);
  1465.  
  1466. var request = new XMLHttpRequest();
  1467. request.open("POST", dataAtt.oattUrl,true);
  1468. request.onreadystatechange = function (aEvt) {
  1469. if (request.readyState == 4) {
  1470.  
  1471. var isErrorUploadID = getErrorUploadId(request.responseText);
  1472. if (isErrorUploadID.length > 0){
  1473. // wyzeruj liste
  1474. resetAttList();
  1475. // przekaz ze koniec
  1476. attItemMultiErrorFinised('Wystapił błąd. Spróbuj później');
  1477. return ;
  1478. }
  1479.  
  1480. if(request.status == 200){
  1481. attItemMultiFinised(getUploadId(request.responseText));
  1482. }else{
  1483.  
  1484. }
  1485. removeItemAtt(getUploadId(request.responseText));
  1486.  
  1487. sendAttMulti();
  1488. }
  1489. };
  1490. request.send(formData);
  1491. } catch(e) {}
  1492. }
  1493.  
  1494. </script>
  1495.  
  1496. <link rel="stylesheet" type="text/css" href="//a.wpimg.pl/a/i/stg/500/984-poczta.css">
  1497. <link id="cssSkin" href="css/94d4fffabdb956af97f25e93017a300c/p6/skins/generated/70_verdana_normal.css" type="text/css"
  1498. rel="stylesheet">
  1499. <link id="upCssSkin" href="//i.wp.pl/a/i/up/1.0.14/70.css" type="text/css"
  1500. rel="stylesheet">
  1501.  
  1502. <link id="businessCssSkin" href="css/00fb84a85457d14390498a1bb63cf01e/p6/skins/business.css" type="text/css"
  1503. rel="stylesheet">
  1504.  
  1505. </head>
  1506. <body class="hasCollapsers">
  1507. <div id="w345_dr"><div id="gaf_54"></div></div>
  1508.  
  1509. <iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
  1510.  
  1511. <img class="dotWpPl" src="//dot.wp.pl/dyn/login.html?wpid=michal11111.95&amp;url=empty.gif"><!-- headerJavascript::begin -->
  1512. <script language="javascript">
  1513.  
  1514.  
  1515. var port = window.location.port;
  1516. if (port != "") {
  1517. port = ':' + port;
  1518. }
  1519.  
  1520. var cdApplicationContext = {"gwtVersion":"3.2.50","logStartupTimesEnabled":false,"logJsonRequestTimesEnabled":false,"logErrorsEnabled":true,"requestTimeoutMillis":45000,"auxRequestTimeoutMillis":60000,"jsonServiceUrl":"http:\/\/poczta.wp.pl"+port+"\/d605\/jsongwt.html","jsonAuxServiceUrl":"http:\/\/poczta.wp.pl"+port+"\/jsongwtaux.html","newMailUrl":"http:\/\/poczta.wp.pl"+port+"\/d605\/newmail.html","newSmsUrl":"http:\/\/poczta.wp.pl"+port+"\/d605\/newsms.html","iconBaseUrl":"","tinymceUrl":"\/p6\/jsx\/tiny_mce\/tiny_mce.js","jsUrl":"\/p6\/jsx\/","viewName":"indexgwt","newMailOrSmsView":false,"popupMode":false,"mailWindowFeatures":"left=0,top=0,width=750,height=650,innerheight=620,innerwidth=750,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=yes","advSentMail":{"url":"\/advdyn.html?ts=1499796173&rekid=9664&advId=1&sdc=m","width":530,"height":260},"hostedMode":false,"adminMode":false,"pocztaDomain":"poczta.wp.pl","adresyUrl":"http:\/\/kontakty.wp.pl\/","kalendarzUrl":"http:\/\/kalendarz.wp.pl\/","pocztaUrl":"http:\/\/poczta.wp.pl"+port+"\/","pocztaUrlWithDisk":"http:\/\/poczta.wp.pl"+port+"\/d605\/","zalacznikUrl":"http:\/\/zalacznik.wp.pl\/","blogCreateFolderAbsoluteUrl":"http:\/\/poczta.bloog.pl\/id,3099653,s,1,title,Zakladanie-nowego-folderu,index.html","blogPageSizeAbsoluteUrl":"http:\/\/poczta.bloog.pl\/id,3040237,s,1,title,Jak-zmienic-liczbe-wiadomosci-na-stronie,index.html","blogSaveMessageAbsoluteUrl":"http:\/\/poczta.bloog.pl\/id,3052300,s,1,title,Zapisywanie-wyslanych-listow,index.html","blogSetColumnsAbsoluteUrl":"http:\/\/poczta.bloog.pl\/id,3069537,s,1,title,Ustawienia-kolumn-na-liscie-wiadomosci,index.html","blogSmsNotificationAbsoluteUrl":"http:\/\/poczta.bloog.pl\/id,3867408,title,Powiadomienia-SMS,index.html","duzePlikiDodajAbsoluteUrl":"http:\/\/pliki.wp.pl\/dodaj.html?poczta=1","infoPomocAwariaAbsoluteUrl":"http:\/\/poczta.wp.pl"+port+"\/info-pomoc-awaria.html","pakietyPlatnosciAbsoluteUrl":"https:\/\/platnosci.wp.pl\/n\/pakiety.html?service=1","pakietySMSPlatnosciAbsoluteUrl":"https:\/\/platnosci.wp.pl\/n\/pakiety.html?service=32","pakietyPowiadomieniaPlatnosciAbsoluteUrl":"https:\/\/platnosci.wp.pl\/n\/pakiety.html?service=29","profilLoginAbsoluteUrl":"http:\/\/profil.wp.pl\/login.html?url=http%3A%2F%2Fpoczta.wp.pl%2Findexgwt.html%26serwis%3Dnowa_poczta_wp","profilWizytowkaAbsoluteUrl":"http:\/\/profil.wp.pl\/wizytowka.html","secureImageAbsoluteUrl":"http:\/\/si.wp.pl\/obrazek","adresyDodajRelativeUrl":"adresy_dodaj.html","htmlMessageViewRelativeUrl":"listHtml.html","infoPomocAwariaRelativeUrl":"info-pomoc-awaria.html","kontaRelativeUrl":"konta.html","napiszRelativeUrl":"napisz.html","opcjeAntyspamRelativeUrl":"opcje-antyspam.html","opcjeCosNieDzialaRelativeUrl":"opcje-cosniedziala.html","opcjeFiltryRelativeUrl":"opcje-filtry.html","opcjeFiltryComRelativeUrl":"opcje-filtry-com.html","opcjeFiltryEditRelativeUrl":"opcje-filtry-edit.html","opcjeFolderyRelativeUrl":"opcje-foldery.html","opcjeMultipopRelativeUrl":"opcje-multipop.html","opcjeRegulaminBramkaSmsRelativeUrl":"p6\/html\/regulamin_bramka_sms.html","opcjeSkrzynkaPodpisRelativeUrl":"opcje-skrzynka.html#jjOpcje","opcjeSkrzynkaRelativeUrl":"opcje-skrzynka.html","opcjeSmsRelativeUrl":"opcje-sms.html","opcjeTermsPsmsRelativeUrl":"opcje-terms.html?terms=psms","opcjeTermsSmsRelativeUrl":"opcje-terms.html?terms=sms","opcjeWygladRelativeUrl":"opcje-wyglad.html","wallpaperRelativeUrl":"wallpaper.html","zapiszRelativeUrl":"\/zapisz.html","mailToBramkaSms":"bramka-sms-wp@wp.pl","mailToPocztaSkorki":"poczta-skorki@wp.pl","mailToTinyMce":"nowy_list_html@wp.pl","ssl":false,"p3LogoutPage":"http:\/\/poczta.wp.pl\/wyloguj.html","p6LogoutPage":"http:\/\/poczta.wp.pl\/logoutgwt.html","advLeftColumn":{"url":"\/advdyn.html?ts=1499796173&rekid=231714&advId=4&sdc=m","width":0,"height":0},"advMiddle":{"url":"\/advdyn.html?ts=1499796173&rekid=231715&advId=10&sdc=m","width":0,"height":0},"advRight":{"url":"\/advdyn.html?ts=1499796173&rekid=231709&advId=7&sdc=m","width":164,"height":604},"advSidebar":{"url":"\/advdyn.html?ts=1499796173&rekid=578&advId=16&sdc=m","width":0,"height":0},"advTopSP":{"url":"\/advdyn.html?ts=1499796173&rekid=578&advId=3,2&sdc=m","width":770,"height":120},"advTop":{"url":"\/advdyn.html?ts=1499796173&rekid=578&advId=3,2&sdc=m","width":770,"height":120},"advStartPage":{"url":"\/advdyn.html?ts=1499796173&rekid=9635&advId=1&sdc=m","width":304,"height":264},"advBottom":{"url":"\/advdyn.html?ts=1499796173&rekid=9689&advId=6&sdc=m","width":770,"height":220},"minWidthToShowRightAdv":1200,"ggBoxEnabled":false,"ggBoxVisible":false,"ggJSurl":"http:\/\/wp-ubik.gg.pl\/wp\/webgg\/1.7.2\/standard\/default\/js\/webgg.js","ggCSSurl":"http:\/\/wp-ubik.gg.pl\/wp\/webgg\/1.7.2\/standard\/default\/css\/webgg.css","startPage":false,"startGgUrl":"http:\/\/poczta.wp.pl"+port+"\/proxygg\/execute","uaumImgUrl":"http:\/\/poczta.wp.pl"+port+"\/d605\/uaum.gif","playMediaRelativeUrl":"playmedia.html"};
  1521. var cdMockContext = {"fixedSizePopup":false,"debugEnabled":false};
  1522. var cdProfilContext = {"login":"michal11111.95","skin":70,"ggProxyToken":"33348","ggState":0,"complexPattern":false,"fontSizeBig":false,"iconButtons":false,"fontType":"Verdana","mmsDisk":"d605","notifyId":"9892737665307844QW%2B4N4cz%2FBlyMgjimEz2onCV8YtCy3hfY%2BsXExTqIo8%3D","topButtons":{"receive":false,"write":false,"remove":false,"response":false,"forward":false,"gallery":false,"move":false,"spam":false,"blacklist":false,"print":false},"listButtons":{"receive":false,"write":false,"remove":false,"response":false,"forward":false,"gallery":false,"move":false,"spam":false,"blacklist":false,"print":false},"msgButtons":{"receive":false,"write":false,"remove":false,"response":true,"forward":true,"gallery":false,"move":true,"spam":false,"blacklist":false,"print":true},"columns":{"ADDRESS":true,"SUBJECT":true,"DATE_GET":true,"PRIORITY":false,"DATE_SENT":false,"SIZE":true},"msgPerPageCount":10,"defaultSortColumn":"ARRIVAL","defaultSortAsc":false,"mailComposerPopup":true,"captchaRequired":"","htmlEditor":true,"attachmentOnReply":false,"attachmentOnForward":true,"textOnReply":true,"signatureOnReplyForward":true,"signatureOnNewMail":true,"notifySound":"0","calendarEventsDays":[],"mailAliases":[],"mainMailAddresses":["michal11111.95@wp.pl"],"leftColumnConfig":[{"id":"G","show":true,"collapsed":false},{"id":"H","show":false,"collapsed":false},{"id":"V","show":true,"collapsed":false},{"id":"K","show":true,"collapsed":false},{"id":"M","show":true,"collapsed":false},{"id":"S","show":true,"collapsed":false},{"id":"T","show":true,"collapsed":false},{"id":"L","show":true,"collapsed":false},{"id":"N","show":true,"collapsed":false},{"id":"A","show":true,"collapsed":false},{"id":"B","show":true,"collapsed":false},{"id":"C","show":false,"collapsed":false},{"id":"D","show":false,"collapsed":false},{"id":"I","show":true,"collapsed":false},{"id":"J","show":true,"collapsed":false},{"id":"E","show":false,"collapsed":false},{"id":"F","show":false,"collapsed":false}],"userSwitched":false,"userLogTime":1499796173,"phoneVerificationRequired":false,"proDaysLeft":-1,"daysFromCreate":933,"dataWiseTester":false,"benefitTester":false,"benefitUrl":"","phoneVerified":true};
  1523. var cdUploadAttachmentContext = {"urlSwf":"\/swf\/upload_10_06.swf","urlFlash":"http:\/\/poczta.wp.pl\/uploadAtt.html?ticaid=7197cc&ticket=4826136824120042cZhpgR5LBH5gcviHmmG7lSb%2F5uloQwP9c2i8LcJuVxZcDOXyXP%2BtbSBMTJ%2F6QLr%2BHnq3R3ITnE0vwGCOAW9m6SvPOoxtl7p6QbGU1%2F624Xp%2BDx0GYsbYPB9Sq5%2BlfmHI","urlSingle":"uploadAtt.html","activeFlashUploader":true,"uploadProgressIntervalSec":5,"maxAttachmentSize":104857600,"maxUploadAttachmentNumber":50};
  1524. var cdBinderContext = {"on":true,"tabs":[{"name":"G\u0142\u00f3wna","desc":"Listy wa\u017cne dla Ciebie","categories":[1,0],"enabled":true,"styleName":"inbox"},{"name":"Spo\u0142eczno\u015bci","desc":"Powiadomienia z portali spo\u0142eczno\u015bciowych, randkowych itp.","categories":[2],"enabled":true,"styleName":"social"},{"name":"Zakupy grupowe","desc":"Wiadomo\u015bci dotycz\u0105ce zakup\u00f3w grupowych","categories":[3],"enabled":true,"styleName":"shopping"},{"name":"Oferty","desc":"Okazje, oferty i inne e-maile marketingowe","categories":[4],"enabled":true,"styleName":"offers"},{"name":"Inne","desc":"Wszystkie inne wiadomo\u015bci masowe","categories":[5],"enabled":true,"styleName":"other"}],"dnd":true,"first":false,"flushRangeText":"rok"};
  1525.  
  1526. </script>
  1527.  
  1528. <script language="javascript">
  1529. // kontrola i logowanie zaladowania gwt
  1530. var isGWTLoaded = false;
  1531. var loadingStart = (new Date()).getTime();
  1532.  
  1533. function logLoading(action, loadingTime, pageType) {
  1534. var newIframe = document.createElement("iframe");
  1535. newIframe.id = "action";
  1536. newIframe.style.display="none";
  1537. newIframe.src = "action.html?a=" + action + "&t=" + loadingTime + "&sp=0"
  1538. + (pageType?"&pt="+pageType:"");
  1539. document.body.appendChild(newIframe);
  1540. }
  1541.  
  1542. // wywolywane przez gwt po zaladowaniu
  1543. function gwtLoaded() {
  1544. isGWTLoaded = true;
  1545. var actualTime = (new Date()).getTime();
  1546. logLoading("logPageLoading", actualTime - loadingPageStart);
  1547. var loadingTime = actualTime - loadingStart;
  1548. logLoading("logLoading", loadingTime);
  1549. }
  1550.  
  1551. var isFirstPageLogged = false;
  1552. // wywolywane po pobraniu danych i pokazaniu userowi
  1553. // pierwszej strony (sp lub lista)
  1554. function gwtFirstPageRendered(pageType) {
  1555. var now = (new Date()).getTime();
  1556. if (isFirstPageLogged) { //na wszelki wypadek
  1557. logLoading("multipleFirstPageLoadingLog", now, pageType);
  1558. return;
  1559. }
  1560. logLoading("logFirstPageLoading", now - loadingPageStart, pageType);
  1561. isFirstPageLogged = true;
  1562. }
  1563.  
  1564. // wywolywane przez gwt po zaladowaniu pierwszych danych
  1565. // TODO usunąć bo nieużywane?
  1566. function gwtFirstDataLoaded() {
  1567. var actualTime = (new Date()).getTime();
  1568. var loadingTime = actualTime - loadingStart;
  1569. logLoading("logDataLoaded", loadingTime);
  1570. }
  1571.  
  1572. function checkIfGWTLoaded() {
  1573. if (!isGWTLoaded) {
  1574. var loadingMsg = document.getElementById('loading_msg');
  1575. var loadingMsgFail = document.getElementById('loading_msg_fail');
  1576.  
  1577. // wykonujemy tylko dla glownego okna poczty
  1578. if (null != loadingMsg && null != loadingMsgFail) {
  1579. loadingMsg.style.display = "none";
  1580. loadingMsgFail.style.display = "block";
  1581.  
  1582. logLoading("logLoading", -1);
  1583. }
  1584. }
  1585. }
  1586.  
  1587. setTimeout("checkIfGWTLoaded()", 30000);
  1588. </script>
  1589.  
  1590.  
  1591. <script language="javascript" src="/p6/gwt-war/3.2.50/pl.wp.poczta.Poczta/pl.wp.poczta.Poczta.nocache.js"></script>
  1592.  
  1593. <!-- headerJavascript::end -->
  1594. <div style="min-width: 775px; margin: 10px auto; width: 100%;" align="center"> <div id="gaf_58"></div></div> <div style="min-width: 775px; margin: 10px auto; width: 100%;" align="center"> <div id="gaf_59"></div></div><script type="text/javascript">
  1595. <!--
  1596. var User = {
  1597. name: 'michal11111.95@wp.pl'
  1598. };
  1599. //-->
  1600. </script>
  1601. <!-- menu -->
  1602. <div id="header"></div>
  1603. <script type="text/javascript">
  1604. try {
  1605. Header.setProDate(false);
  1606. Header.setEmail(User.name); Header.setActive('poczta'); Header.setWhite(false);
  1607. Header.setServiceName('poczta'); Header.setPhoto({source: '//profil.wp.pl/avatar/44d13a47a018539b5caae2019eec66c0.png?s=60&nc=1&r=1', destination:'//profil.wp.pl/'}); Header.render(); } catch(e) {
  1608. doError(e)
  1609. }
  1610.  
  1611. </script>
  1612. <!-- end:menu -->
  1613.  
  1614.  
  1615. <div id="main">
  1616.  
  1617.  
  1618. <div id="rssReader" style="display:none"></div>
  1619.  
  1620. <div id="middle"> <div id="leftColumn">
  1621. <div id="leftColumnInner" class="inner"></div>
  1622. </div>
  1623. <div class="collapser" id="bx1Collapser">«</div>
  1624. <div id="mainColumn">
  1625. <div id="mainColumnInner" style="margin-bottom: 10px;" class="inner">
  1626.  
  1627. <div id="bxPanelTopBody" class="subNavi" style="display : none"></div>
  1628.  
  1629. <div id="poczta2009_startpage_loading" style="padding : 20px;">
  1630. <table id="loading_msg" cellspacing="0" cellpadding="0" border="0">
  1631. <tbody>
  1632. <tr>
  1633. <td style="border-bottom: 0pt none;">
  1634. <div class="loadingMedium"></div>
  1635. </td>
  1636. <td style="border-bottom: 0pt none; font-size: 13px; vertical-align : middle">
  1637. Trwa ładowanie...
  1638. </td>
  1639. </tr>
  1640. </tbody>
  1641. </table>
  1642.  
  1643. <table id="loading_msg_fail" cellspacing="0" cellpadding="0" border="0" style="display: none;" class="skinReturnInfo">
  1644. <tbody>
  1645. <tr>
  1646. <td style="border-bottom: 0pt none;">
  1647. <div class="loadingMedium"></div>
  1648. </td>
  1649. <td style="border-bottom: 0pt none; font-size: 13px; vertical-align : middle">
  1650. <span class="gwtLoadError">Strona ma problemy z załadowaniem.</span><br />
  1651. Spróbuj <a href="#" onClick="reloadPageClick();">przeładować stronę.</a> aby spróbować ponownie.
  1652.  
  1653. <br />
  1654. Twoje problemy zostały zarejestrowane - spróbujemy jak najszybciej je rozwiązać.
  1655.  
  1656. <script type="text/javascript">
  1657. function reloadPageClick() {
  1658. var newIframe = document.createElement("iframe");
  1659. newIframe.id = "reloadAfterLoadingError";
  1660. newIframe.style.display="none";
  1661. newIframe.src = "action.html?a=reloadAfterLoadingError";
  1662. document.body.appendChild(newIframe);
  1663.  
  1664. setTimeout("window.location.reload(true);", 500);
  1665. }
  1666.  
  1667. </script>
  1668. </td>
  1669. </tr>
  1670. </tbody>
  1671. </table>
  1672.  
  1673. </div>
  1674.  
  1675. <div id="poczta2009_startpage_new" style="display : none"></div>
  1676.  
  1677. <div id="bxAnnouncementsStartPage" style="display: block;"><div style="display:block; float: right; width: 301px" align="right">
  1678. <div id="gaf_5" style="display: block;"></div> </div>
  1679. </div>
  1680.  
  1681. <div id="poczta2009_startpage_text_new" style="display : none"></div>
  1682.  
  1683. <div id="bxMessagesBody" class="mails" style="display : none"></div>
  1684.  
  1685. <div id="messageBody" style="display : none"></div>
  1686. <div id="galleriesBody" style="display : none"></div>
  1687. <div id="advertisementBody" style="display : none"></div>
  1688.  
  1689. </div>
  1690. <div style="margin-top: 16px; margin-bottom: 16px; width: 100%;" align="center"> <div style="width: 100%;" align="center" id="gaf_52"></div></div> </div>
  1691. <div class="collapser" id="bx3Collapser">»</div>
  1692. <div id="rightColumn">
  1693. <div style="width: 100%;" align="center"><div style="width: 169px; margin-top: 10px; margin-bottom: 10px;"><div style="width: 100%;" align="center" id="gaf_7"></div></div></div> </div>
  1694. </div>
  1695. <div id="footer"></div>
  1696. <script type="text/javascript">
  1697. Footer.render();
  1698. new Image(1,1).src = "https://bc.wp.pl/mailing/";
  1699. </script>
  1700.  
  1701.  
  1702. <img src="p6/skins/i/fakeSrc.gif" name="pses" width="1" height="1" border="0">
  1703. <script language="javascript">
  1704. var tmSes = 0;
  1705. function newpses() {
  1706. dt = new Date();
  1707. if(this.document.pses){
  1708. this.document.pses.src = "/d605/s/michal11111.95_" + dt.getTime() + ".gif?d=poczta.wp.pl";
  1709. }
  1710. tmSes = setTimeout("newpses()", 360000);
  1711. }
  1712. function resetses() {
  1713. if (tmSes) {
  1714. clearTimeout(tmSes);
  1715. }
  1716. tmSes = setTimeout("newpses()", 360000);
  1717. }
  1718. tmSes = setTimeout("newpses()", 360000);
  1719. </script>
  1720.  
  1721.  
  1722. </div><div class="ggu"> <div class="ggu-windows" id="conversationNodeHandler"></div>
  1723. </div>
  1724. <div id="uaumNodeHandler" style="position:absolute;top:-100px;left:-100px"></div> </body>
  1725.  
  1726. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement