Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all document.querySelector('.SiteLayout__main').innerHTML hacks. #2467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions members/B001230.yaml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions members/B001277.yaml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions members/C000880.yaml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions members/C001070.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ contact_form:
- value: 4
- javascript:
- value: document.querySelector('.MobileHeader__logo').remove();
- javascript:
- value: document.querySelector('.SiteLayout__main').innerHTML = '<form id=\"3C478C0F-DD8A-6210-DD6C-53C75A1DBB45\" action=\"https://www.casey.senate.gov/contact/share\" method=\"post\"><fieldset><legend>Your Information</legend><div class=\"row\"><div class=\"col-md-2\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478E4E-B4A2-F91A-17F3-3862979355B9\">Prefix<span class=\"required\">*</span></label><div class=\"controls\"><select id=\"input-3C478E4E-B4A2-F91A-17F3-3862979355B9\" name=\"input_3C478E4E-B4A2-F91A-17F3-3862979355B9\" class=\"validate[\'required\']\"><option value=\"\">--</option><option value=\"None\">None</option><option value=\"Mr.\">Mr.</option><option value=\"Miss\">Miss</option><option value=\"Ms.\">Ms.</option><option value=\"Mrs.\">Mrs.</option><option value=\"Mx.\">Mx.</option></select></div></div></div><div class=\"col-md-5\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478E70-917F-5EED-EC38-62904ABEBE43\">First Name<span class=\"required\">*</span></label><div class=\"controls\"><input id=\"input-3C478E70-917F-5EED-EC38-62904ABEBE43\" name=\"input_3C478E70-917F-5EED-EC38-62904ABEBE43\" class=\"validate[\'required\']\" type=\"text\" placeholder=\"Required\" ></div></div></div><div class=\"col-md-5\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478D05-B458-1E21-1C7C-EBFD03360285\">Last Name<span class=\"required\">*</span></label><div class=\"controls\"><input id=\"input-3C478D05-B458-1E21-1C7C-EBFD03360285\" name=\"input_3C478D05-B458-1E21-1C7C-EBFD03360285\" class=\"validate[\'required\']\" type=\"text\" placeholder=\"Required\"></div></div></div></div><div class=\"row\"><div class=\"col-md-6\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478CDD-EE28-DFC3-6C5F-A7ADE035B1B1\">Street Address<span class=\"required\">*</span></label><div class=\"controls\"><input id=\"input-3C478CDD-EE28-DFC3-6C5F-A7ADE035B1B1\" name=\"input_3C478CDD-EE28-DFC3-6C5F-A7ADE035B1B1\" class=\"validate[\'required\']\" type=\"text\" placeholder=\"Required\"></div></div></div><div class=\"col-md-6\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478CB7-CCC7-2833-99B8-FBFB1CC49589\">Street Address (2)</label><div class=\"controls\"><input id=\"input-3C478CB7-CCC7-2833-99B8-FBFB1CC49589\" name=\"input_3C478CB7-CCC7-2833-99B8-FBFB1CC49589\" type=\"text\"></div></div></div></div><div class=\"row\"><div class=\"col-md-6\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C479068-C653-C536-3360-0831F9676225\">City<span class=\"required\">*</span></label><div class=\"controls\"><input id=\"input-3C479068-C653-C536-3360-0831F9676225\" name=\"input_3C479068-C653-C536-3360-0831F9676225\" class=\"validate[\'required\']\" type=\"text\" placeholder=\"Required\"></div></div></div><div class=\"col-md-2\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478FFE-DC62-6127-67BA-711C44F8CDF0\">State<span class=\"required\">*</span></label><div class=\"controls\"><select id=\"input-3C478FFE-DC62-6127-67BA-711C44F8CDF0\" name=\"input_3C478FFE-DC62-6127-67BA-711C44F8CDF0\" class=\"validate[\'required\']\"><option value=\"\">--</option><option value=\"AL\">AL</option><option value=\"AK\">AK</option><option value=\"APO AA\">APO AA</option><option value=\"APO AE\">APO AE</option><option value=\"APO AP\">APO AP</option><option value=\"AR\">AR</option><option value=\"AZ\">AZ</option><option value=\"CA\">CA</option><option value=\"CO\">CO</option><option value=\"CT\">CT</option><option value=\"DC\">DC</option><option value=\"DE\">DE</option><option value=\"DPO AA\">DPO AA</option><option value=\"DPO AE\">DPO AE</option><option value=\"DPO AP\">DPO AP</option><option value=\"FL\">FL</option><option value=\"FPO AA\">FPO AA</option><option value=\"FPO AE\">FPO AE</option><option value=\"FPO AP\">FPO AP</option><option value=\"GA\">GA</option><option value=\"HI\">HI</option><option value=\"IA\">IA</option><option value=\"ID\">ID</option><option value=\"IL\">IL</option><option value=\"IN\">IN</option><option value=\"KS\">KS</option><option value=\"KY\">KY</option><option value=\"LA\">LA</option><option value=\"MA\">MA</option><option value=\"MD\">MD</option><option value=\"ME\">ME</option><option value=\"MI\">MI</option><option value=\"MN\">MN</option><option value=\"MO\">MO</option><option value=\"MS\">MS</option><option value=\"MT\">MT</option><option value=\"NC\">NC</option><option value=\"ND\">ND</option><option value=\"NE\">NE</option><option value=\"NH\">NH</option><option value=\"NJ\">NJ</option><option value=\"NM\">NM</option><option value=\"NV\">NV</option><option value=\"NY\">NY</option><option value=\"OH\">OH</option><option value=\"OK\">OK</option><option value=\"OR\">OR</option><option value=\"PA\">PA</option><option value=\"RI\">RI</option><option value=\"SC\">SC</option><option value=\"SD\">SD</option><option value=\"TN\">TN</option><option value=\"TX\">TX</option><option value=\"UT\">UT</option><option value=\"VA\">VA</option><option value=\"VT\">VT</option><option value=\"WA\">WA</option><option value=\"WI\">WI</option><option value=\"WV\">WV</option><option value=\"WY\">WY</option></select></div></div></div><div class=\"col-md-4\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C4790AB-E218-6A59-2A8B-F6B3463A7AFD\">Zip Code<span class=\"required\">*</span></label><div class=\"controls\"><input id=\"input-3C4790AB-E218-6A59-2A8B-F6B3463A7AFD\" name=\"input_3C4790AB-E218-6A59-2A8B-F6B3463A7AFD\" class=\"validate[\'required\',\'%creativengine_forms_builder.validate.zip\']\" type=\"text\" placeholder=\"Required\"></div></div></div></div><div class=\"row\"><div class=\"col-md-4\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478E08-E94C-CA5D-529A-D92A74912057\">Phone Number</label><div class=\"controls\"><input id=\"input-3C478E08-E94C-CA5D-529A-D92A74912057\" name=\"input_3C478E08-E94C-CA5D-529A-D92A74912057\" class=\"validate[\'phone\']\" type=\"text\"></div></div></div><div class=\"col-md-4\"><div class=\"control-group\"><label class=\"control-label\" for=\"email\">Email<span class=\"required\">*</span></label><div class=\"controls\"><input id=\"email\" name=\"input_3C479044-EF7B-D975-B886-997D3DBC08B7\" class=\"validate[\'required\',\'email\']\" type=\"text\" placeholder=\"Required\"></div></div></div><div class=\"col-md-4\"><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478E2B-F065-1BF5-8579-E13C9EE9E0D4\">Verify Email<span class=\"required\">*</span></label><div class=\"controls\"><input id=\"input-3C478E2B-F065-1BF5-8579-E13C9EE9E0D4\" name=\"input_3C478E2B-F065-1BF5-8579-E13C9EE9E0D4\" class=\"validate[\'custom\',\'%window.validate_3C478E2B_F065_1BF5_8579_E13C9EE9E0D4\']\" type=\"text\" placeholder=\"Required\"></div></div></div></div></fieldset><fieldset><legend>Your Message</legend><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478C8F-9CED-FCC9-0426-93952AE9FBDF\">What is the general topic of your message?<span class=\"required\">*</span></label><div class=\"controls\"><select id=\"input-3C478C8F-9CED-FCC9-0426-93952AE9FBDF\" name=\"input_3C478C8F-9CED-FCC9-0426-93952AE9FBDF\" class=\"validate[\'required\']\"><option value=\"\">--</option><option value=\"Agriculture &amp; Farming\">Agriculture &amp; Farming</option><option value=\"Animal Welfare\">Animal Welfare</option><option value=\"Arts &amp; Humanities\">Arts &amp; Humanities</option><option value=\"Banking &amp; Financial Services\">Banking &amp; Financial Services</option><option value=\"Budget\">Budget</option><option value=\"Campaigns &amp; Elections\">Campaigns &amp; Elections</option><option value=\"Children\">Children</option><option value=\"Civil Rights\">Civil Rights</option><option value=\"Civil Service\">Civil Service</option><option value=\"Climate &amp; Environment\">Climate &amp; Environment</option><option value=\"Consumer Protection\">Consumer Protection</option><option value=\"Criminal Justice\">Criminal Justice</option><option value=\"Defense &amp; Military\">Defense &amp; Military</option><option value=\"Disabilities &amp; Accessibility\">Disabilities &amp; Accessibility</option><option value=\"Economy\">Economy</option><option value=\"Education\">Education</option><option value=\"Energy\">Energy</option><option value=\"Food &amp; Nutrition\">Food &amp; Nutrition</option><option value=\"Foreign Affairs\">Foreign Affairs</option><option value=\"Gun Violence\">Gun Violence</option><option value=\"Health Care\">Health Care</option><option value=\"Homeland Security\">Homeland Security</option><option value=\"Housing\">Housing</option><option value=\"Immigration\">Immigration</option><option value=\"Jobs &amp; Labor\">Jobs &amp; Labor</option><option value=\"Judiciary\">Judiciary</option><option value=\"Medicare &amp; Medicaid\">Medicare &amp; Medicaid</option><option value=\"Natural Disasters &amp; Emergency Response\">Natural Disasters &amp; Emergency Response</option><option value=\"Parks &amp; Interior\">Parks &amp; Interior</option><option value=\"Postal Service\">Postal Service</option><option value=\"Poverty\">Poverty</option><option value=\"Public Assistance Programs\">Public Assistance Programs</option><option value=\"Retirement &amp; Pensions\">Retirement &amp; Pensions</option><option value=\"Science &amp; Research\">Science &amp; Research</option><option value=\"Seniors &amp; Long Term Care\">Seniors &amp; Long Term Care</option><option value=\"Small Business\">Small Business</option><option value=\"Social Security\">Social Security</option><option value=\"Taxes\">Taxes</option><option value=\"Technology &amp; Cybersecurity\">Technology &amp; Cybersecurity</option><option value=\"Telecommunications &amp; Utilities\">Telecommunications &amp; Utilities</option><option value=\"Trade\">Trade</option><option value=\"Transportation &amp; Infrastructure\">Transportation &amp; Infrastructure</option><option value=\"Veterans Affairs\">Veterans Affairs</option></select></div></div><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C479022-ED70-196C-B809-FB51A91746E6\">What is the subject of your message?</label><div class=\"controls\"><input id=\"input-3C479022-ED70-196C-B809-FB51A91746E6\" name=\"input_3C479022-ED70-196C-B809-FB51A91746E6\" type=\"text\" maxlength=\"200\"></div></div><div class=\"control-group\"><input id=\"response-necessary\" name=\"input_3C478F24-9E07-D2AF-0D7F-CFC443015D9D\" type=\"checkbox\" value=\"yes\"><label for=\"response-necessary\">No Response Necessary</label></div><div class=\"control-group\"><label class=\"control-label\" for=\"input-3C478FD9-04CE-6840-A608-F510A7249134\">Message<span class=\"required\">*</span></label><div class=\"controls\"><textarea id=\"input-3C478FD9-04CE-6840-A608-F510A7249134\" name=\"input_3C478FD9-04CE-6840-A608-F510A7249134\" class=\"validate[\'required\']\"></textarea></div></div></fieldset><div><input type=\"hidden\" id=\"creativengine-form-identifier\" name=\"creativengine_form_identifier\" value=\"3C478C0F-DD8A-6210-DD6C-53C75A1DBB45\"><input type=\"hidden\" id=\"email-address-validation-field\" name=\"email_address_validation_field\" value=\"\"></div><div class=\"control-group\"><div class=\"controls\"><button type=\"submit\" class=\"btn\">Submit</button></div></div></form>';
- wait:
- value: 4
- find:
Expand Down
2 changes: 0 additions & 2 deletions members/E000295.yaml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions members/H000273.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ contact_form:
- value: 3
- javascript:
- value: "document.querySelector('.gform_wrapper').style.display = 'block'"
- javascript:
- value: "document.querySelector('#contact-form-emailJohn').innerHTML = '<form method=\"post\" target=\"_self\" id=\"gform_17_new\" action=\"/email-john/\" > <select name=\"input_2\" id=\"input_17_2\"><option value=\"\" selected=\"selected\">Prefix*</option><option value=\"Mr.\">Mr.</option><option value=\"Mrs.\">Mrs.</option><option value=\"Ms.\">Ms.</option><option value=\"Mx.\">Mx.</option><option value=\"Mr. and Mrs.\">Mr. and Mrs.</option><option value=\"Miss\">Miss</option><option value=\"Dr.\">Dr.</option></select> <input type=\"text\" name=\"input_3.3\" id=\"input_17_3_3\" value=\"\" placeholder=\"First Name*\"> <input type=\"text\" name=\"input_3.6\" id=\"input_17_3_6\" value=\"\" placeholder=\"Last Name*\"> <input name=\"input_5\" id=\"input_17_5\" type=\"text\" value=\"\" placeholder=\"Street Address*\"><input name=\"input_7\" id=\"input_17_7\" type=\"text\" value=\"\" placeholder=\"City*\"><select name=\"input_8\" id=\"input_17_8\"><option value=\"\" selected=\"selected\">State*</option><option value=\"AK\">AK</option><option value=\"AL\">AL</option><option value=\"AR\">AR</option><option value=\"AZ\">AZ</option><option value=\"CA\">CA</option><option value=\"CO\">CO</option><option value=\"CT\">CT</option><option value=\"DC\">DC</option><option value=\"DE\">DE</option><option value=\"FL\">FL</option><option value=\"GA\">GA</option><option value=\"HI\">HI</option><option value=\"IA\">IA</option><option value=\"ID\">ID</option><option value=\"IL\">IL</option><option value=\"IN\">IN</option><option value=\"KS\">KS</option><option value=\"KY\">KY</option><option value=\"LA\">LA</option><option value=\"MA\">MA</option><option value=\"MD\">MD</option><option value=\"ME\">ME</option><option value=\"MI\">MI</option><option value=\"MN\">MN</option><option value=\"MS\">MS</option><option value=\"MO\">MO</option><option value=\"MT\">MT</option><option value=\"NC\">NC</option><option value=\"NE\">NE</option><option value=\"NH\">NH</option><option value=\"NJ\">NJ</option><option value=\"NM\">NM</option><option value=\"NV\">NV</option><option value=\"NY\">NY</option><option value=\"ND\">ND</option><option value=\"OH\">OH</option><option value=\"OK\">OK</option><option value=\"OR\">OR</option><option value=\"PA\">PA</option><option value=\"RI\">RI</option><option value=\"SC\">SC</option><option value=\"SD\">SD</option><option value=\"TN\">TN</option><option value=\"TX\">TX</option><option value=\"UT\">UT</option><option value=\"VT\">VT</option><option value=\"VA\">VA</option><option value=\"WA\">WA</option><option value=\"WV\">WV</option><option value=\"WI\">WI</option><option value=\"WY\">WY</option></select><input name=\"input_9\" id=\"input_17_9\" type=\"text\" value=\"\" placeholder=\"Zip*\"><input type=\"email\" name=\"input_10\" id=\"input_17_10\" value=\"\" placeholder=\"Email Address*\"><input type=\"email\" name=\"input_10_2\" id=\"input_17_10_2\" value=\"\" placeholder=\"Verify Email Address*\"> <select name=\"input_17\" id=\"input_17_17\"><option value=\"\" selected=\"selected\">What is the general topic of your message?*</option><option value=\"Agriculture\">Agriculture</option><option value=\"Animal Rights\">Animal Rights</option><option value=\"Appropriations\">Appropriations</option><option value=\"Arts &amp; Humanities\">Arts &amp; Humanities</option><option value=\"Banking &amp; Financial Services\">Banking &amp; Financial Services</option><option value=\"Budget\">Budget</option><option value=\"Business and Commerce\">Business and Commerce</option><option value=\"Campaign/Election Reform\">Campaign/Election Reform</option><option value=\"Consumer Protection\">Consumer Protection</option><option value=\"Children\">Children</option><option value=\"Defense and Military\">Defense and Military</option><option value=\"Economic Development\">Economic Development</option><option value=\"Education\">Education</option><option value=\"Energy\">Energy</option><option value=\"Environment\">Environment</option><option value=\"Ethics Reform\">Ethics Reform</option><option value=\"Foreign Relations\">Foreign Relations</option><option value=\"Guns\">Guns</option><option value=\"Healthcare\">Healthcare</option><option value=\"Homeland Security\">Homeland Security</option><option value=\"Housing and Urban Affairs\">Housing and Urban Affairs</option><option value=\"Immigration\">Immigration</option><option value=\"Insurance Problems\">Insurance Problems</option><option value=\"Interior\">Interior</option><option value=\"Intelligence\">Intelligence</option><option value=\"Judiciary\">Judiciary</option><option value=\"Labor\">Labor</option><option value=\"Nutrition\">Nutrition</option><option value=\"Postal Service\">Postal Service</option><option value=\"Science and Innovation\">Science and Innovation</option><option value=\"Seniors\">Seniors</option><option value=\"Social Issues\">Social Issues</option><option value=\"Taxes\">Taxes</option><option value=\"Technology and Telecom\">Technology and Telecom</option><option value=\"Trade\">Trade</option><option value=\"Transportation\">Transportation</option><option value=\"Veterans\">Veterans</option><option value=\"Voting Rights\">Voting Rights</option><option value=\"Women\'s Issues\">Women\'s Issues</option></select><input name=\"input_18\" id=\"input_17_18\" type=\"text\" value=\"\" placeholder=\"Subject\"><textarea name=\"input_14\" id=\"input_17_14\" placeholder=\"Share your opinion, story or concerns or ask Senator Hickenlooper a question\"></textarea><input type=\"submit\" id=\"gform_submit_button_17\" value=\"Submit\"> <input type=\"hidden\" name=\"gform_ajax\" value=\"form_id=17&amp;title=&amp;description=&amp;tabindex=0\"> <input type=\"hidden\" name=\"is_submit_17\" value=\"1\"> <input type=\"hidden\" name=\"gform_submit\" value=\"17\"> <input type=\"hidden\" name=\"gform_unique_id\" value=\"\"> <input type=\"hidden\" name=\"state_17\" value=\"WyJbXSIsImY5MzA5MDE1MDkwZjkwNTdiNTE2YmM4OGNkM2ZhNjg1Il0=\"> <input type=\"hidden\" name=\"gform_target_page_number_17\" id=\"gform_target_page_number_17\" value=\"0\"> <input type=\"hidden\" name=\"gform_source_page_number_17\" id=\"gform_source_page_number_17\" value=\"1\"> <input type=\"hidden\" name=\"gform_field_values\" value=\"\"></form>';"
- find:
- selector: "#input_17_3_3"
- fill_in:
Expand Down
2 changes: 0 additions & 2 deletions members/H001076.yaml

Large diffs are not rendered by default.

Loading