var _b = document.getElementsByTagName('base')[0], _bH = "https://forums.sonicretro.org/";
if (_b && _b.href != _bH) _b.href = _bH;
External Redirect | Sonic and Sega Retro Forums
if (!window.jQuery) { document.write('<\/scr'+'ipt>'); }
var retro_menu_objs = [];
jQuery(window).unbind('resize').resize(function(){
for (var i = 0; i < retro_menu_objs.length; i++)
if (typeof(retro_menu_objs[i]) == "object")
if (typeof(retro_menu_objs[i].resize) == "function")
retro_menu_objs[i].resize();
});
var retro_menu_obj = function(e, limit, outerlimit) {
var that = this;
this.e = e;
this.original_width = e.children('div').outerWidth();
this.limit = limit;
this.outerlimit = outerlimit;
this.resize = function() {
if (this.original_width == 0) return;
if (jQuery(window).width() >= this.original_width + this.limit) {
this.e.children('div').children('a').each(function(){
jQuery(this).show();
});
this.e.children('div').children('div').children('a').hide();
this.e.children('div').children('div').children('ul').children('li').each(function(){
jQuery(this).hide();
});
} else {
var els = [];
this.e.children('div').children('a').each(function(){
els.push(jQuery(this));
jQuery(this).show();
});
this.e.children('div').children('div').children('a').show();
var num = 0, current;
while (els.length > 0) {
current = els.pop();
current.hide();
num++;
if (jQuery(window).width() >= this.e.children('div').outerWidth() + this.outerlimit) els = [];
}
if (num > 0) {
this.e.children('div').children('div').children('ul').children('li').each(function(){
els.push(jQuery(this));
});
while (els.length > 0) {
current = els.pop();
if (num > 0) current.show(); else current.hide();
num--;
}
}
}
};
this.dropdown_out = -1;
this.dropdown_interval = null;
this.dropdown_interval_func = function(){
if (that.dropdown_out < 0) return;
else if (that.dropdown_out == 0) {
that.e.children('div').children('div').children('ul').hide();
that.e.children('div').children('div').children('a').removeAttr('style');
}
that.dropdown_out--;
};
if (this.e.children('div').children('div').length > 0) this.e.children('div').children('div').remove();
var link_html = this.e.children('div').html().split(''); link_html.pop();
for (var i = 0; i < link_html.length; i++) {
link_html[i] = "" + link_html[i] + "";
if (link_html[i].indexOf('class="current"') != -1) {
link_html[i] = link_html[i].replace('class="current"','').replace('','');
}
}
this.e.children('div').append('▼' + link_html.join("") + '
');
this.e.children('div').children('div').children('a').unbind('click').click(function(e){
e.preventDefault();
jQuery(this).next().toggle();
if (jQuery(this).next().is(':visible')) {
jQuery(this).attr('style','color:rgba(255,255,255,1)');
} else {
jQuery(this).removeAttr('style');
}
this.dropdown_out = -1;
clearInterval(that.dropdown_interval);
that.dropdown_interval = null;
});
this.e.children('div').children('div').children('ul').unbind('mouseenter').unbind('mouseleave').hover(function(){
that.dropdown_out = -1;
clearInterval(that.dropdown_interval);
that.dropdown_interval = null;
},function(){
that.dropdown_out = 10;
clearInterval(that.dropdown_interval);
that.dropdown_interval = setInterval(function(){ that.dropdown_interval_func(); },100);
});
this.resize();
};
jQuery.extend(true, XenForo,
{
visitor: { user_id: 0 },
serverTimeInfo:
{
now: 1714468190,
today: 1714431600,
todayDow: 2
},
_lightBoxUniversal: "0",
_enableOverlays: "1",
_animationSpeedMultiplier: "1",
_overlayConfig:
{
top: "10%",
speed: 200,
closeSpeed: 100,
mask:
{
color: "rgb(45, 45, 45)",
opacity: "0.6",
loadSpeed: 200,
closeSpeed: 100
}
},
_ignoredUsers: [],
_loadedScripts: {"xb":true,"login_bar":true,"xb_scroll_buttons":true},
_cookieConfig: { path: "/", domain: "", prefix: "xf_"},
_csrfToken: "",
_csrfRefreshUrl: "index.php?login/csrf-token-refresh",
_jsVersion: "4807703d",
_noSocialLogin: false
});
jQuery.extend(XenForo.phrases,
{
cancel: "Cancel",
a_moment_ago: "A moment ago",
one_minute_ago: "1 minute ago",
x_minutes_ago: "%minutes% minutes ago",
today_at_x: "Today at %time%",
yesterday_at_x: "Yesterday at %time%",
day_x_at_time_y: "%day% at %time%",
day0: "Sunday",
day1: "Monday",
day2: "Tuesday",
day3: "Wednesday",
day4: "Thursday",
day5: "Friday",
day6: "Saturday",
_months: "January,February,March,April,May,June,July,August,September,October,November,December",
_daysShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat",
following_error_occurred: "The following error occurred",
server_did_not_respond_in_time_try_again: "The server did not respond in time. Please try again.",
logging_in: "Logging in",
click_image_show_full_size_version: "Click this image to show the full-size version.",
show_hidden_content_by_x: "Show hidden content by {names}"
});
// Facebook Javascript SDK
XenForo.Facebook.appId = "";
XenForo.Facebook.forceInit = false;
$(window).scroll(function() { // when the page is scrolled run this
if($(this).scrollTop() != 0) { // if you're NOT at the top
$('.xbScrollButtons').fadeIn("slow"); // fade in
} else { // else
$('.xbScrollButtons').fadeOut("slow"); // fade out
}
});
$(function() {
// the element inside of which we want to scroll
var $elem = $('#content');
// show the buttons
// clicking the "down" button will make the page scroll to the $elem's height
$('#xb_ScrollDown').click(
function (e) {
$('html, body').animate({scrollTop: $elem.height()}, 700);
}
);
// clicking the "up" button will make the page scroll to the top of the page
$('#xb_ScrollUp').click(
function (e) {
$('html, body').animate({scrollTop: '0px'}, 700);
}
);
});
(function(){
var special = jQuery.event.special,
uid1 = 'D' + (+new Date()),
uid2 = 'D' + (+new Date() + 1);
special.scrollstart = {
setup: function() {
var timer,
handler = function(evt) {
var _self = this,
_args = arguments;
if (timer) {
clearTimeout(timer);
} else {
evt.type = 'scrollstart';
jQuery.event.handle.apply(_self, _args);
}
timer = setTimeout( function(){
timer = null;
}, special.scrollstop.latency);
};
jQuery(this).bind('scroll', handler).data(uid1, handler);
},
teardown: function(){
jQuery(this).unbind( 'scroll', jQuery(this).data(uid1) );
}
};
special.scrollstop = {
latency: 300,
setup: function() {
var timer,
handler = function(evt) {
var _self = this,
_args = arguments;
if (timer) {
clearTimeout(timer);
}
timer = setTimeout( function(){
timer = null;
evt.type = 'scrollstop';
jQuery.event.handle.apply(_self, _args);
}, special.scrollstop.latency);
};
jQuery(this).bind('scroll', handler).data(uid2, handler);
},
teardown: function() {
jQuery(this).unbind( 'scroll', jQuery(this).data(uid2) );
}
};
})();
var noAvatars = document.querySelectorAll('.avatar img[src^="styles/sonicretroxf/xenforo/avatars"]');
Array.prototype.slice.call(noAvatars).forEach( function(e) {
if ((!e.parentElement.parentElement.id.startsWith("alert")) || (e.parentElement.parentElement.parentElement.id != "ProfilePostList")) {
if (
e.style = "background: transparent !important; border: none !important";
e.parentElement.style = "background:tranparent !important;";
e.parentElement.parentElement.style = "height:1px !important; border: none !important; background: transparent !important;";
}
});
x server