Advertisement
aa_frey

Untitled

Jun 8th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. window.addEventListener('DOMContentLoaded', function() {
  2. var headTag, hideSidebar, jqTag;
  3. if (typeof jQuery === 'undefined') {
  4. headTag = document.getElementsByTagName("head")[0];
  5. jqTag = document.createElement('script');
  6. jqTag.type = 'text/javascript';
  7. jqTag.id = 'myJqueryTag';
  8. jqTag.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js';
  9. headTag.appendChild(jqTag);
  10. }
  11. hideSidebar = function() {
  12. $("#sidebarCell").hide();
  13. return console.log("hideSidebar");
  14. };
  15. return document.querySelector('iframe').addEventListener('load', hideSidebar);
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement