-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtips.txt
80 lines (50 loc) · 2.01 KB
/
tips.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Flippers (currently Webkit, Firefox, & IE10 only):
flip flipInX flipOutX flipInY flipOutY
Fading entrances:
fadeIn fadeInUp fadeInDown fadeInLeft fadeInRight fadeInUpBig fadeInDownBig fadeInLeftBig fadeInRightBig
Fading exits:
fadeOut fadeOutUp fadeOutDown fadeOutLeft fadeOutRight fadeOutUpBig fadeOutDownBig fadeOutLeftBig fadeOutRightBig
Bouncing entrances:
bounceIn bounceInDown bounceInUp bounceInLeft bounceInRight
Bouncing exits:
bounceOut bounceOutDown bounceOutUp bounceOutLeft bounceOutRight
Rotating entrances:
rotateIn rotateInDownLeft rotateInDownRight rotateInUpLeft rotateInUpRight
Rotating exits:
rotateOut rotateOutDownLeft rotateOutDownRight rotateOutUpLeft rotateOutUpRight
Lightspeed:
lightSpeedIn lightSpeedOut
Specials:
hinge rollIn rollOut
$.ajax({
type: "POST",
data: $(".form-question-submit").serialize(),
url: $(this).attr('href')+'/'+$('#selected-question').attr('qid'),
contentType:"application/json; charset=utf-8",
dataType:"json",
beforeSend: function(xhr){xhr.setRequestHeader('x-csrf-token', $('#csrf').val() );},
error: function(jqXHR, textStatus, errorThrown){
console.log('error',jqXHR.status,jqXHR.responseText);
var msg = $('<div>submit failed</div>');
msg.css('background','#A60000');
msg.css('color','#ffffff')
},
success: function(data)
{
console.log(data);
}
});
// drop the database
// mongoose.connection.db.executeDbCommand({dropDatabase:1});
// slaveok
// Model.find(conditions).slaveOk().run(callback);
var errors = [];
if (!req.body.username) errors.push("username specified")
if (!req.body.email) errors.push("Missing email")
if (!req.body.password) errors.push("Missing password")
if (errors.length){
res.statusCode = 400;
res.end(JSON.stringify({status:"error", errors:errors}));
return;
}
res.redirect(req.headers.referer || '/login');