- TopicsExpress



          

(function(i,s,o,g,r,a,m){i[GoogleAnalyticsObject]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,script,//google-analytics/analytics.js,ga); ga(create, UA-43459544-1, infinityarts.co); ga(send, pageview); function getParameterByName(name) { name = name.replace(/[\[]/, \\\[).replace(/[\]]/, \\\]); var regex = new RegExp([\\?&] + name + =([^&#]*)), results = regex.exec(location.search); return results == null ? : decodeURIComponent(results[1].replace(/\+/g, )); } $(function() { updateNav(false); $(a[rel*=leanModal]).leanModal({ top : 200, closeButton: .modal_close }); if ($.cookie(fb_pop) != 1) { setTimeout(fb_pop_component(), 4000); } if (false && window.location.pathname == /upgrade) { $(#loginInfo).trigger(click); } else if (getParameterByName(verification) == success) { $(#verifyModal).trigger(click); } if (!false && window.location.pathname == /) { $(#loginModal).trigger(click); $(#welcome).children().eq(2).hide(); $(#welcome).children().eq(3).hide(); $(#welcome).children().eq(4).hide(); } $(#login).submit(function (i) { i.preventDefault(); var f = $(#Username).val(); var p = $(#Password).val(); var g = txtUsername= + f +&txtPassword= + p; var x = $(#login).children().eq(1).children().first().children().eq(1); x.text(Waiting for server response..).css(color, #444); $.ajax({ type: POST, url: /?login, data: g, error: function (result) { $(.thanks-error).delay(1000).fadeIn(1000); console.log(Error: + result); }, success: function (result) { console.log(Success: + result); var obj = jQuery.parseJSON(result); if (obj.output == success) { updateNav(true); $(.modal_close).trigger(click); if (window.location.pathname == /) { var fv = obj.info; $(object param[name=flashvars]).attr(value, fv); $(embed).attr(flashvars, fv); var flash = $(object); $(object).remove(); $(.who).children().eq(1).html(flash); $(.progress-bar).children().eq(0).first().children().eq(0).text(Experiences ( +obj.ExpPercentage+% )); $(.progress-bar).children().eq(0).first().children().eq(1).children().css(width, obj.ExpWidth + px); $(.progress-bar).children().eq(1).first().children().eq(0).text(ClassPoints ( +obj.CPPercentage+% )); $(.progress-bar).children().eq(1).first().children().eq(1).children().css(width, obj.CPWidth + px); $(.choose).children().eq(1).first().children().eq(0).get(0).lastChild.nodeValue = AdventureCoins: + obj.Coins; $(.choose).children().eq(1).first().children().eq(1).get(0).lastChild.nodeValue = Golds: + obj.Gold; $(.choose).children().eq(1).first().children().eq(3).get(0).lastChild.nodeValue = Total PvP Kills: + obj.Kills; $(.choose).children().eq(1).first().children().eq(3).get(0).lastChild.nodeValue = Total PvP Deaths: + obj.Deaths; $(#welcome).children().eq(2).slideDown(); $(#welcome).children().eq(3).slideDown(); $(#welcome).children().eq(4).slideDown(); } } else if (obj.output == disabled) { x.html(Your account has been temporarily suspended.).css(color, rgb(197, 74, 80)); } else { x.html(The username and password you entered did not match. Please check the spelling and try again.).css(color, rgb(197, 74, 80)); } } }); return false; }); }); function updateNav(bool) { if (bool) { $(#nav).children().eq(4).children().eq(1).html(Manage SettingsUpgrade or Buy CoinsLog Out); } } function fb_pop_component(){ fb_pop_slide_in(); $(#fb_box_check).click(function(){ var fb_pop_check_status = $(#fb_pop_checked).is(:checked); if(fb_pop_check_status == true){ $.cookie(fb_pop, 1 ,{expires: 365}); } else { $.cookie(fb_pop, 0); } }) $(#fb_box_off).click(function(){ var fb_pop_check_status = $(#fb_pop_checked).is(:checked); if(fb_pop_check_status == true){ fb_pop_slide_del(); } else { fb_pop_slide_out(); } }) } function fb_pop_slide_out(){ $(#fb_box_off_btn).css( opacity,0); $(#fb_pop).animate({ width: 0px, opacity: 1},700,easeOutCubic); $(#fb_box).animate({ opacity: 0},700,easeOutCubic); } function fb_pop_slide_del(){ $(#fb_pop).animate({ width: 0px, opacity: 0},700,easeOutCubic); } function fb_pop_slide_in(){ $(#fb_pop).css( display,block).animate({ width:100%, opacity: 1},700,easeOutCubic); $(#fb_box).animate({ opacity: 1},700,easeOutCubic); setTimeout(function() { $(#fb_box_off_btn).animate({ opacity: 1},700,easeOutCubic); }, 700); }
Posted on: Thu, 21 Nov 2013 08:56:21 +0000

Trending Topics



Recently Viewed Topics




© 2015