Skip to content
Permalink
2ea83c5bbb
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
1 lines (1 sloc) 1.02 KB
jQuery(document).ready(function(t){function e(t,e){var r=JSON.stringify(e);localStorage.setItem(t,r)}function r(t){var e=localStorage.getItem(t);return JSON.parse(e)}function a(){t(".gform_wrapper input").each(function(){var r=t(this).attr("id");if("radio"==this.type||"checkbox"==this.type){var a=this.checked;e(r,a)}else if("text"==this.type){var a=this.value;e(r,a)}}),t(".gform_wrapper textarea").each(function(){var r=t(this).attr("id");e(r,this.value)}),t(".gform_button").after('<div class="alert alert-success" role="alert"><strong>Answers saved.</strong><br /> You may now continue on to the next section or close this window.</div>')}function i(){t(".gform_wrapper input").each(function(){var e=t(this).attr("id");"radio"==this.type||"checkbox"==this.type?this.checked=r(e):"text"==this.type&&(this.value=r(e))}),t(".gform_wrapper textarea").each(function(){var e=t(this).attr("id");this.value=r(e)})}i(),t(".gform_button").attr("value","Save").addClass("btn btn-primary"),t(".gform_button").click(function(t){t.preventDefault(),a()})});