", e.html(""), e.html(t);
var i = document.createElement("script");
i.src = JSCRIPT_MEDIA_VERSION_URL + "scroller.js", i.type = "text/javascript", document.getElementsByTagName("head")[0].appendChild(i)
}
}
function updateLefNavPanel(a, e) {
var t = encodeURIComponent(window.location),
i = "",
o = "",
n = "",
s = decodeURIComponent(getCookieDailyO("dfuserid")),
r = decodeURIComponent(getCookieDailyO("dfname")),
l = decodeURIComponent(getCookieDailyO("dfusername")),
c = decodeURIComponent(getCookieDailyO("dprofile_image")),
d = decodeURIComponent(getCookieDailyO("dsocial_source")),
u = '
';
u += 'X', void 0 != s && void 0 != l && "" != s && "" != l && s && l ? (i = JS_LOGIN_USER_URL + s + "/" + l.toLowerCase(), o = JS_LOGIN_USER_URL + s + "/" + l.toLowerCase() + "?page=draft", n = JS_LOGIN_USER_URL + s + "/" + l.toLowerCase() + "?page=favourites", u += '
' + r, "facebook" != d && (u += "@" + l + ""), u += "
';
return a
}
function insertSubscriptionData(a, e) {
var t = "";
if (a.status)
if (a.subscriberData.status) t += 'Thank you for subscribing to the DailyO newsletter.', $("#subname").val(""), $("#email").val(""), $("#subname").attr("placeholder", "Your name"), $("#email").attr("placeholder", "Your email address");
else if (void 0 != a.subscriberData.error && a.subscriberData.error.length >= 1) {
var i = a.subscriberData.error;
$.each(i, function(a, e) {
t += '' + e + ""
})
}
e.html(t)
}
function updateContactFormArea(a, e) {
var t = '
',
i = decodeURIComponent(getCookieDailyO("dfuserid")),
o = decodeURIComponent(getCookieDailyO("dfname")),
n = decodeURIComponent(getCookieDailyO("dfusername"));
if (void 0 != i && void 0 != n && void 0 != o && "" != i && "" != n && "" != o) {
var s = o;
s = s.toLowerCase().replace(/\b[a-z]/g, function(a) {
return a.toUpperCase()
});
var t = s + " @" + n + "
"
}
e.html(t)
}
function insertContactFormData(a, e) {
var t = "";
if (a.status)
if (a.contactusData.status) t += 'Thank you for subscribing to the DailyO newsletter.';
else if (void 0 != a.contactusData.error && a.contactusData.error.length >= 1) {
var i = a.contactusData.error;
$.each(i, function(a, e) {
t += '' + e + ""
})
}
e.html(t)
}
function insertfeedbackFormData(a, e) {
var t = "";
if (a.status)
if (a.feedbackData.status) t += 'Thank you for submitting feedback.', document.getElementById("feedbackForm").style.display = "none", document.getElementById("feedback-msg").style.display = "block";
else if (void 0 != a.feedbackData.error && a.feedbackData.error.length >= 1) {
var i = a.feedbackData.error;
$.each(i, function(a, e) {
t += '' + e + ""
}), document.getElementById("feedback-msg").style.display = "block"
}
e.html(t), document.getElementById("feed-loader").style.display = "none", document.getElementById("feed-submit").style.display = "block"
}
function signUpUserOld() {
console.log("click signUpUser"), $(".wrapper").height($(document).height()), $(".wrapper").show(), $(".twsignin").show(),
$(".twsignin").css("left", w_width + 50), $(".close_twsignin").click(function() {
$(".twsignin").hide(), $(".wrapper").hide()
})
}
var ElementObject = [],
ajaxoptions = [],
akamaiNumber = 1;
$(document).ready(function() {
$('.user-l' ).click(function () {return false;});
$( "#twitterLogin" ).prop( "disabled", true );
winwidth = $(window).width(), w_height = $(document).height(), $(".nav-icon").click(function() {
navigator.userAgent.toLowerCase().match("ipad") ? ($("#left-nav .inner_left").children("div").css({
position: "relative",
width: "100%"
}), $("#left-nav").animate({
width: "16%"
}, 500)) : navigator.userAgent.toLowerCase().match("mobile") ? ($("#left-nav .inner_left").children("div").css({
position: "relative",
width: "100%"
}), $("#left-nav").animate({
width: "40%"
}, 500)) : $(window).width() > 680 && ($("#left-nav .inner_left").children("div").css({
position: "relative",
width: "100%"
}), $("#left-nav").animate({
width: "16%"
}, 500)), $("#left-nav").show(), $("#left-nav").css("height", $("#main-container").height()), $("#main-container").css("width", "80%"), $("#main-container").css("float", "left"), $(".trending").css({
"float": "right !important",
width: "80% !important"
}), $(this).fadeOut(), winwidth <= 768 && $(".belt_outer").addClass("ipd-width"), winwidth <= 640 && $("#main-container").css("width", "56%"), winwidth <= 480 && ($(".belt_outer").addClass("ipd-width"), $("#left-nav").addClass("leftnav"), $("#main-container").addClass("rightnav"))
}), $(".closenav").click(function() {
return $(".belt_outer").removeClass("ipd-width"), $("#left-nav").removeClass("leftnav"), $("#main-container").removeClass("rightnav"), $("#left-nav").children("div").css({
position: "static",
width: "100%"
}), $("#left-nav").animate({
width: "0"
}, 300, function() {
$("#left-nav").hide()
}), $("#main-container").css("float", "right"), $("#main-container").animate({
right: "0%",
width: "100%"
}), $(".nav-icon").fadeIn(), !0
})
});