yh-hiprint 2.2.10 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-field.js +4 -4
- package/font-size.js +2 -2
- package/index.js +3 -3
- package/libs/hiprint.bundle.js +1013 -1012
- package/libs/jquery.js +10621 -0
- package/libs/plugins/jquery.hiwprint.js +5 -5
- package/libs/plugins/jquery.minicolors.js +1115 -0
- package/package.json +1 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import $ from "jquery";
|
|
1
|
+
import $ from "../jquery";
|
|
2
2
|
$.fn.hiwprint = function (options) {
|
|
3
3
|
var usedFrame = document.getElementById("hiwprint_iframe");
|
|
4
4
|
if (usedFrame) usedFrame.parentNode.removeChild(usedFrame);
|
|
@@ -53,7 +53,7 @@ $.fn.hiwprint.defaults = {
|
|
|
53
53
|
styleHandler: null,
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
function performPrint(iframeElement, opt) {
|
|
56
|
+
function performPrint (iframeElement, opt) {
|
|
57
57
|
try {
|
|
58
58
|
iframeElement.focus();
|
|
59
59
|
if (isEdge() || isIE()) {
|
|
@@ -74,16 +74,16 @@ function performPrint(iframeElement, opt) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
function isIE() {
|
|
77
|
+
function isIE () {
|
|
78
78
|
return navigator.userAgent.indexOf("MSIE") !== -1 || !!document.documentMode;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
// Edge 20+
|
|
82
|
-
function isEdge() {
|
|
82
|
+
function isEdge () {
|
|
83
83
|
return !isIE() && !!window.StyleMedia;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
function loadAllImages(printDocument, callback, time) {
|
|
86
|
+
function loadAllImages (printDocument, callback, time) {
|
|
87
87
|
if (time === undefined) {
|
|
88
88
|
time = 0;
|
|
89
89
|
}
|