Продажа платежных систем, разменных аппаратов и комплектующих для систем самообслуживания Alberici
+7 (495) 295-35-64 info@alberici.ru Москва, Очаковское шоссе, д. 28\2

Organized groups

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

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.