Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Margonem Mobile v1.3 ==> Valius->Jaruna (absflg) */
- mobile = {} ;
- mobile. showItem = function (index ){
- if ( $ ("#item" + index) . css( "top" )== "469px" ) { return ; }
- if ( $ ("#item" + index) . is( "#base .item" )) { return ;}
- if ( $ ('#shop' ) .css ("display" ) =='block' ) { return; }
- if ( $ ('#auctions' ). css( "display" ) =='block' ) { return; }
- if ( $ ('#mails' ) . css( "display" ) =='block' ) { return; }
- mobile. showItemMenu (index ) ;
- } ;
- mobile. createFunc = function ( id){
- return function () { mobile. showItem ( id) ; };
- } ;
- mobile. startAddon = function (){
- eval ( "newEquip = " + ( ""+ newEquip ) . replace('$("#item" + a.id).css({left: eq.
- eval ( "newEquip = " + ( ""+ newEquip ) . replace('ft: 25 + g.bag * 33});$("#bag").
- eval ( "newItem = " + ( ""+ newItem) . replace( '" + d).css({backgroundImage: "url("
- $( "<center id=itemmenu><br></center>" ) . css({ position :'absolute' , height : 194,
- $( "<center id=itemmenu_use onclick='mobile.moveItem(1)'><div>UŻYJ / ZAŁÓŻ</d
- $( "<center id=itemmenu_drop onclick='mobile.moveItem(-1)'><div>WYRZUĆ</div><
- $( "<center id=itemmenu_delete onclick='mobile.moveItem(-2)'><div>ZNISZCZ</di
- $( "<center id=itemmenu_bag >TORBY: <span id=itemmenu_bag1 onclick='mobile.mo
- $( "#itemmenu_bag1" ) . css({ border: '1px gold solid' }) ;
- $( "#itemmenu_bag2" ) . css({ border: '1px gold solid' }) ;
- $( "#itemmenu_bag3" ) . css({ border: '1px gold solid' }) ;
- $( "#itemmenu_bagK" ) . css({ border: '1px gold solid' }) ;
- $( "<center id=itemmenu_close onclick='$( \"#itemmenu \").toggle()'><div>ZAMKNI
- $( "#itemmenu" ). toggle () ;
- setTimeout( function (){
- $ ( "#panel div.item" ). each ( function ( index){
- $ (this ) . click ( mobile. createFunc( $( this ) . attr ( "id"
- }) ;
- }, 1000 )
- } ;
- mobile. moveItem = function (st ) {
- _g ( "moveitem&st=" +st + "&id=" + $ ( "#itemmenu" ) .attr ( "iid" )) ;
- $( "#itemmenu" ). toggle () ;
- } ;
- mobile. showItemMenu = function (id ) {
- $( "#itemmenu" ). fadeIn ('fast' ) . attr ("iid" , parseInt (id ) );
- } ;
- $ ( "#lagmeter" ) . click( function (){
- _g ( 'chat&c=' + esc( $ ( "#inpchat" ). val() )) ;
- $( "#inpchat" ) .val ('' ) ;
- }) ;
- g. loadQueue. push ({ fun: mobile. startAddon, data : ''}) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement