You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
onclick="macOSNotif({title:'Dual button notification', subtitle:'Two buttons; dismiss and a link (opens in a new tab)', btn1Text:'Close', btn1Link:null, btn2Text:'Author', btn2Link:'https://mattcowley.co.uk/', btn2NewTab:true})">
389
405
Dual button notification
390
-
</button><br/>
406
+
</button>
407
+
<br/>
391
408
<preclass="code">macOSNotif({
392
409
title:'Dual button notification',
393
410
subtitle:'Two buttons; dismiss and a link (opens in a new tab)',
onclick="macOSNotif({title:'Main body link notification', subtitle:'The main notification body is a link (opens in a new tab)', mainLink:'https://mattcowley.co.uk/', mainLinkNewTab:true})">
417
435
Main body link notification
418
-
</button><br/>
436
+
</button>
437
+
<br/>
419
438
<preclass="code">macOSNotif({
420
439
title:'Main body link notification',
421
440
subtitle:'The main notification body is a link (opens in a new tab)',
onclick="macOSNotif({title:'Image (icon) notification with link', subtitle:'Has an icon which also has a link', imageSrc:'https://mattcowley.co.uk/me.png', imageLink:'https://mattcowley.co.uk/', imageLinkNewTab:true})">
<buttononclick="macOSNotif({title:'Sound (alert) notification', subtitle:'Requires user interaction first on some browsers', sounds:true})">
458
479
Sound (alert) notification
459
-
</button><br/>
480
+
</button>
481
+
<br/>
460
482
<preclass="code">macOSNotif({
461
483
title:'Sound (alert) notification',
462
484
subtitle:'Requires user interaction first on some browsers',
@@ -470,7 +492,8 @@ <h4>Theming Support:</h4>
470
492
<buttondata-demo-load
471
493
onclick="macOSNotif({title:'Dark mode notification', subtitle:'Emulates the macOS dark mode styling', theme:macOSNotifThemes.Dark, mainLink:'#', btn1Text:'Dark', btn1Dismiss:false, btn1Link:function(n){n.applyTheme(macOSNotifThemes.Dark);}, btn2Text:'Light', btn2Dismiss:false, btn2Link:function(n){n.applyTheme(macOSNotifThemes.Light);}})">
472
494
Dark mode notification
473
-
</button><br/>
495
+
</button>
496
+
<br/>
474
497
<preclass="code">macOSNotif({
475
498
title:'Dark mode notification',
476
499
subtitle:'Emulates the macOS dark mode styling',
@@ -488,7 +511,8 @@ <h4>Theming Support:</h4>
488
511
489
512
<buttononclick="macOSNotif({title:'Native theme notification', subtitle:'Attempts to match the theme preference of the OS', themeNative:true, mainLink:'#', btn1Text:'Close', btn1Link:null, btn2Text:'Support', btn2Link:'https://caniuse.com/prefers-color-scheme', btn2NewTab:true})">
490
513
Native OS theme notification (macOS dark mode)
491
-
</button><br/>
514
+
</button>
515
+
<br/>
492
516
<preclass="code">macOSNotif({
493
517
title:'Native theme notification',
494
518
subtitle:'Attempts to match the dark/light theme of the OS',
@@ -504,7 +528,8 @@ <h4>Theming Support:</h4>
504
528
505
529
<buttononclick="macOSNotif({title:'Info themed notification', subtitle:'Non-macOS theme to convey information', theme:macOSNotifThemes.Info, btn2Text:null})">
506
530
Info themed notification
507
-
</button><br/>
531
+
</button>
532
+
<br/>
508
533
<preclass="code">macOSNotif({
509
534
title:'Info themed notification',
510
535
subtitle:'Non-macOS theme to convey information',
@@ -516,7 +541,8 @@ <h4>Theming Support:</h4>
516
541
517
542
<buttononclick="macOSNotif({title:'Warning themed notification', subtitle:'Non-macOS theme to convey a warning message', theme:macOSNotifThemes.Warning, btn2Text:null})">
518
543
Warning themed notification
519
-
</button><br/>
544
+
</button>
545
+
<br/>
520
546
<preclass="code">macOSNotif({
521
547
title:'Warning themed notification',
522
548
subtitle:'Non-macOS theme to convey a warning message',
@@ -528,7 +554,8 @@ <h4>Theming Support:</h4>
528
554
529
555
<buttononclick="macOSNotif({title:'Danger themed notification', subtitle:'Non-macOS theme to convey an immediate danger', theme:macOSNotifThemes.Danger, btn2Text:null})">
530
556
Danger themed notification
531
-
</button><br/>
557
+
</button>
558
+
<br/>
532
559
<preclass="code">macOSNotif({
533
560
title:'Danger themed notification',
534
561
subtitle:'Non-macOS theme to convey an immediate danger',
@@ -540,7 +567,8 @@ <h4>Theming Support:</h4>
540
567
541
568
<buttononclick="macOSNotif({title:'Success themed notification', subtitle:'Non-macOS theme to convey success', theme:macOSNotifThemes.Success, btn2Text:null})">
onclick="macOSNotif({title:'Dual button notification', subtitle:'Two buttons; dismiss and a link (opens in a new tab)', btn1Text:'Close', btn1Link:null, btn2Text:'Author', btn2Link:'https://mattcowley.co.uk/', btn2NewTab:true})">
389
402
Dual button notification
390
-
</button><br/>
403
+
</button>
404
+
<br/>
391
405
<preclass="code">macOSNotif({
392
406
title:'Dual button notification',
393
407
subtitle:'Two buttons; dismiss and a link (opens in a new tab)',
@@ -403,7 +417,8 @@ options = {
403
417
<buttondata-demo-load
404
418
onclick="macOSNotif({title:'Single button notification', subtitle:'A single button to dismiss the notification', btn2Text:null})">
405
419
Single button notification
406
-
</button><br/>
420
+
</button>
421
+
<br/>
407
422
<preclass="code">macOSNotif({
408
423
title:'Single button notification',
409
424
subtitle:'A single button to dismiss the notification',
@@ -415,7 +430,8 @@ options = {
415
430
<buttondata-demo-load
416
431
onclick="macOSNotif({title:'Main body link notification', subtitle:'The main notification body is a link (opens in a new tab)', mainLink:'https://mattcowley.co.uk/', mainLinkNewTab:true})">
417
432
Main body link notification
418
-
</button><br/>
433
+
</button>
434
+
<br/>
419
435
<preclass="code">macOSNotif({
420
436
title:'Main body link notification',
421
437
subtitle:'The main notification body is a link (opens in a new tab)',
@@ -428,7 +444,8 @@ options = {
428
444
<buttondata-demo-load
429
445
onclick="macOSNotif({title:'No button notification', subtitle:'The main body link dismisses the notification', mainLink:'#', btn1Text:null})">
430
446
No button notification
431
-
</button><br/>
447
+
</button>
448
+
<br/>
432
449
<preclass="code">macOSNotif({
433
450
title:'No button notification',
434
451
subtitle:'The main body link dismisses the notification',
@@ -443,7 +460,8 @@ options = {
443
460
<buttondata-demo-load
444
461
onclick="macOSNotif({title:'Image (icon) notification with link', subtitle:'Has an icon which also has a link', imageSrc:'https://mattcowley.co.uk/me.png', imageLink:'https://mattcowley.co.uk/', imageLinkNewTab:true})">
445
462
Image (icon) notification with link
446
-
</button><br/>
463
+
</button>
464
+
<br/>
447
465
<preclass="code">macOSNotif({
448
466
title:'Image (icon) notification with link',
449
467
subtitle:'Has an icon which also has a link',
@@ -456,7 +474,8 @@ options = {
456
474
457
475
<buttononclick="macOSNotif({title:'Sound (alert) notification', subtitle:'Requires user interaction first on some browsers', sounds:true})">
458
476
Sound (alert) notification
459
-
</button><br/>
477
+
</button>
478
+
<br/>
460
479
<preclass="code">macOSNotif({
461
480
title:'Sound (alert) notification',
462
481
subtitle:'Requires user interaction first on some browsers',
@@ -470,7 +489,8 @@ options = {
470
489
<buttondata-demo-load
471
490
onclick="macOSNotif({title:'Dark mode notification', subtitle:'Emulates the macOS dark mode styling', theme:macOSNotifThemes.Dark, mainLink:'#', btn1Text:'Dark', btn1Dismiss:false, btn1Link:function(n){n.applyTheme(macOSNotifThemes.Dark);}, btn2Text:'Light', btn2Dismiss:false, btn2Link:function(n){n.applyTheme(macOSNotifThemes.Light);}})">
472
491
Dark mode notification
473
-
</button><br/>
492
+
</button>
493
+
<br/>
474
494
<preclass="code">macOSNotif({
475
495
title:'Dark mode notification',
476
496
subtitle:'Emulates the macOS dark mode styling',
@@ -488,7 +508,8 @@ options = {
488
508
489
509
<buttononclick="macOSNotif({title:'Native theme notification', subtitle:'Attempts to match the theme preference of the OS', themeNative:true, mainLink:'#', btn1Text:'Close', btn1Link:null, btn2Text:'Support', btn2Link:'https://caniuse.com/prefers-color-scheme', btn2NewTab:true})">
490
510
Native OS theme notification (macOS dark mode)
491
-
</button><br/>
511
+
</button>
512
+
<br/>
492
513
<preclass="code">macOSNotif({
493
514
title:'Native theme notification',
494
515
subtitle:'Attempts to match the dark/light theme of the OS',
@@ -504,7 +525,8 @@ options = {
504
525
505
526
<buttononclick="macOSNotif({title:'Info themed notification', subtitle:'Non-macOS theme to convey information', theme:macOSNotifThemes.Info, btn2Text:null})">
506
527
Info themed notification
507
-
</button><br/>
528
+
</button>
529
+
<br/>
508
530
<preclass="code">macOSNotif({
509
531
title:'Info themed notification',
510
532
subtitle:'Non-macOS theme to convey information',
@@ -516,7 +538,8 @@ options = {
516
538
517
539
<buttononclick="macOSNotif({title:'Warning themed notification', subtitle:'Non-macOS theme to convey a warning message', theme:macOSNotifThemes.Warning, btn2Text:null})">
518
540
Warning themed notification
519
-
</button><br/>
541
+
</button>
542
+
<br/>
520
543
<preclass="code">macOSNotif({
521
544
title:'Warning themed notification',
522
545
subtitle:'Non-macOS theme to convey a warning message',
@@ -528,7 +551,8 @@ options = {
528
551
529
552
<buttononclick="macOSNotif({title:'Danger themed notification', subtitle:'Non-macOS theme to convey an immediate danger', theme:macOSNotifThemes.Danger, btn2Text:null})">
530
553
Danger themed notification
531
-
</button><br/>
554
+
</button>
555
+
<br/>
532
556
<preclass="code">macOSNotif({
533
557
title:'Danger themed notification',
534
558
subtitle:'Non-macOS theme to convey an immediate danger',
@@ -540,7 +564,8 @@ options = {
540
564
541
565
<buttononclick="macOSNotif({title:'Success themed notification', subtitle:'Non-macOS theme to convey success', theme:macOSNotifThemes.Success, btn2Text:null})">
0 commit comments