Skip to content

Instantly share code, notes, and snippets.

View simogeo's full-sized avatar
🎯
Focusing

Simon Georget simogeo

🎯
Focusing
View GitHub Profile
@simogeo
simogeo / jquery.leanModal.min.js
Created October 22, 2017 07:48
Responsive leanModal minified version
// 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 October 22, 2017 07:47
Responsive leanModal
(function($){
$.fn.extend({
leanModal: function(options) {
var defaults = {
top: 100,
overlay: 0.5,
closeButton: null
@simogeo
simogeo / map.geojson
Created August 23, 2013 17:02
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simogeo
simogeo / map.geojson
Created August 23, 2013 16:57
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simogeo
simogeo / map.geojson
Created August 15, 2013 21:57
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simogeo
simogeo / map.geojson
Created August 13, 2013 17:52
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.