le fichier doit avoir le nom du langage donc javascript.json à la place de js.json
This commit is contained in:
parent
04fa0ea1ce
commit
5dacffd5bc
2 changed files with 9 additions and 25 deletions
25
js.json
25
js.json
|
@ -1,25 +0,0 @@
|
||||||
{
|
|
||||||
"jq": {
|
|
||||||
"prefix": "jq",
|
|
||||||
"body": "jQuery(function() {\n\t`!v vim_snippets#Filename()`();\n\t//onAjaxLoad(`!v vim_snippets#Filename()`);\n\n\tfunction `!v vim_snippets#Filename()`(){\n\t\t${0}\n\t}\n});"
|
|
||||||
},
|
|
||||||
"con": {
|
|
||||||
"prefix": "con",
|
|
||||||
"body": "console.log(${1});"
|
|
||||||
},
|
|
||||||
"ajax_action": {
|
|
||||||
"prefix": "ajax_action",
|
|
||||||
"body": "data = {\n\n};\nvar request = $.ajax({\n\turl: ${1},\n\tdata: data,\n\tasync: true,\n\tdataType: 'json',\n});\nrequest.done(function(){\n\t${0}\n\t// console.log(ma_variable_php_de_retour);\n});",
|
|
||||||
"description": "req ajax jquery"
|
|
||||||
},
|
|
||||||
"ajax_reload": {
|
|
||||||
"prefix": "ajax_reload",
|
|
||||||
"body": "ajaxReload('${1}', {\n\targs:{\n\t\t${2}:$2,${0}\n\t},\n\tcallback: function(){}\n});",
|
|
||||||
"description": "Reload ajax SPIP"
|
|
||||||
},
|
|
||||||
"url": {
|
|
||||||
"prefix": "url",
|
|
||||||
"body": "let url_${1} = window.location.protocol + '//' + window.location.hostname + '/spip.php?action=$1';\n${0}",
|
|
||||||
"description": "url action auteur SPIP"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -8,6 +8,15 @@
|
||||||
],
|
],
|
||||||
"description": "Knacss @include tiny-up"
|
"description": "Knacss @include tiny-up"
|
||||||
},
|
},
|
||||||
|
"@include xs-up": {
|
||||||
|
"prefix": "xs-up",
|
||||||
|
"body": [
|
||||||
|
"@include respond-to('tiny-up') {",
|
||||||
|
"$0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Knacss @include tiny-up"
|
||||||
|
},
|
||||||
"@include small-up": {
|
"@include small-up": {
|
||||||
"prefix": "s-up",
|
"prefix": "s-up",
|
||||||
"body": [
|
"body": [
|
||||||
|
|
Loading…
Add table
Reference in a new issue