The 1st 1 isgoingtohave a classhereofMotileHeadersensestheheaderofourmotile, andthenwe'regoingtocreate a secondDaveandthisoneisgoingtobethebodyofourmodel.
Andthereason, as I mentionedearlier, thatwegave a whitebackgroundtoourmodelbecauseifweremovedthat, youseeareoverlayisactuallygoingtoshowthroughourmodel.
When I rebuiltthepage, whichagainthiswillonlyhappenindevelopmentnowthatwehaveallofourstylesdone, wecanactuallystartintheJavascript, butweneedtogobackintoHTMLsothatwecansetupsomeselectorsforourjobscript.
First, wewanttohave a selectiveforourclosebutton.
Soit's a dataclosebutton.
Andagain, I'm usingdataattributesherebecause I don't wanttomixourstylingclasseswithourJavascriptalsoinourbuttontoopenthemodel.
Weneedtohave a dateattributehere, andthisone's goingtobecalledmotileTarget, andthisisgoingtobe a selectorthatpointstothemotelwewanttoopen.
Inourcase, wehaveanideaofmodelheresowecanjustsayour i d ofmodel.
Andthisisjust a typicalselectorthatyouhadusedtoselectthismodel, andthat's wherewe'regoingtoputasourtarget.