Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.addEventListener('DOMContentLoaded', function() {
- var headTag, hideSidebar, jqTag;
- if (typeof jQuery === 'undefined') {
- headTag = document.getElementsByTagName("head")[0];
- jqTag = document.createElement('script');
- jqTag.type = 'text/javascript';
- jqTag.id = 'myJqueryTag';
- jqTag.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js';
- headTag.appendChild(jqTag);
- }
- hideSidebar = function() {
- $("#sidebarCell").hide();
- return console.log("hideSidebar");
- };
- return document.querySelector('iframe').addEventListener('load', hideSidebar);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement