@@ -470,7 +470,6 @@ function _RepConvGRC() {
470
470
. mousePopup ( new MousePopup ( RepConvTool . GetLabel ( 'STATS.PLAYER' ) ) ) ;
471
471
if ( "https:" == window . location . protocol && ( RepConv . active . statsGRCL != 'potusek' ) ) {
472
472
$ ( _link ) . attr ( {
473
- //'href' : getStatsLink('player', $(this).attr('player_id'), $(this).attr('player_name')),
474
473
'href' : getStatsLink ( 'player' , _player , _player_name ) ,
475
474
'target' : '_blank'
476
475
} )
@@ -1697,41 +1696,18 @@ function _RepConvGRC() {
1697
1696
function showStats ( what , who_id , who_name ) {
1698
1697
var
1699
1698
RepConvNode = $ ( '<div/>' , { 'id' : 'RepConvNode' } ) ;
1700
- // if (RepConv.active.statsGRCL == 'grepostats') {
1701
- // var website = getStatsLink(what, who_id, who_name);
1702
- // RepConvNode.append($('<iframe/>', {'src': website, 'style': 'width: 975px; height: 480px;'}));
1703
- // Layout.dialogWindow.open(RepConvNode.html().toString(), RepConvTool.GetLabel('STATS.'+what.toUpperCase()), 975, 480, null, false).setPosition("center", "center");
1704
- // } else
1705
- if ( RepConv . active . statsGRCL == 'grepointel' ) {
1706
- if ( what == 'player' ) {
1707
- what = 'pn' ;
1708
- } else if ( what == 'alliance' ) {
1709
- what = 'an'
1710
- }
1711
- var website = getStatsLink ( what , who_id , who_name ) ;
1712
- RepConvNode . append ( $ ( '<iframe/>' , { 'src' : website , 'style' : 'width: 1020px; height: 580px;' } ) ) ;
1713
- Layout . dialogWindow . open ( RepConvNode . html ( ) . toString ( ) , RepConvTool . GetLabel ( 'STATS.' + what . toUpperCase ( ) ) , 1020 , 580 , null , false ) . setPosition ( "center" , "center" ) ;
1714
- } else {
1715
- //try {
1716
- // (WM.getWindowByType("grcrt_stats")[0]).close()
1717
- //} catch (e){}
1699
+ if ( RepConv . active . statsGRCL == 'potusek' ) {
1718
1700
WF . open ( "grcrt_stats" , {
1719
1701
args : {
1720
1702
'what' : what ,
1721
1703
'id' : who_id ,
1722
1704
'name' : who_name
1723
1705
}
1724
1706
} )
1725
- //var website = RepConv.grcrt_domain+'light/'+what+'/' + Game.world_id + '/' + who_id + '/' + Game.locale_lang;
1726
- //RepConvNode.append($('<iframe/>', {'src': website, 'style': 'width: 825px; height: 625px; border: 0px'}));
1727
- //Layout.dialogWindow.open(RepConvNode.html().toString(), RepConvTool.GetLabel('STATS.'+what.toUpperCase()), 825, 690, function(){},false).setPosition("center", "center");
1728
1707
}
1729
1708
}
1730
1709
function getStatsLink ( what , who_id , who_name ) {
1731
1710
var website ;
1732
- // if (RepConv.active.statsGRCL == 'grepostats') {
1733
- // website = 'http://' + Game.market_id + '.grepostats.com/world/' + Game.world_id + '/'+what+'/' + who_id;
1734
- // } else
1735
1711
if ( RepConv . active . statsGRCL == 'grepointel' ) {
1736
1712
if ( what == 'player' ) {
1737
1713
what = 'pn' ;
@@ -1792,72 +1768,6 @@ function _RepConvGRC() {
1792
1768
} catch ( e ) { }
1793
1769
}
1794
1770
1795
- //function wonderLinks(RCGP) {
1796
- // if (RCGP.getJQElement().find($('.grcrt_linkbox')).length == 0) {
1797
- // RCGP.setHeight(540)
1798
- // var _div = $('<div/>',{'class':'grcrt_linkbox'})
1799
- // .css({'margin': '0px 5px 10px 0px','padding': '0 30px'});
1800
- // _div
1801
- // .append(
1802
- // $('<a/>',{
1803
- // 'href':'http://devpotusek.potusek.eu/'+Game.locale_lang+'/wonder/'+Game.world_id+'/'+Game.alliance_id+'/'+RepConv.hash+'#'+WorldWonders.all_wonders[WorldWonders.wonder_nr].wonder_type,'target':'_blank'})
1804
- // .css({'float': 'left'})
1805
- // .html('Pokaż mój udział w budowie')
1806
- // )
1807
- // if (MM.checkAndPublishRawModel('Player', {id : Game.player_id}).getAllianceRights().founder || MM.checkAndPublishRawModel('Player', {id : Game.player_id}).getAllianceRights().leader) {
1808
- // _div
1809
- // .append(
1810
- // $('<a/>',{
1811
- // 'href':'http://devpotusek.potusek.eu/'+Game.locale_lang+'/wonder/'+Game.world_id+'/'+Game.alliance_id+'/'+($.md5(Game.alliance_id + "_" + Game.world_id))+'#'+WorldWonders.all_wonders[WorldWonders.wonder_nr].wonder_type,'target':'_blank'})
1812
- // .css({'float': 'right'})
1813
- // .html('Pokaż udział członków sojuszu w budowie')
1814
- // )
1815
- // }
1816
- // _div
1817
- // .append(
1818
- // $('<br/>').css('clear','both')
1819
- // )
1820
- // _div
1821
- // .insertAfter(RCGP.getJQElement().find($('.gpwindow_content>.wonder_state>.game_border')).eq(0))
1822
- // }
1823
- //}
1824
-
1825
- function logWonderSend ( data ) {
1826
- // var
1827
- // _wonder = wonders[data.island_x+'_'+data.island_y],
1828
- // _json = {
1829
- // lang:Game.world_id.substr(0,2),
1830
- // world:Game.world_id,
1831
- // wonder_id:WorldWonders.all_wonders[_wonder].id,
1832
- // wonder_lvl:WorldWonders.all_wonders[_wonder].expansion_stage,
1833
- // alliance_id:MM.checkAndPublishRawModel("Player", {
1834
- // id: Game.player_id
1835
- // }).getAllianceId(),
1836
- // player_id:Game.player_id,
1837
- // wood:data.wood,
1838
- // stone:data.stone,
1839
- // iron:data.iron,
1840
- // power:data.power,
1841
- // wonder_type: WorldWonders.all_wonders[_wonder].wonder_type,
1842
- // wonder_name: JSON.parse(
1843
- // RepConvTool.Atob(
1844
- // $('a.gp_goto_wonder_link').attr('href')
1845
- // )
1846
- // ).name,
1847
- // player_hash : RepConv.hash,
1848
- // alliance_hash : $.md5(MM.checkAndPublishRawModel("Player", {
1849
- // id: Game.player_id
1850
- // }).getAllianceId() + "_" + Game.world_id)
1851
- // },
1852
- // _send = $.ajax({
1853
- // 'url' : RepConv.grcrt_domain+'wonder.php',
1854
- // 'method' : 'post',
1855
- // 'data' : {json:(JSON.stringify(_json))},
1856
- // 'cache':false,
1857
- // 'async':true
1858
- // });
1859
- }
1860
-
1861
1771
function posibleSpell ( RCGP ) {
1862
1772
if ( RepConv . active . power ) {
1863
1773
switch ( RCGP . getContext ( ) . sub ) {
@@ -1868,9 +1778,6 @@ function _RepConvGRC() {
1868
1778
. css ( 'opacity' , '0.4' )
1869
1779
. attr ( 'href' , null )
1870
1780
. attr ( 'onclick' , null ) ;
1871
- //$.each(RCGP.getJQElement().find($('.js-power-icon').filter(function(){return !$(this).hasClass('disabled')})), function(ind, elem){
1872
- // $(elem).find($('div[name=counter]')).remove()
1873
- //})
1874
1781
1875
1782
RepConv . Debug && console . log ( 'loadPower' ) ;
1876
1783
$ . each ( RCGP . getJQElement ( ) . find ( $ ( '.js-power-icon div[name=counter]' ) ) , function ( ind , elem ) {
@@ -2012,9 +1919,7 @@ function _RepConvGRC() {
2012
1919
list_pos : 'left' ,
2013
1920
value : RepConv . active . statsGRCL ,
2014
1921
options : [
2015
- //{value: 'potusek', name: 'grepolis.potusek.eu'},
2016
1922
{ value : 'potusek' , name : 'www.grcrt.net' } ,
2017
- //{value: 'grepostats', name: "grepostats.com"},
2018
1923
{ value : 'grepointel' , name : "grepointel.com" }
2019
1924
]
2020
1925
} )
@@ -2280,17 +2185,6 @@ function _RepConvGRC() {
2280
2185
}
2281
2186
}
2282
2187
2283
- var acc = { } , alliance_name = MM . checkAndPublishRawModel ( 'Player' , { id :Game . player_id } ) . getAllianceName ( )
2284
- $ . each ( ITowns . towns , function ( ind , town ) {
2285
- var cc = town ;
2286
- cc . points = cc . getPoints ( ) ;
2287
- cc . player_name = Game . player_name
2288
- cc . alliance_name = alliance_name
2289
- acc [ ind ] = cc
2290
- } )
2291
-
2292
-
2293
-
2294
2188
function emotsTabs ( wndType , action ) { //insertArea){
2295
2189
var content = $ ( '<div/>' , { 'class' : 'gpwindow_content' , 'style' : 'overflow-y:auto !important; max-height: 185px; min-height: 120px;' } ) ,
2296
2190
contentLinks = $ ( '<ul/>' , { 'class' :'menu_inner grcrt_menu_inner' , 'style' :'padding: 0px;left:0px;' } ) ,
@@ -3396,7 +3290,6 @@ $.each(ITowns.towns, function(ind,town){
3396
3290
json . iron = ( settings . url . indexOf ( 'decrease_build_time_with_favor' ) > - 1 ) ? 0 : json . iron ,
3397
3291
json . power = ( settings . url . indexOf ( 'decrease_build_time_with_favor' ) > - 1 ) ? 400 : 0 ,
3398
3292
RepConv . Debug && console . log ( json ) ;
3399
- // logWonderSend(json);
3400
3293
}
3401
3294
//} catch (e){}
3402
3295
$ . each ( Layout . wnd . getAllOpen ( ) , function ( ind , elem ) {
0 commit comments