11<!DOCTYPE html>
22< html lang ="en " dir ="ltr ">
3-
4- < head >
5- < meta charset ="UTF-8 " />
6- < title > Content - Auto Offset</ title >
7- < meta
8- name ="viewport "
9- content ="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no "
10- />
11- < link href ="../../../../../css/ionic.bundle.css " rel ="stylesheet " />
12- < link href ="../../../../../scripts/testing/styles.css " rel ="stylesheet " />
13- < script src ="../../../../../scripts/testing/scripts.js "> </ script >
14- < script nomodule src ="../../../../../dist/ionic/ionic.js "> </ script >
15- < script type ="module " src ="../../../../../dist/ionic/ionic.esm.js "> </ script >
16- </ head >
17-
18- < body >
19- < ion-app mode ="ios ">
20- < ion-header translucent >
21- < ion-toolbar >
22- < ion-title > Auto Offset Test</ ion-title >
23- </ ion-toolbar >
24- < ion-toolbar id ="extra-header-content " style ="display: none ">
25- < ion-searchbar label ="dynamic "> </ ion-searchbar >
26- </ ion-toolbar >
27- </ ion-header >
28-
29- < ion-content fullscreen style ="--background: blue ">
30- < button id ="expand-header-btn "> Expand Header</ button >
31- < br > < br >
32- < button id ="expand-footer-btn "> Expand Footer</ button >
33-
34- </ ion-content >
35-
36- < ion-footer translucent >
37- < ion-toolbar id ="extra-footer-content " style ="display: none ">
38- < div class ="ion-padding "> Expanded Footer Area</ div >
39- </ ion-toolbar >
40- < ion-toolbar >
41- < ion-title > Footer</ ion-title >
42- </ ion-toolbar >
3+ < head >
4+ < meta charset ="UTF-8 " />
5+ < title > Content - Auto Offset</ title >
6+ < meta
7+ name ="viewport "
8+ content ="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no "
9+ />
10+ < link href ="../../../../../css/ionic.bundle.css " rel ="stylesheet " />
11+ < link href ="../../../../../scripts/testing/styles.css " rel ="stylesheet " />
12+ < script src ="../../../../../scripts/testing/scripts.js "> </ script >
13+ < script nomodule src ="../../../../../dist/ionic/ionic.js "> </ script >
14+ < script type ="module " src ="../../../../../dist/ionic/ionic.esm.js "> </ script >
15+ </ head >
16+
17+ < body >
18+ < ion-app mode ="ios ">
19+ < ion-header translucent >
20+ < ion-toolbar >
21+ < ion-title > Auto Offset Test</ ion-title >
22+ </ ion-toolbar >
23+ < ion-toolbar id ="extra-header-content " style ="display: none ">
24+ < ion-searchbar label ="dynamic "> </ ion-searchbar >
25+ </ ion-toolbar >
26+ </ ion-header >
27+
28+ < ion-content fullscreen style ="--background: blue ">
29+ < button id ="expand-header-btn "> Expand Header</ button >
30+ < br /> < br />
31+ < button id ="expand-footer-btn "> Expand Footer</ button >
32+ </ ion-content >
33+
34+ < ion-footer translucent >
35+ < ion-toolbar id ="extra-footer-content " style ="display: none ">
36+ < div class ="ion-padding "> Expanded Footer Area</ div >
37+ </ ion-toolbar >
38+ < ion-toolbar >
39+ < ion-title > Footer</ ion-title >
40+ </ ion-toolbar >
4341 </ ion-footer >
44- </ ion-app >
45- < script >
42+ </ ion-app >
43+ < script >
4644 const headerBtn = document . getElementById ( 'expand-header-btn' ) ;
4745 const footerBtn = document . getElementById ( 'expand-footer-btn' ) ;
4846 const extraHeaderToolBar = document . getElementById ( 'extra-header-content' ) ;
4947 const extraFooterToolbar = document . getElementById ( 'extra-footer-content' ) ;
5048
5149 headerBtn . addEventListener ( 'click' , ( ) => {
52- extraHeaderToolBar . style . display = " flex" ;
50+ extraHeaderToolBar . style . display = ' flex' ;
5351 } ) ;
5452
5553 footerBtn . addEventListener ( 'click' , ( ) => {
56- extraFooterToolbar . style . display = " flex" ;
54+ extraFooterToolbar . style . display = ' flex' ;
5755 } ) ;
5856 </ script >
59- </ body >
60-
61- </ html >
57+ </ body >
58+ </ html >
0 commit comments