added main snippet file

This commit is contained in:
Lukas-Heiligenbrunner 2019-01-15 19:27:51 +01:00 committed by GitHub
parent 01714883d0
commit ccf0f97808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

24
snippets.cson Normal file
View File

@ -0,0 +1,24 @@
'.source.js':
'jquery click listener':
'prefix': 'click jquery'
'body': """
$('$1').click(function() {
});
"""
'jquery post request':
'prefix': 'post jquery'
'body': """
$.post('${1:src}','${2:action}',function(data){
},'text');
"""
'jquery onready listener':
'prefix': 'ready jquery'
'body': """
$(document).ready(function() {
});
"""