This file contains 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
Show hidden characters
{ | |
"extensions": | |
[ | |
] | |
} |
This file contains 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
// Nikita Lebedev's blog, nazz.me/simple-jquery-popup | |
(function($) { | |
$.fn.simplePopup = function() { | |
var simplePopup = { | |
// Events | |
initialize: function(self) { | |
var popup = $(".js__popup"); |
This file contains 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
// Блог Никиты Лебедева, nazz.me/simple-jquery-popup | |
(function($) { | |
$.fn.simplePopup = function() { | |
var simplePopup = { | |
// Обработчики | |
initialize: function(self) { | |
var popup = $(".js__popup"); |
This file contains 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
// Блог Никиты Лебедева, nazz.me/simple-jquery-popup | |
(function($) { | |
$.fn.simplePopup = function() { | |
var simplePopup = { | |
// Обработчики | |
initialize: function(self) { | |
var popup = $(".js__popup"); |
This file contains 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
// Где-то в html есть <a href="#" class="js__p_hidden_start" style="display:none;">Нажмите</a> | |
$(function() { | |
$(".js__p_hidden_start").simplePopup(); | |
var hiddenPopup = function() { | |
$(".js__p_hidden_start").on("click"); | |
// Или $(".js__p_hidden_start").click(); | |
}; |