dphelper 2.0.10 → 2.0.12
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/README.md +2 -1
- package/docs/index.md +2 -1
- package/documents/TOOLS.md +4 -4
- package/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -104,7 +104,8 @@ require("dphelper");
|
|
|
104
104
|
Note: You don't need to use npm install in this case, or you will get an error.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script src="https://cdn.jsdelivr.net/npm/
|
|
107
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery@latest"></script>
|
|
108
|
+
<script src="https://cdn.jsdelivr.net/npm/dphelper@latest"></script>
|
|
108
109
|
```
|
|
109
110
|
|
|
110
111
|
## Live Demo
|
package/docs/index.md
CHANGED
|
@@ -104,7 +104,8 @@ require("dphelper");
|
|
|
104
104
|
Note: You don't need to use npm install in this case, or you will get an error.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script src="https://cdn.jsdelivr.net/npm/
|
|
107
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery@latest"></script>
|
|
108
|
+
<script src="https://cdn.jsdelivr.net/npm/dphelper@latest"></script>
|
|
108
109
|
```
|
|
109
110
|
|
|
110
111
|
## Live Demo
|
package/documents/TOOLS.md
CHANGED
|
@@ -1165,22 +1165,22 @@ dphelper.timer.percentage(start, end)
|
|
|
1165
1165
|
### Tools
|
|
1166
1166
|
|
|
1167
1167
|
```js
|
|
1168
|
-
dphelper.
|
|
1168
|
+
dphelper.tools.getip()
|
|
1169
1169
|
// Gets the IP address.
|
|
1170
1170
|
```
|
|
1171
1171
|
|
|
1172
1172
|
```js
|
|
1173
|
-
dphelper.
|
|
1173
|
+
dphelper.tools.byteSize(bytes)
|
|
1174
1174
|
// Converts bytes to a human-readable format.
|
|
1175
1175
|
```
|
|
1176
1176
|
|
|
1177
1177
|
```js
|
|
1178
|
-
dphelper.
|
|
1178
|
+
dphelper.tools.zIndex()
|
|
1179
1179
|
// Gets the z-index.
|
|
1180
1180
|
```
|
|
1181
1181
|
|
|
1182
1182
|
```js
|
|
1183
|
-
dphelper.
|
|
1183
|
+
dphelper.tools.zeroToFalse(value)
|
|
1184
1184
|
// Converts zero to false.
|
|
1185
1185
|
```
|
|
1186
1186
|
|