Life Fun & Everything

Back Up

by dixalex

HTML

<table id="loginTable" style="width: 100%;">
<tbody>
<tr>
<td class="imagePlaceHolder" rowspan="4" valign="top"><img id="lifefunlogo" src="https://researchresults.opinioninsight.com/panel/files/24/logo.gif" alt="LifeFun&amp;Everything"></td>
</tr>
<tr>
<td id="timeDateOne" class="timeDateOne" colspan="4"><span style="text-align: right; float: right;">Time + Date:</span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="userName">&nbsp;</td>
<td class="passWord">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="captchaCell" valign="top">&nbsp;</td>
<td class="passInput" valign="top">&nbsp;</td>
<td class="userInput" valign="top">&nbsp;</td>
<td class="loginButton" valign="top">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="errText">&nbsp;</td>
<td id="foPass" colspan="2"><a title="Reset Password" href="%PORTAL_URL%page/7">Forgot&nbsp;Password</a></td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>

JavaScript

//Life Fun CSS Clean Up + Table Wrap Solution
if (window.location.href === "https://researchresults.opinioninsight.com/panel/portal/community_24_1_1.php/auth") {
    window.location.href = 'https://researchresults.opinioninsight.com/panel/portal/community_24_1_1.php';
}
$(document).ready(function () {
    if($('.bodyWrapper').length ==0) {
$('body:eq(0)').wrapInner('<div class="bodyWrapper" />').css("background-color", "#166683");
$('.bodyWrapper').prepend('<table class="customCaptcha"><tr><td class="customCapCell"></td></tr><tr><td class="customErr"></td></tr></table>');
$('.blue').children().hide();

    $('.imagePlaceHolder img').on("click", function () {
        window.location.href = "%PORTAL_URL%page/1";
    });

    $('.imagePlaceHolder img:eq(0)').css("cursor", "pointer");

    $('.blue button').css("cursor", "not-allowed");

    $('#menu').before($('#header'));

    var emailLabel = $('label:eq(0)').attr("for"),
        homePage = $('[for=dateformat]').length,
        logOut = false;
    if ((emailLabel === "username" || emailLabel === "login_username") && homePage === 0) {
        logOut = true;
        console.log("Logged Out is" + logOut);
        $('table#footerTable td').css({
            "width": "20%",
                "max-width": "20%",
                "min-width": "20%",
                "text-align": "center"
        });
        $('.sweepStakes').closest('td').hide();
        $('label:eq(0)').html("<span>Email&#160;Address:</span>");
        $('label:eq(1)').text("Password:");
        var captchaFormat = function () {
            var tdUser = $('#loginTable').find('td.userName'),
                tdPass = $('#loginTable').find('td.passWord'),
                inputUser = $('#loginTable').find('td.userInput'),
                inputPass = $('#loginTable').find('td.passInput'),
                logButton = $('#loginTable').find('td.loginButton'),
                tdCaptcha = $('td.customCapCell');

            logButton.append($('div#login_field'));
  ...