
|
function appendScript(filepath) {
if ($('head script[src="' + filepath + '"]').length > 0)
return;
var ele = document.createElement('script');
ele.setAttribute("type", "text/javascript");
ele.setAttribute("charset", "utf-8");
ele.setAttribute("src", filepath);
$('head').append(ele);
}
function appendStyle(filepath) {
if ($('head link[href="' + filepath + '"]').length > 0)
return;
var ele = document.createElement('link');
ele.setAttribute("type", "text/css");
ele.setAttribute("rel", "Stylesheet");
ele.setAttribute("href", filepath);
$('head').append(ele);
}
appendScript('/o/com.rayanehsabz.content.view/js/printThis.js?v=2');
$(".print-page").on("click", function () {
$('.content-printable').printThis({
importCSS: true,
loadCSS: "https://namazjomeh.ir/o/com.rayanehsabz.content.view/css/print.css?v=16"
});
});
کپی لینک کوتاه
لینک کپی شد!
این مطلب را در شبکه های اجتماعی بازنشر کنید :
|