Sha256: 494ffa78350c918a663716f06c71b55c86df73b0bd33a6401ffb562919b16453
Contents?: true
Size: 1.4 KB
Versions: 137
Compression:
Stored size: 1.4 KB
Contents
<style type="text/css"> #scrivito_editing_auth_warning { background: #aa4040; box-shadow: 0 0 5px rgba(0,0,0,0.6); color: #fff; left: 0; margin-bottom: 47px; padding: 10px; position: fixed; text-align: center; top: 0; width: 100%; z-index: 111111; } #scrivito_editing_auth_warning a { color: #fff; text-decoration: underline; } </style> <%= javascript_tag do %> // Following may not rely on jQuery or any other library. window.addEventListener('load', function() { var wrapper = document.createElement('div'); wrapper.innerHTML = '<div id="scrivito_editing_auth_warning">' + 'In the <%= Rails.env %> environment,' + ' <a href="https://scrivito.com/permissions" target="_blank">' + 'authentication for Scrivito needs to be enabled</a>' + ' for logging in and editing content in place.' + ' <a class="scrivito_close" href="#">Close</a>' + '</div>'; document.getElementsByTagName('body')[0].appendChild(wrapper); var close_link = document.querySelectorAll('#scrivito_editing_auth_warning .scrivito_close')[0]; close_link.addEventListener('click', function() { var notice = document.querySelectorAll('#scrivito_editing_auth_warning')[0]; notice.parentNode.removeChild(notice); return false; }); }); <% end %>
Version data entries
137 entries across 137 versions & 1 rubygems