Was tired of heavy bloated jQuery slider plugins so I made my own. Has controls and finds your slide height/width automatically. Simple & basic, the way momma would have wanted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($){ | |
$(document).mouseup(function (e){ // событие клика по веб-документу | |
var div = $("#popup"); // тут указываем ID элемента | |
if (!div.is(e.target) // если клик был не по нашему блоку | |
&& div.has(e.target).length === 0) { // и не по его дочерним элементам | |
div.hide(); // скрываем его | |
} | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: '/path/to/file', | |
type: 'default GET (Other values: POST)', | |
dataType: 'default: Intelligent Guess (Other values: xml, json, script, or html)', | |
data: {param1: 'value1'}, | |
}) | |
.done(function() { | |
console.log('success'); | |
}) | |
.fail(function() { |
A Pen by Jasmin Skopljak on CodePen.
Prototype for the skills section of my personal website
Built with the awesome charts.js http://www.chartjs.org/
A Pen by Christian Fleschhut on CodePen.
NewerOlder