Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$(document).ready(function() {
// Wait until element exists helper function
$.fn.waitUntilExists = function (handler, shouldRunHandlerOnce, isChild) {
var found = 'found';
var $this = $(this.selector);
var $elements = $this.not(function () { return $(this).data(found); }).each(handler).data(found, true);
if (!isChild)
(window.waitUntilExists_Intervals = window.waitUntilExists_Intervals || {})[this.selector] =
window.setInterval(function () { $this.waitUntilExists(handler, shouldRunHandlerOnce, true); }, 500)
else if (shouldRunHandlerOnce && $elements.length)
return $this;
// Changing top left language "login to complete an application..."
if ($(".content-left h4").text() == "Login to Complete an Application or to Access Judging Panel")
$(".content-left h4").text("Login");
// Adding text to the left sidebar
'<h3>Have questions?</h3><p>Contact GCA at <a href=""></a> or 202.216.9627</p>');
// Changing the url of Make Another Application
$("a[href='/a/organizations/main/home']").attr("href", "");
// Changing the text of Make Another Application
$("a[href='/a/organizations/main/home'] span").text("test");
// Append text to the Payment Method section
$("#paymentMethodSection").append('<p>Select Pay by check/voucher to send your payment by check or Pay by credit card to pay now by credit card. Once finished entering information, click the Process button to finalize your submission. You will go to a page where you can access and print your invoice. A confirmation email will be sent to the Submitter Email address entered in the submission form. The confirmation email includes submission material requirements, payment information, entry fees, shipping address. Please include a copy of the confirmation in your submission materials package and/or with your payment. You can access information about your submission, including invoices, by logging in to your account at <a href=""></a> and selecting My Submissions from the menu on the left of the page.</p><p>All submissions are reviewed by IDA staff who determine final eligibility based on eligibility and submission requirements in the IDA Awards rules. Entry fees will not be refunded for ineligible submissions. Non-payment of the entry fee will result in submission ineligibility. All payments must be in US Dollars.<p></p><p>Please contact with any questions.</p><p>Thank you!</p>'});
// Append text to the Program Password section
if ($("label:contains('ProgramPassword')").length > 0) {
$(".form-submit-entry").append("<p>Please contact Programs and Events Manager Amy Jelenko at with any questions. Thank you for your interest in the 2014 IDA Documentary Awards!</p>");
// Change text on register screens
if($(".emailSection form label:first").text() == "To begin, enter your email address")
$(".emailSection form label:first").text("To begin, enter your email address (Enter the email address for your IDA website account if you have one.)");
$(".registerSection").prepend("<h3 style=\"color:red!important\">STOP</h3><h4>Your email does not match an IDA website account. If you are an IDA member, please contact <a href=\"\"></a> to request the email address associated with your IDA member account. Logging in with your IDA account information is the only way to trigger the IDA member discount. Only IDA paid members are eligible for the IDA member discount. <br/><br/>Contact <a href=\"\"></a> with any questions.</h4><br/><br/><strong>If you are not an IDA member please fill out this form to create an account with OpenWater Awards to complete your submission</strong> <br/><br/>");
// Change Add to Cart Button text
if (window.location.href.indexOf("organizations/main/submissions") > -1) {
$('input[type=submit]').val('Complete Entry');
// Change pay by check/voucher text
if (window.location.href.indexOf("organizations/main/submissioncarts") > -1) {
$("label:contains('Pay by check/voucher')").text('Pay by Bank Transfer');
// Select pay by credit card by default
if (window.location.href.indexOf("organizations/main/submissioncarts") > -1) {
$('input:radio[name=PaymentMethod]').filter('[value=creditCard]').prop('checked', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.