Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка 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.

Легенда групп

Featured Replies

Posted

Всем снова здравствуйте и всех с новым годом :)Вижу на многих форумах(под спойлером) фишку к группе легенд там есть подгруппы через кнопку Вот возник вопрос как это реализовать без плагина и добавить его в свой код?

Спойлер

97561079_WC3GRUP.png.8b8cadcacdfb536b8a8ffc6da758779e.png

 

  • Author
19 часов назад, HooLIGUN сказал:

Расскажи 

Примерно так Добавляешь туда куда тебе нужен этот код  (Взял пример кода с одного форума)

Спойлер

- Свой div class прописываешь там где хочешь сделать. 

<ul class="acekill_legend_list" style="list-style-type: none; padding-left: 5px;">

      <li onclick="showPopup('Legend_ServersOwner');">
        <span style="color: #e41f00;font-weight: 600; text-align: left;">
          <i class="fas fa-stream" aria-hidden="true"></i> Owners
          <i class="fa fa-caret-down" aria-hidden="true"></i>
        </span>

        <div id="Legend_ServersOwner" class="dropdown-content popupContent">
          <span class="popuplegendtext" id="myPopup">
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=30" style="color: #e41f00;font-weight: 600;">
              <i class="fas fa-stream" aria-hidden="true"></i> Owner AWP
            </a>
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=33" style="color: #e41f00;font-weight: 600;">
              <i class="fas fa-stream" aria-hidden="true"></i> Owner FFA
            </a>
          </span>
        </div>
      </li>

      <li onclick="showPopup('Legend_Guardians');">
        <span style="color: #e45200;font-weight:bold;">
          <i class="fas fa-layer-group" aria-hidden="true"></i> Guardians
          <i class="fa fa-caret-down" aria-hidden="true"></i>
        </span>

        <div id="Legend_Guardians" class="dropdown-content popupContent">
          <span class="popuplegendtext">
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=12" style="color: #e45200;font-weight:bold;">
              <i class="fas fa-layer-group" aria-hidden="true"></i> Guardian CSGO AIM
            </a>
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=11" style="color: #e45200;font-weight:bold;">
              <i class="fas fa-layer-group" aria-hidden="true"></i> Guardian CSGO AWP
            </a>
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=22" style="color: #e45200;font-weight:bold;">
              <i class="fas fa-layer-group" aria-hidden="true"></i> Guardian CSGO 5vs5 MIRAGE
            </a>
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=34" style="color: #e45200;font-weight:bold;">
              <i class="fas fa-layer-group" aria-hidden="true"></i> Guardian CSGO FFA
            </a>
          </span>
        </div>
      </li>

      <li onclick="showPopup('Legend_Admins');">
        <span style="color: #e4874e;font-weight:bold;">
          <i class="fab fa-steam-symbol" aria-hidden="true"></i> Admins
          <i class="fa fa-caret-down" aria-hidden="true"></i>
        </span>
        <div id="Legend_Admins" class="dropdown-content popupContent">
          <span class="popuplegendtext">
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=9" style="color: #e4874e;font-weight:bold;">
              <i class="fab fa-steam-symbol" aria-hidden="true"></i> Admin CSGO AIM
             </a>
             <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=9" style="color: #e4874e;font-weight:bold;">
              <i class="fab fa-steam-symbol" aria-hidden="true"></i> Admin CSGO AWP
            </a>
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=18" style="color: #e4874e;font-weight:bold;">
              <i class="fab fa-steam-symbol" aria-hidden="true"></i> Admin CSGO 5vs5 MIRAGE
            </a>
            <a href="https://forum.acekill.pl/index.php?action=viewgroups&amp;gid=35" style="color: #e4874e;font-weight:bold;">
              <i class="fab fa-steam-symbol" aria-hidden="true"></i> Admin CSGO FFA
            </a>
          </span>
        </div>
      </li>
    </ul>

После чего добавил скрипт в globalTemplate

Спойлер

   <script>
    function showPopup(id) {
        removePopups();
        event.stopPropagation();
        document.getElementById( id ).classList.toggle("popupShow");
    }

    window.onclick = function(event) {
        removePopups();
    }

    function removePopups () {
        var dropdowns = document.getElementsByClassName("popupContent");
        var i;
        for (i = 0; i < dropdowns.length; i++) {
          var openDropdown = dropdowns[i];
          if (openDropdown.classList.contains('popupShow')) {
            openDropdown.classList.remove('popupShow');
          }
        }
    }
</script>

После чего добавил в CSS этот код 

Спойлер

.dropdown-content.popupShow {
    display: block;
}
.popupShow {
    display: block;
}
.dropdown-content {
    display: none;
    position: absolute;
    min-width: 300px;
    overflow: auto;
    z-index: 99999;
    top: 55px;
    right: 0px;
    background: rgba(17,17,21,0.86);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur( 4px );
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 5px;
}

В этого поучилось то что нужно было мне 

Спойлер

PRIMER.png.f3ece964dc5e8f77c23287729ec60a32.png

А дальше нужно менять свой CSS так как ты хочешь.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

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.