You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.php
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@
37
37
<h1>Secret Santa</h1>
38
38
<p>Add each person's name and email who is participating in the Secret Santa drawing. Select the suggested price and hit the send email button. Everyone will receive an email with who they have been randomly select to purchase a gift for.</p>
Copy file name to clipboardExpand all lines: js/jquery.scripts.js
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,37 @@ function newFormElementsString(numberOfPeople) {
24
24
returnformString;
25
25
}
26
26
27
+
functionformFeedback(status){
28
+
if(status==1){
29
+
$('.feedback').html("<div class='alert alert-success' id='_formFeedback' role='alert'>Every person was randomly assigned a Secret Santa.</div>");
30
+
}else{
31
+
$('.feedback').html("<div class='alert alert-warning' id='_formFeedback' role='alert'>Something failed and the emails did not go out. Please <a href="/">try again</a>.</div>");
32
+
}
33
+
34
+
}
35
+
36
+
functionformStarted(){
37
+
$('.feedback').html("<div class='alert alert-info' id='_formStarted' role='alert'>Randomizing and Sending out the emails</div>");
0 commit comments