|
218 | 218 |
|
219 | 219 | <!-- Demo Code -->
|
220 | 220 | <script type="text/javascript">
|
221 |
| - /* eslint-env browser, jquery */ |
222 |
| - /* globals PNotify */ |
223 | 221 | window.addEventListener('DOMContentLoaded', () => {
|
224 | 222 | // ---
|
225 | 223 | // Set defaults.
|
@@ -523,8 +521,6 @@ <h5 class="card-header bg-dark text-white">Choose the Styling</h5>
|
523 | 521 | >
|
524 | 522 | </div>
|
525 | 523 | <script type="text/javascript">
|
526 |
| - /* eslint-env browser, jquery */ |
527 |
| - /* globals PNotify */ |
528 | 524 | window.addEventListener('DOMContentLoaded', () => {
|
529 | 525 | document
|
530 | 526 | .getElementById('style-brighttheme')
|
@@ -1253,8 +1249,6 @@ <h5 class="mb-0">
|
1253 | 1249 | Max Text Height
|
1254 | 1250 | </button>
|
1255 | 1251 | <script type="text/javascript">
|
1256 |
| - /* eslint-env browser, jquery */ |
1257 |
| - /* globals PNotify */ |
1258 | 1252 | window.showRich = function showRich() {
|
1259 | 1253 | PNotify.notice({
|
1260 | 1254 | title:
|
@@ -1300,8 +1294,6 @@ <h5 class="mb-0">
|
1300 | 1294 | </script>
|
1301 | 1295 | </div>
|
1302 | 1296 | <script type="text/javascript">
|
1303 |
| - /* eslint-env browser, jquery */ |
1304 |
| - /* globals PNotify */ |
1305 | 1297 | window.dynNotice = function dynNotice() {
|
1306 | 1298 | let percent = 0;
|
1307 | 1299 | const notice = PNotify.info({
|
@@ -1667,8 +1659,6 @@ <h5 class="card-header">
|
1667 | 1659 | Notice to Error to Success to Info
|
1668 | 1660 | </button>
|
1669 | 1661 | <script type="text/javascript">
|
1670 |
| - /* eslint-env browser, jquery */ |
1671 |
| - /* globals PNotify */ |
1672 | 1662 | window.fakeLoad = function fakeLoad() {
|
1673 | 1663 | let curValue = 1;
|
1674 | 1664 | let progress;
|
@@ -2895,8 +2885,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
2895 | 2885 | <hr />
|
2896 | 2886 | Modalish. Top Left. Moves down, then right. Pushes to stack top.<br />
|
2897 | 2887 | <script type="text/javascript">
|
2898 |
| - /* eslint-env browser, jquery */ |
2899 |
| - /* globals PNotify */ |
2900 | 2888 | window.showStackTopLeft = function showStackTopLeft(type) {
|
2901 | 2889 | if (typeof window.stackTopLeft === 'undefined') {
|
2902 | 2890 | window.stackTopLeft = new PNotify.Stack({
|
@@ -2969,8 +2957,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
2969 | 2957 | <hr />
|
2970 | 2958 | Modalish. Bottom Left. Moves right, then up. Pushes to stack top.<br />
|
2971 | 2959 | <script type="text/javascript">
|
2972 |
| - /* eslint-env browser, jquery */ |
2973 |
| - /* globals PNotify */ |
2974 | 2960 | window.showStackBottomLeft = function showStackBottomLeft(type) {
|
2975 | 2961 | if (typeof window.stackBottomLeft === 'undefined') {
|
2976 | 2962 | window.stackBottomLeft = new PNotify.Stack({
|
@@ -3044,8 +3030,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
3044 | 3030 | Modalish. Bottom Right. Moves up, then left. Pushes to stack
|
3045 | 3031 | bottom.<br />
|
3046 | 3032 | <script type="text/javascript">
|
3047 |
| - /* eslint-env browser, jquery */ |
3048 |
| - /* globals PNotify */ |
3049 | 3033 | window.showStackBottomRight = function showStackBottomRight(type) {
|
3050 | 3034 | if (typeof window.stackBottomRight === 'undefined') {
|
3051 | 3035 | window.stackBottomRight = new PNotify.Stack({
|
@@ -3116,8 +3100,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
3116 | 3100 | <hr />
|
3117 | 3101 | Modeless. Top Center. Moves down. Pushes to stack bottom.<br />
|
3118 | 3102 | <script type="text/javascript">
|
3119 |
| - /* eslint-env browser, jquery */ |
3120 |
| - /* globals PNotify */ |
3121 | 3103 | window.showStackTopCenter = function showStackTopCenter(type) {
|
3122 | 3104 | if (typeof window.stackTopCenter === 'undefined') {
|
3123 | 3105 | window.stackTopCenter = new PNotify.Stack({
|
@@ -3188,8 +3170,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
3188 | 3170 | <hr />
|
3189 | 3171 | Modal. Centered. Moves up. Pushes to stack top.<br />
|
3190 | 3172 | <script type="text/javascript">
|
3191 |
| - /* eslint-env browser, jquery */ |
3192 |
| - /* globals PNotify */ |
3193 | 3173 | window.showStackModal = function showStackModal(type) {
|
3194 | 3174 | if (typeof window.stackModal === 'undefined') {
|
3195 | 3175 | window.stackModal = new PNotify.Stack({
|
@@ -3277,8 +3257,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
3277 | 3257 | <hr />
|
3278 | 3258 | Modal. Moves down, then right. Pushes to stack bottom.<br />
|
3279 | 3259 | <script type="text/javascript">
|
3280 |
| - /* eslint-env browser, jquery */ |
3281 |
| - /* globals PNotify */ |
3282 | 3260 | window.showStackModalLeft = function showStackModalLeft(type) {
|
3283 | 3261 | if (typeof window.stackModalLeft === 'undefined') {
|
3284 | 3262 | window.stackModalLeft = new PNotify.Stack({
|
@@ -3368,8 +3346,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
3368 | 3346 | Top bar style. Modeless. Moves down, then right. Pushes to stack
|
3369 | 3347 | top.<br />
|
3370 | 3348 | <script type="text/javascript">
|
3371 |
| - /* eslint-env browser, jquery */ |
3372 |
| - /* globals PNotify */ |
3373 | 3349 | window.showStackBarTop = function showStackBarTop(type) {
|
3374 | 3350 | if (typeof window.stackBarTop === 'undefined') {
|
3375 | 3351 | window.stackBarTop = new PNotify.Stack({
|
@@ -3452,8 +3428,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
3452 | 3428 | Bottom bar style. Modalish. Moves up, then right. Pushes to stack
|
3453 | 3429 | bottom.<br />
|
3454 | 3430 | <script type="text/javascript">
|
3455 |
| - /* eslint-env browser, jquery */ |
3456 |
| - /* globals PNotify */ |
3457 | 3431 | window.showStackBarBottom = function showStackBarBottom(type) {
|
3458 | 3432 | if (typeof window.stackBarBottom === 'undefined') {
|
3459 | 3433 | window.stackBarBottom = new PNotify.Stack({
|
@@ -3532,8 +3506,6 @@ <h5 class="card-header">Examples of Custom Stacks</h5>
|
3532 | 3506 | <hr />
|
3533 | 3507 | No stack.<br />
|
3534 | 3508 | <script type="text/javascript">
|
3535 |
| - /* eslint-env browser, jquery */ |
3536 |
| - /* globals PNotify */ |
3537 | 3509 | window.addEventListener('DOMContentLoaded', () => {
|
3538 | 3510 | window.makeTooltip = function makeTooltip() {
|
3539 | 3511 | window.tooltip = PNotify.notice({
|
@@ -3576,8 +3548,6 @@ <h5 class="card-header">Stack Contexts</h5>
|
3576 | 3548 | You can specify a context element for your notices to be placed in.
|
3577 | 3549 | <hr />
|
3578 | 3550 | <script type="text/javascript">
|
3579 |
| - /* eslint-env browser, jquery */ |
3580 |
| - /* globals PNotify */ |
3581 | 3551 | window.showStackContext = function showStackContext(type, modal) {
|
3582 | 3552 | if (typeof window.stackContext === 'undefined') {
|
3583 | 3553 | window.stackContext = new PNotify.Stack({
|
@@ -3858,7 +3828,6 @@ <h2>Comments</h2>
|
3858 | 3828 | <p id="copyright">© 2011-2020 Hunter Perrin. All Rights Reserved.</p>
|
3859 | 3829 |
|
3860 | 3830 | <script type="text/javascript">
|
3861 |
| - /* eslint-env browser, jquery */ |
3862 | 3831 | window.addEventListener('DOMContentLoaded', () => {
|
3863 | 3832 | // ---
|
3864 | 3833 | // This creates all those source code view buttons.
|
@@ -3921,7 +3890,7 @@ <h2>Comments</h2>
|
3921 | 3890 | // Check if the code is calling a function. Include that function.
|
3922 | 3891 | const match = text.match(
|
3923 | 3892 | /^\s*(?:window\.)?(\w+)\s*\([^\)]*\);\s*$/
|
3924 |
| - ); // eslint-disable-line no-useless-escape |
| 3893 | + ); |
3925 | 3894 | if (match) {
|
3926 | 3895 | const fName = match[1];
|
3927 | 3896 | addPrettyCode(window[fName].toString(), sourceElement);
|
|
0 commit comments