Юридический консалтинг
Компания «Юридический консалтинг» Полный спектр юридических услуг для юридических и
физических лиц
Наш телефон 8 (916) 650-55-22 Время работы ежедневно с 09:00 до 21:00 Наша электронная почта help-ur.astafiev@yandex.ru

Организованные группы

image_pdfimage_print

Пример страницы

By default, Magnific Popup has four types of content: image, iframe, inline, and ajax. There is no any “auto-detection” of type based on URL, so you should define it manually.

The type of a popup can be defined in a two ways:

  1. Using the type option. E.g.: $('.image-link').magnificPopup({type:'image'}).
  2. Using the mfp-TYPE CSS class (where TYPE is the desired content type). For example: <a class="mfp-image image-link">Open image</a>, $('.image-link').magnificPopup().

The second option always overrides the first, so you may initialize popups with multiple content types from one call.

inline is the default content type (from v0.8.4), so you may skip its definition.

The source of the the popup content (for example, a path to an image, a path to an HTML file, a path to a video page) can be defined in a few ways.