Initial commit.
This commit is contained in:
1
vim/snippets/javascript-jquery/add.snippet
Executable file
1
vim/snippets/javascript-jquery/add.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.add('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/addClass.snippet
Executable file
1
vim/snippets/javascript-jquery/addClass.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.addClass('${2:class name}')${3}
|
||||
1
vim/snippets/javascript-jquery/after.snippet
Executable file
1
vim/snippets/javascript-jquery/after.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.after('${2:Some text <b>and bold!</b>}')${3}
|
||||
18
vim/snippets/javascript-jquery/ajax.snippet
Executable file
18
vim/snippets/javascript-jquery/ajax.snippet
Executable file
@@ -0,0 +1,18 @@
|
||||
$.ajax({
|
||||
url: "${1:mydomain.com/url}",
|
||||
type: "${2:POST}",
|
||||
dataType: "${3:xml/html/script/json}",
|
||||
data: $.param( $("${4:Element or Expression}") ),
|
||||
|
||||
complete: function() {
|
||||
${5://called when complete}
|
||||
},
|
||||
|
||||
success: function() {
|
||||
${6://called when successful}
|
||||
},
|
||||
|
||||
error: function() {
|
||||
${7://called when there is an error}
|
||||
},
|
||||
});
|
||||
4
vim/snippets/javascript-jquery/ajaxerror.snippet
Executable file
4
vim/snippets/javascript-jquery/ajaxerror.snippet
Executable file
@@ -0,0 +1,4 @@
|
||||
.ajaxError(function(${1:request, settings}) {
|
||||
${2://stuff to do when an AJAX call returns an error};
|
||||
});
|
||||
${3}
|
||||
3
vim/snippets/javascript-jquery/ajaxget.snippet
Executable file
3
vim/snippets/javascript-jquery/ajaxget.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
$.get('${1:/test/ajax-test.xml}', function(xml){
|
||||
${2:alert( ("title",xml).text() ) //optional stuff to do after get;}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/ajaxgetif.snippet
Executable file
3
vim/snippets/javascript-jquery/ajaxgetif.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
$.getIfModified('${1:/test/test.cgi}', function(data){
|
||||
${2:alert( "Data loaded: " + data ) //optional stuff to do after get;}
|
||||
});
|
||||
5
vim/snippets/javascript-jquery/ajaxpost.snippet
Executable file
5
vim/snippets/javascript-jquery/ajaxpost.snippet
Executable file
@@ -0,0 +1,5 @@
|
||||
$.post('<+/path/to/file.cgi+>',{
|
||||
<+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+>},
|
||||
function(){
|
||||
<+//stuff to do after event occurs;+>
|
||||
});
|
||||
4
vim/snippets/javascript-jquery/ajaxsend.snippet
Executable file
4
vim/snippets/javascript-jquery/ajaxsend.snippet
Executable file
@@ -0,0 +1,4 @@
|
||||
.ajaxSend(function(${1:request, settings}) {
|
||||
${2://stuff to do when an AJAX call returns an error};
|
||||
});
|
||||
${3}
|
||||
18
vim/snippets/javascript-jquery/ajaxsetup.snippet
Executable file
18
vim/snippets/javascript-jquery/ajaxsetup.snippet
Executable file
@@ -0,0 +1,18 @@
|
||||
$.ajaxSetup({
|
||||
url: "${1:mydomain.com/url}",
|
||||
type: "${2:POST}",
|
||||
dataType: "${3:xml/html/script/json}",
|
||||
data: $.param( $("${4:Element or Expression}") ),
|
||||
|
||||
complete: function() {
|
||||
${5://called when complete}
|
||||
},
|
||||
|
||||
success: function() {
|
||||
${6://called when successful}
|
||||
},
|
||||
|
||||
error: function() {
|
||||
${7://called when there is an error}
|
||||
},
|
||||
});
|
||||
4
vim/snippets/javascript-jquery/ajaxstart.snippet
Executable file
4
vim/snippets/javascript-jquery/ajaxstart.snippet
Executable file
@@ -0,0 +1,4 @@
|
||||
$.ajaxStart(function() {
|
||||
${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
|
||||
});
|
||||
${2}
|
||||
4
vim/snippets/javascript-jquery/ajaxstop.snippet
Executable file
4
vim/snippets/javascript-jquery/ajaxstop.snippet
Executable file
@@ -0,0 +1,4 @@
|
||||
$.ajaxStop(function() {
|
||||
${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
|
||||
});
|
||||
${2}
|
||||
4
vim/snippets/javascript-jquery/ajaxsuccess.snippet
Executable file
4
vim/snippets/javascript-jquery/ajaxsuccess.snippet
Executable file
@@ -0,0 +1,4 @@
|
||||
$.ajaxSuccess(function() {
|
||||
${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
|
||||
});
|
||||
${2}
|
||||
1
vim/snippets/javascript-jquery/animate.snippet
Executable file
1
vim/snippets/javascript-jquery/animate.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})${4}
|
||||
1
vim/snippets/javascript-jquery/append.snippet
Executable file
1
vim/snippets/javascript-jquery/append.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.append('${2:Some text <b>and bold!</b>}')${3}
|
||||
1
vim/snippets/javascript-jquery/appendTo.snippet
Executable file
1
vim/snippets/javascript-jquery/appendTo.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.appendTo('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/attr.snippet
Executable file
1
vim/snippets/javascript-jquery/attr.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.attr('${2:attribute}', '${3:value}')${4}
|
||||
1
vim/snippets/javascript-jquery/attrm.snippet
Executable file
1
vim/snippets/javascript-jquery/attrm.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})${6}
|
||||
1
vim/snippets/javascript-jquery/before.snippet
Executable file
1
vim/snippets/javascript-jquery/before.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.before('${2:Some text <b>and bold!</b>}')${3}
|
||||
3
vim/snippets/javascript-jquery/bind.snippet
Executable file
3
vim/snippets/javascript-jquery/bind.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.bind('${2:event name}', function(${3:event}) {
|
||||
${4:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/blur.snippet
Executable file
3
vim/snippets/javascript-jquery/blur.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.blur(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/change.snippet
Executable file
3
vim/snippets/javascript-jquery/change.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.change(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/children.snippet
Executable file
1
vim/snippets/javascript-jquery/children.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.children('${2:selector expression}')${3}
|
||||
3
vim/snippets/javascript-jquery/click.snippet
Executable file
3
vim/snippets/javascript-jquery/click.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.click(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/clone.snippet
Executable file
1
vim/snippets/javascript-jquery/clone.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.clone()${2}
|
||||
1
vim/snippets/javascript-jquery/contains.snippet
Executable file
1
vim/snippets/javascript-jquery/contains.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.contains('${2:text to find}')${3}
|
||||
1
vim/snippets/javascript-jquery/css.snippet
Executable file
1
vim/snippets/javascript-jquery/css.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.css('${2:attribute}', '${3:value}')${4}
|
||||
1
vim/snippets/javascript-jquery/cssm.snippet
Executable file
1
vim/snippets/javascript-jquery/cssm.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.css({${2:attribute1}: '${3:value1}', ${4:attribute2}: '${5:value2}'})${6}
|
||||
3
vim/snippets/javascript-jquery/dblclick.snippet
Executable file
3
vim/snippets/javascript-jquery/dblclick.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.dblclick(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/each.snippet
Executable file
3
vim/snippets/javascript-jquery/each.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.each(function(index) {
|
||||
${2:this.innerHTML = this + " is the element, " + index + " is the position";}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/el.snippet
Executable file
1
vim/snippets/javascript-jquery/el.snippet
Executable file
@@ -0,0 +1 @@
|
||||
$('${1}')${2:}
|
||||
1
vim/snippets/javascript-jquery/eltrim.snippet
Executable file
1
vim/snippets/javascript-jquery/eltrim.snippet
Executable file
@@ -0,0 +1 @@
|
||||
$.trim('${1:string}')${2}
|
||||
1
vim/snippets/javascript-jquery/end.snippet
Executable file
1
vim/snippets/javascript-jquery/end.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.end()${2}
|
||||
3
vim/snippets/javascript-jquery/error.snippet
Executable file
3
vim/snippets/javascript-jquery/error.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.error(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/fadein.snippet
Executable file
1
vim/snippets/javascript-jquery/fadein.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.fadeIn('${2:slow/400/fast}')${3}
|
||||
3
vim/snippets/javascript-jquery/fadeinc.snippet
Executable file
3
vim/snippets/javascript-jquery/fadeinc.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.fadeIn('slow/400/fast', function() {
|
||||
${2://Stuff to do *after* the animation takes place};
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/fadeout.snippet
Executable file
1
vim/snippets/javascript-jquery/fadeout.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.fadeOut('${2:slow/400/fast}')${3}
|
||||
3
vim/snippets/javascript-jquery/fadeoutc.snippet
Executable file
3
vim/snippets/javascript-jquery/fadeoutc.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.fadeOut('slow/400/fast', function() {
|
||||
${2://Stuff to do *after* the animation takes place};
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/fadeto.snippet
Executable file
1
vim/snippets/javascript-jquery/fadeto.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.fadeTo('${2:slow/400/fast}', ${3:0.5})${4}
|
||||
3
vim/snippets/javascript-jquery/fadetoc.snippet
Executable file
3
vim/snippets/javascript-jquery/fadetoc.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.fadeTo('slow/400/fast', ${2:0.5}, function() {
|
||||
${3://Stuff to do *after* the animation takes place};
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/filter.snippet
Executable file
1
vim/snippets/javascript-jquery/filter.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.filter('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/find.snippet
Executable file
1
vim/snippets/javascript-jquery/find.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.find('${2:selector expression}')${3}
|
||||
3
vim/snippets/javascript-jquery/focus.snippet
Executable file
3
vim/snippets/javascript-jquery/focus.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.focus(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/get.snippet
Executable file
1
vim/snippets/javascript-jquery/get.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.get(${2:element index})${3}
|
||||
5
vim/snippets/javascript-jquery/getjson.snippet
Executable file
5
vim/snippets/javascript-jquery/getjson.snippet
Executable file
@@ -0,0 +1,5 @@
|
||||
$.getJSON('<+/path/to/file.cgi+>',{
|
||||
<+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+>},
|
||||
function(json){
|
||||
<+//stuff to do after event occurs;+>
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/getscript.snippet
Executable file
3
vim/snippets/javascript-jquery/getscript.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
$.getScript('${1:somescript.js}', function(){
|
||||
${2://optional stuff to do after getScript;}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/height.snippet
Executable file
1
vim/snippets/javascript-jquery/height.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.height(${2:integer})${3}
|
||||
1
vim/snippets/javascript-jquery/hide.snippet
Executable file
1
vim/snippets/javascript-jquery/hide.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.hide('${2:slow/400/fast}')${3}
|
||||
3
vim/snippets/javascript-jquery/hidec.snippet
Executable file
3
vim/snippets/javascript-jquery/hidec.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.hide('${2:slow/400/fast}', function() {
|
||||
${3://Stuff to do *after* the animation takes place}
|
||||
});
|
||||
5
vim/snippets/javascript-jquery/hover.snippet
Executable file
5
vim/snippets/javascript-jquery/hover.snippet
Executable file
@@ -0,0 +1,5 @@
|
||||
${1:obj}.hover(function() {
|
||||
${2:// Stuff to do when the mouse enters the element;}
|
||||
}, function() {
|
||||
${3:// Stuff to do when the mouse leaves the element;}
|
||||
});${4}
|
||||
1
vim/snippets/javascript-jquery/html.snippet
Executable file
1
vim/snippets/javascript-jquery/html.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.html('${2:Some text <b>and bold!</b>}')${3}
|
||||
1
vim/snippets/javascript-jquery/insertAfter.snippet
Executable file
1
vim/snippets/javascript-jquery/insertAfter.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.insertAfter('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/insertBefore.snippet
Executable file
1
vim/snippets/javascript-jquery/insertBefore.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.insertBefore('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/is.snippet
Executable file
1
vim/snippets/javascript-jquery/is.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.is('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/jj.snippet
Executable file
1
vim/snippets/javascript-jquery/jj.snippet
Executable file
@@ -0,0 +1 @@
|
||||
$('${1:selector}')${2}
|
||||
3
vim/snippets/javascript-jquery/load.snippet
Executable file
3
vim/snippets/javascript-jquery/load.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.load(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/loadf.snippet
Executable file
3
vim/snippets/javascript-jquery/loadf.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
<+obj+>.load('<+/path/to/file.htm+>', { <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+> }, function() {
|
||||
<+// Stuff to do after the page is loaded+>
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/loadif.snippet
Executable file
3
vim/snippets/javascript-jquery/loadif.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
<+obj+>.loadIfModified('<+/path/to/file.htm+>', { <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+> }, function() {
|
||||
<+// Stuff to do after the page is loaded+>
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/mdown.snippet
Executable file
3
vim/snippets/javascript-jquery/mdown.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.mousedown(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/mmove.snippet
Executable file
3
vim/snippets/javascript-jquery/mmove.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.mousemove(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/mout.snippet
Executable file
3
vim/snippets/javascript-jquery/mout.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.mouseout(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/mover.snippet
Executable file
3
vim/snippets/javascript-jquery/mover.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.mouseover(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/mup.snippet
Executable file
3
vim/snippets/javascript-jquery/mup.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.mouseup(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/next.snippet
Executable file
1
vim/snippets/javascript-jquery/next.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.next('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/not.snippet
Executable file
1
vim/snippets/javascript-jquery/not.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.not('${2:selector expression}')${3}
|
||||
3
vim/snippets/javascript-jquery/one.snippet
Executable file
3
vim/snippets/javascript-jquery/one.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.one('${2:event name}', function(${3:event}) {
|
||||
${4:// Act on the event once}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/parent.snippet
Executable file
1
vim/snippets/javascript-jquery/parent.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.parent('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/parents.snippet
Executable file
1
vim/snippets/javascript-jquery/parents.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.parents('${2:selector expression}')${3}
|
||||
28
vim/snippets/javascript-jquery/plugin.snippet
Executable file
28
vim/snippets/javascript-jquery/plugin.snippet
Executable file
@@ -0,0 +1,28 @@
|
||||
// Create Closure
|
||||
;(function($) {
|
||||
$.fn.${1} = function(options) {
|
||||
// Extend the defaults, over-writing them with anything passed by the caller
|
||||
var opts = $.extend({}, $.fn.$1.defaults, options);
|
||||
|
||||
// Iterate over each element
|
||||
return this.each(function() {
|
||||
$this = $(this);
|
||||
|
||||
// Allow for use of the Metadata plugin
|
||||
var o = $.meta ? $.extend({}, opts, $this.data()) : opts;
|
||||
|
||||
${2:YOUR CODE GOES HERE}
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
// Additional methods follow the format:
|
||||
// $.fn.$1.format = function(txt) {
|
||||
// FUNCTION STUFF GOES HERE
|
||||
// };
|
||||
|
||||
// Plugin Defaults
|
||||
$.fn.$1.defaults = {
|
||||
|
||||
};
|
||||
})(jQuery); // Closure Closed
|
||||
1
vim/snippets/javascript-jquery/prepend.snippet
Executable file
1
vim/snippets/javascript-jquery/prepend.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.prepend('${2:Some text <b>and bold!</b>}')${3}
|
||||
1
vim/snippets/javascript-jquery/prependto.snippet
Executable file
1
vim/snippets/javascript-jquery/prependto.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.prependTo('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/prev.snippet
Executable file
1
vim/snippets/javascript-jquery/prev.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.prev('${2:selector expression}')${3}
|
||||
3
vim/snippets/javascript-jquery/ready.snippet
Executable file
3
vim/snippets/javascript-jquery/ready.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
$(function() {
|
||||
${1}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/remove.snippet
Executable file
1
vim/snippets/javascript-jquery/remove.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.remove()${2}
|
||||
1
vim/snippets/javascript-jquery/removeattr.snippet
Executable file
1
vim/snippets/javascript-jquery/removeattr.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.removeAttr('${2:attribute name}')${3}
|
||||
1
vim/snippets/javascript-jquery/removeclass.snippet
Executable file
1
vim/snippets/javascript-jquery/removeclass.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.removeClass('${2:class name}')${3}
|
||||
3
vim/snippets/javascript-jquery/reset.snippet
Executable file
3
vim/snippets/javascript-jquery/reset.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.reset(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/resize.snippet
Executable file
3
vim/snippets/javascript-jquery/resize.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.resize(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/scroll.snippet
Executable file
3
vim/snippets/javascript-jquery/scroll.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.scroll(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/sdown.snippet
Executable file
1
vim/snippets/javascript-jquery/sdown.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.slideDown('${2:slow/400/fast}')${3}
|
||||
3
vim/snippets/javascript-jquery/sdownc.snippet
Executable file
3
vim/snippets/javascript-jquery/sdownc.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.slideDown('${2:slow/400/fast}', function() {
|
||||
${3://Stuff to do *after* the animation takes place};
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/sdupc.snippet
Executable file
3
vim/snippets/javascript-jquery/sdupc.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.slideUp('${2:slow/400/fast}', function() {
|
||||
${3://Stuff to do *after* the animation takes place};
|
||||
});
|
||||
3
vim/snippets/javascript-jquery/select.snippet
Executable file
3
vim/snippets/javascript-jquery/select.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.select(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/show.snippet
Executable file
1
vim/snippets/javascript-jquery/show.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.show('${2:slow/400/fast}')${3}
|
||||
3
vim/snippets/javascript-jquery/showc.snippet
Executable file
3
vim/snippets/javascript-jquery/showc.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.show('${2:slow/400/fast}', function() {
|
||||
${3://Stuff to do *after* the animation takes place}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/sib.snippet
Executable file
1
vim/snippets/javascript-jquery/sib.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.siblings('${2:selector expression}')${3}
|
||||
1
vim/snippets/javascript-jquery/size.snippet
Executable file
1
vim/snippets/javascript-jquery/size.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.size()${2}
|
||||
1
vim/snippets/javascript-jquery/stoggle.snippet
Executable file
1
vim/snippets/javascript-jquery/stoggle.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.slideToggle('${2:slow/400/fast}')${3}
|
||||
3
vim/snippets/javascript-jquery/submit.snippet
Executable file
3
vim/snippets/javascript-jquery/submit.snippet
Executable file
@@ -0,0 +1,3 @@
|
||||
${1:obj}.submit(function() {
|
||||
${2:// Act on the event once}
|
||||
});
|
||||
1
vim/snippets/javascript-jquery/sup.snippet
Executable file
1
vim/snippets/javascript-jquery/sup.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.slideUp('${2:slow/400/fast}')${3}
|
||||
1
vim/snippets/javascript-jquery/text.snippet
Executable file
1
vim/snippets/javascript-jquery/text.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.text(${2:'some text'})${3}
|
||||
1
vim/snippets/javascript-jquery/this.snippet
Executable file
1
vim/snippets/javascript-jquery/this.snippet
Executable file
@@ -0,0 +1 @@
|
||||
$(this)${1}
|
||||
6
vim/snippets/javascript-jquery/tog.snippet
Executable file
6
vim/snippets/javascript-jquery/tog.snippet
Executable file
@@ -0,0 +1,6 @@
|
||||
${1:obj}.toggle(function() {
|
||||
${2:// Stuff to do every *odd* time the element is clicked;}
|
||||
}, function() {
|
||||
${3:// Stuff to do every *even* time the element is clicked;}
|
||||
});
|
||||
${4}
|
||||
1
vim/snippets/javascript-jquery/togclass.snippet
Executable file
1
vim/snippets/javascript-jquery/togclass.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.toggleClass('${2:class name}')${3}
|
||||
1
vim/snippets/javascript-jquery/togsh.snippet
Executable file
1
vim/snippets/javascript-jquery/togsh.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.toggle('${2:slow/400/fast}')${3}
|
||||
1
vim/snippets/javascript-jquery/trig.snippet
Executable file
1
vim/snippets/javascript-jquery/trig.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.trigger('${2:event name}')${3}
|
||||
1
vim/snippets/javascript-jquery/unbind.snippet
Executable file
1
vim/snippets/javascript-jquery/unbind.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.unbind('${2:event name}')${3}
|
||||
1
vim/snippets/javascript-jquery/val.snippet
Executable file
1
vim/snippets/javascript-jquery/val.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.val('${2:text}')${3}
|
||||
1
vim/snippets/javascript-jquery/width.snippet
Executable file
1
vim/snippets/javascript-jquery/width.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.width(${2:integer})${3}
|
||||
1
vim/snippets/javascript-jquery/wrap.snippet
Executable file
1
vim/snippets/javascript-jquery/wrap.snippet
Executable file
@@ -0,0 +1 @@
|
||||
${1:obj}.wrap('${2:<div class="extra-wrapper"></div>}')${3}
|
||||
Reference in New Issue
Block a user