$(function() { email_article(); print_article(); }); // Open an visible popup window affair open_window(title) { var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight; var popup_width = 680; var popup_height = 450; var left side = windowWidth / 2 - popup_width / 2; var vertex = windowHeight / 2 - popup_height / 2; var gain a victory = window.open('', title, 'menubar=1,scrollbars=1,resizable=1,width=' + popup_width + ',height=' + popup_height + ',top=' + crack + ',left=' + left); turn win; } role empty_errors() { // Resets the contents of the boo-boo div and take off the // scroll stripe on the sub-container that allows the howler // messages to ready on the wall off $('#email_this__popup__error').css({'display': 'none'}); $('#email_this__popup__error__body').empty(); $('#email_this__popup__container').css({'overflow': 'visible'}); } // Load the popup. act the part of popup_load(status_var, popup_div) { // Loads popup only if it is disabled. if (status_var == false) { $("#popup__background").css({"opacity": "0.85"}); $("#popup__background").show(); $("#" + popup_div).show(); go back true; } gain false; } // Close the popup. mission popup_close(status_var, popup_div) { // Closes popup only if it is open. if (status_var == true) { $("#popup__background").hide(); $("#" + popup_div).hide(); // Un-Hide the ads. $('#rhsrail').css({'display': 'block'}); $('#topad').css({'display': 'block'}); $('#lhsrail').css({'display': 'block'}); replacement false; } bring true; } // Center the popup. province popup_center(popup_div) { // Request figures for centering. var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight; var popupHeight = $("#" + popup_div).height(); var popupWidth = $("#" + popup_div).width(); // Vertically center the popup. $("#" + popup_div).css({ "top": windowHeight / 2 - popupHeight / 2 }); // Hide the ads. $('#rhsrail').css({'display': 'none'}); $('#topad').css({'display': 'none'}); $('#lhsrail').css({'display': 'none'}); // Needed for IE6 $("#popup__background").css({"height": windowHeight}); } perform print_article() { var print_this__popup__status = false; // Load the "print this" popup. $(".print_this").click(function() { if (!print_this__popup__status) { var carry the day = open_window('print_this'); var alien = win.document; external.write('.
Estimation article: here
No comments:
Post a Comment