Skip to content

Instantly share code, notes, and snippets.

View jumanji27's full-sized avatar
🐻
Sometimes you eat the bear and sometimes, well, the bear eats you.

Nikita Lebedev jumanji27

🐻
Sometimes you eat the bear and sometimes, well, the bear eats you.
View GitHub Profile
@jumanji27
jumanji27 / CSS.sublime-settings
Last active March 22, 2021 11:22
sublime settings
{
"extensions":
[
]
}
// Nikita Lebedev's blog, nazz.me/simple-jquery-popup
(function($) {
$.fn.simplePopup = function() {
var simplePopup = {
// Events
initialize: function(self) {
var popup = $(".js__popup");
// Блог Никиты Лебедева, nazz.me/simple-jquery-popup
(function($) {
$.fn.simplePopup = function() {
var simplePopup = {
// Обработчики
initialize: function(self) {
var popup = $(".js__popup");
// Блог Никиты Лебедева, nazz.me/simple-jquery-popup
(function($) {
$.fn.simplePopup = function() {
var simplePopup = {
// Обработчики
initialize: function(self) {
var popup = $(".js__popup");
// Где-то в 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();
};