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&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> </td>
<td class="userName"> </td>
<td class="passWord"> </td>
<td> </td>
</tr>
<tr>
<td class="captchaCell" valign="top"> </td>
<td class="passInput" valign="top"> </td>
<td class="userInput" valign="top"> </td>
<td class="loginButton" valign="top"> </td>
</tr>
<tr>
<td> </td>
<td class="errText"> </td>
<td id="foPass" colspan="2"><a title="Reset Password" href="%PORTAL_URL%page/7">Forgot Password</a></td>
<td> </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 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'));
...