Every line of 'preload.js popup' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
5 function loadPopup(page_url){ 6 //loads popup only if it is disabled 7 if(popupStatus==0){ 8 jQuery("#backgroundPopup").css({ 9 "opacity": "0.7" 10 }); 11 jQuery("#backgroundPopup").fadeIn("slow"); 12 jQuery("#popupContent").fadeIn("slow"); 13 jQuery("#contentArea").attr("src", page_url); 14 popupStatus = 1; 15 } 16 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
4 function loadPopup() { 5 // loads popup only if it is disabled 6 if (popupStatus == 0) { 7 jQuery("#backgroundPopup").css({ 8 "opacity" : "0.7" 9 }); 10 jQuery("#backgroundPopup").fadeIn("slow"); 11 jQuery("#popupChooser").fadeIn("slow"); 12 popupStatus = 1; 13 } 14 }
63 function loadPopup(src, options) { 64 var title = options.popupTitle || 'External Identity Provider User Authentication'; 65 var appearance = 'toolbar=no, scrollbars=yes, resizable=yes, ' + 66 'top=100, left=500, width=600, height=600'; 67 68 if (util.isIE11OrLess()) { 69 // IE<=11 doesn't fully support postMessage at time of writting. 70 // the following simple solution happened to solve the issue 71 // without adding another proxy layer which makes flow more complecated. 72 var winEl = window.open('/', title, appearance); 73 winEl.location.href = src; 74 return winEl; 75 } else { 76 return window.open(src, title, appearance); 77 } 78 }
8 function popup_loader() { 9 jQuery('html,body').css('overflow', 'auto'); 10 jQuery('#adminmenuwrap').css({'z-index':'auto'}); 11 var $dlg = jQuery(".loader").dialog({ 12 open: function(event, ui) { 13 jQuery('html,body').css('overflow', 'hidden'); 14 jQuery('#adminmenuwrap').css({'z-index':0}); 15 }, 16 close: function(event, ui) { 17 jQuery('html,body').css('overflow', 'auto'); 18 jQuery('#adminmenuwrap').css({'z-index':'auto'}); 19 }, 20 position: "center", 21 modal: true, 22 resizable: false, 23 dialogClass: 'loaderPopup' 24 }); 25 jQuery(".ui-dialog-titlebar").hide(); 26 }
75 function preLoad (url) { 76 var feed = document.getElementById("contentArea"); 77 feed.innerHTML = "<h2 align=center id='loading-data'>Retrieving Hackernews feed...</h2>"; 78 79 console.log( 80 "%c ______________________________________________________________________________________ \n" + 81 "| |\n" + 82 "| NNN NN EEEEEEEEE WW WW SSSSSSS FFFFFFFFFF EEEEEEEEE EEEEEEEEE DDDDDDD |\n" + 83 "| NN NN NN EE WW WW SS FF EE EE DD DD |\n" + 84 "| NN NN NN EE WW WW SSSSSS FF EE EE DD DD |\n" + 85 "| NN NN NN EEEEEEE WW W WW SS FFFFFFFF EEEEEEE EEEEEEE DD DD |\n" + 86 "| NN NN NN EE WW W W WW SS FF EE EE DD DD |\n" + 87 "| NN NNN EEEEEEEEE WW WW SSSSSSS FF EEEEEEEEE EEEEEEEEE DDDDDDD |\n" + 88 "|________________________________________________________________________________________|\n" + 89 "@version 0.0.2", 90 "color: #FF6600" 91 ); 92 93 94 console.log( 95 "%cRetrieving data from " + url.toString() + "...", 96 "color=#ff6600" 97 ); 98 }
4 function popUp(URL) { 5 day = new Date(); 6 id = day.getTime(); 7 eval("page = window.open(URL, 'xqdoccode', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=400,left = 412,top = 334');") 8 page.focus(); 9 }
42 function doPopups() 43 { 44 if (document.getElementsByTagName) 45 { 46 var links = document.getElementsByTagName("a"); 47 for (var i = 0; i < links.length; i++) 48 { 49 if (links[i].className.match("popup")) 50 { 51 links[i].onclick = function() 52 { 53 return popSecondary(this.getAttribute("href")); 54 }; 55 } 56 } 57 } 58 }
81 private static onDocumentReady(callback: Function) { 82 jQuery(document).ready(callback); 83 }
26 function openPopup (href) { 27 if (window.popup && !window.closed) window.popup.close(); 28 var width = 1000; 29 var height = 800; 30 var x = (screen.width / 2) - (width / 2); 31 var y = (screen.height / 2) - (height / 2); 32 var win = new BrowserWindow({ 33 width, height, x, y, 34 center: true, 35 autoHideMenuBar: true, 36 webPreferences: { 37 webSecurity: true, 38 nodeIntegration: false, 39 plugins: true, 40 }, 41 }); 42 win.id = 'popup'; 43 win.loadURL(href); 44 window.win = win; 45 /* 46 nw.Window.open('app/popup.html?href=' + encodeURIComponent(href), {x: left, y: top, width: w, height: h}, 47 function (win) { 48 window.popup = win.window; 49 50 // do not open the window and open it in external browser 51 win.on('new-win-policy', function (frame, url, policy) { 52 policy.ignore(); 53 nw.Shell.openExternal(url); 54 }); 55 56 win.window.id = 'popup'; 57 win.window.config = App.config; 58 win.focus(); 59 }); 60 */ 61 }
37 function popupwin(content) { 38 op = window.open(); 39 op.document.open('text/plain'); 40 op.document.write(content); 41 op.document.close(); 42 }