Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Simon Georget simogeo

View GitHub Profile
@simogeo
simogeo / jquery.leanModal.min.js
Created Oct 22, 2017
Responsive leanModal minified version
View jquery.leanModal.min.js
// leanModal v1.1 by Ray Stone - http://finelysliced.com.au
// Dual licensed under the MIT and GPL
// Tweaked by @simo to be responsive
!function(e){e.fn.extend({leanModal:function(t){function n(t){e("#lean_overlay").fadeOut(200),e(t).css({display:"none"})}var o={top:100,overlay:.5,closeButton:null},a=e("<div id='lean_overlay'></div>");return e("body").append(a),t=e.extend(o,t),this.each(function(){var o=t;e(this).click(function(t){var a=e(this).attr("href");e("#lean_overlay").click(function(){n(a)}),e(o.closeButton).click(function(){n(a)});e(a).outerHeight(),e(a).outerWidth();e("#lean_overlay").css({display:"block",opacity:0}),e("#lean_overlay").fadeTo(200,o.overlay),e(a).css({display:"block",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:0,"z-index":11e3}),e(a).fadeTo(200,1),t.preventDefault()})})}})}(jQuery);
@simogeo
simogeo / jquery.leanModal.js
Created Oct 22, 2017
Responsive leanModal
View jquery.leanModal.js
(function($){
$.fn.extend({
leanModal: function(options) {
var defaults = {
top: 100,
overlay: 0.5,
closeButton: null
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.