_action_subscribe_active
.xt_auth_unsubscribe
{
display: inline-block;
}
.xt_auth_action_star_active
.xt_auth_star,
.xt_auth_action_rate_active
.xt_auth_rate,
.xt_auth_action_subscribe_active
.xt_auth_subscribe
{
display: none;
}
#xt_auth_container { position: fixed; }
html { padding-top: 20px; } #xt_auth_container { top: 0; left: 0; } #xt_auth_container, .xt_auth_view, .xt_auth_icon, .xt_auth_avatar { max-height: none !important; max-width: none !important; min-width: none !important; min-width: none !important; opacity: 1 !important; text-indent: 0 !important; visibility:visible !important; }
</style><div id='xt_auth_container'><div class='xt_auth_view xt_auth_not_logged'><a href='https://xtgem.com/auth/login?redir=VjFORE5ISnZWVlZMU21sR1MxUkhVMGd3TVZKTllXRlRVREY2UFE9PQ%3D%3D&s=VjFkaGJFSlhaVXBJVlZWSlIwcFJXa1o2UTNOTVZFWlNUSFk5UFE9PQ%3D%3D&is_a=0&is_f=0&via=New+authbar' target='_parent' class='xt_auth_action xt_auth_login'>Log in</a></div></div> <script type="text/javascript">
(function () {
var doc = document;
var body = doc.body;
var xhr_done_auth = true;
doc.addEventListener ? window.addEventListener( 'load', init, false ) : window.attachEvent( 'onload', init );
function init () {
doc = document;
body = doc.body;
var el_auth = doc.getElementById( 'xt_auth_container' );
doc.addEventListener ? el_auth.addEventListener( 'click', hook_xhr_action, false ) : el_auth.attachEvent( 'onclick', hook_xhr_action );
if ( 'backgroundSize' in doc.body.style ) {
if ( window.devicePixelRatio && window.devicePixelRatio > 1 ) {
el_auth.className += ' xt_auth_icon_enchanted';
}
}
}
// bind xhr links
function hook_xhr_action ( e ) {
var e = e || window.event;
var target = e.target || e.srcElement;
target = target.className == 'xt_auth_icon' ? target.parentNode : target;
if ( target.getAttribute( 'data-xhr' ) ) {
var url = target.href;
url = url + (url.indexOf( '?' ) == -1 ? '?via_ajax=1' : '&via_ajax=1');
load_data({ url: url, xhr_done: xhr_done_auth, callback: handle_xhr_response });
(e.preventDefault) ? e.preventDefault() : e.returnValue = false; return false;
}
}
function handle_xhr_response ( xhr ) {
function handle_error ( xhr ) {
window.location.href = window.location.href;
}
function handle_success ( xhr ) {
va