Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

injectBlockFramework

Опубликовано:

Хотел спросить, в контенте есть функция "injectBlockFramework" в которой js код. Для чего он, какую роль играет?

Рекомендованные сообщения

Опубликовано:

* Injects javascript into the page for block templates

 

This method is called automatically be IP.Content as necessary and should not normally need to be called manually. The purpose of this method is to add the necessary javascript and CSS calls for use with block templates. The output HTML is passed as the first parameter. If the second parameter is set to true, the javascript to inject is returned, otherwise it is automatically inserted into the output before the closing HTML tag. If the last parameter is set to true and the second parameter is false, the javascript code is instead returned (similar to if the second parameter is set to true), however it is broken up in such a way that it can be inserted into the page outside of the

tag.

 

https://www.invisionpower.com/support/guides/_/advanced-and-developers/ipcontent/library-ccsfunctions-r227

Опубликовано:
 есть функция "injectBlockFramework" 

Проблемная функция, которая должна вставлять javascript с подключением jquery, compiled.js и compiled.css один раз а вставляет по количеству созданных на страничке блоков))))))

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.