Nenhuma Descrição

below.php 965B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <script type="text/javascript">
  2. window._nslDOMReady(function () {
  3. var container = document.getElementById('<?php echo $containerID; ?>'),
  4. form = container.closest('form');
  5. var innerContainer = container.querySelector('.nsl-container');
  6. if (innerContainer) {
  7. innerContainer.classList.add('nsl-container-embedded-login-layout-below');
  8. innerContainer.style.display = 'block';
  9. }
  10. form.appendChild(container);
  11. });
  12. </script>
  13. <?php
  14. $style = '
  15. {{containerID}} .nsl-container {
  16. display: none;
  17. }
  18. {{containerID}} .nsl-container-embedded-login-layout-below {
  19. clear: both;
  20. padding: 20px 0 0;
  21. }
  22. .login form {
  23. padding-bottom: 20px;
  24. }';
  25. ?>
  26. <style type="text/css">
  27. <?php echo str_replace('{{containerID}}','#' . $containerID, $style); ?>
  28. </style>
  29. <?php
  30. $style = '
  31. {{containerID}} .nsl-container {
  32. display: block;
  33. }';
  34. ?>