This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
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?
sistertalk/min/sistertalk.min.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 lines (1 sloc)
1.02 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()})}); |