File tree 2 files changed +46
-0
lines changed
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > Modal Demos</ title >
6
+ < link href ="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css " rel ="stylesheet ">
7
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-borderless@3/borderless.css ">
8
+ < script src ="https://cdn.jsdelivr.net/npm/sweetalert2@9/dist/sweetalert2.min.js "> </ script >
9
+ < script src ="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js " defer > </ script >
10
+ < script src ="
https://cdn.jsdelivr.net/gh/alpinejs/[email protected] /dist/alpine.min.js "
defer > </ script >
11
+ < script src ="../../lib/quantimodo/quantimodo-web.js "> </ script >
12
+ < script src ="../js/ionIcons.js "> </ script >
13
+ < script src ="../js/qmLogger.js "> </ script >
14
+ < script src ="../js/qmHelpers.js "> </ script >
15
+ < script src ="../data/qmStaticData.js "> </ script >
16
+ <!-- Must come after qmHelpers because we assign to qm.staticData -->
17
+ < script src ="../js/qmChrome.js "> </ script >
18
+ </ head >
19
+ < body >
20
+ < button id ="popup-button "> Popup</ button >
21
+ < button id ="full-inbox-button "> Full Inbox</ button >
22
+ < button id ="compact-inbox-button "> Compact Inbox</ button >
23
+ < script src ="modals.js " defer > </ script >
24
+ </ body >
25
+ </ html >
Original file line number Diff line number Diff line change
1
+ $ ( document ) . ready ( function ( ) {
2
+ function swalIframeOptions ( path ) {
3
+ return {
4
+ showCancelButton : true ,
5
+ showConfirmButton : false ,
6
+ html : '<iframe width="100%" height="300" src="//web.quantimo.do/' + path + '" frameborder="0"></iframe>'
7
+ }
8
+ }
9
+ function fireIframe ( path ) {
10
+ Swal . fire ( swalIframeOptions ( path ) ) ;
11
+ }
12
+ $ ( '#popup-button' ) . click ( ( ) => {
13
+ fireIframe ( 'android_popup.html' )
14
+ } ) ;
15
+ $ ( '#full-inbox-button' ) . click ( ( ) => {
16
+ fireIframe ( '#/app/reminders-inbox' )
17
+ } ) ;
18
+ $ ( '#compact-inbox-button' ) . click ( ( ) => {
19
+ fireIframe ( '#/app/reminders-inbox-compact' )
20
+ } ) ;
21
+ } ) ;
You can’t perform that action at this time.
0 commit comments