1818 width : 100% ;
1919 }
2020
21- .verticalLine {
22- width : 0.5px ;
21+ .split-container {
22+ display : flex;
23+ align-items : stretch;
24+ justify-content : center;
25+ width : 90% ;
26+ margin : auto;
2327 }
2428
25- body {
26- font-family : Arial, sans-serif;
27- background-color : # f4f4f9 ;
28- color : # 333 ;
29+ .container {
30+ width : 45% ;
31+ margin : 10px ;
32+ padding : 15px ;
33+ background : # fff ;
34+ border-radius : 5px ;
35+ box-sizing : border-box;
2936 }
3037
31- label {
32- display : block;
33- font-size : 14px ;
34- margin-bottom : 6px ;
35- font-weight : bold;
38+ .verticalLine {
39+ width : 0.5px ;
40+ background-color : lightgray;
3641 }
3742
3843 .apiInput {
5257 box-shadow : 0 0 5px rgba (0 , 123 , 255 , 0.5 );
5358 }
5459
55- .row {
56- margin-bottom : 30px ;
60+ @media (max-width : 768px ) {
61+ .split-container {
62+ flex-direction : column;
63+ }
64+
65+ .container {
66+ width : 100% ;
67+ margin : 10px 0 ;
68+ }
69+
70+ .verticalLine {
71+ display : none;
72+ }
73+
74+ .api-info {
75+ order : -1 ;
76+ }
77+
78+ .api-methods {
79+ order : 1 ;
80+ }
5781 }
5882
5983 # configButtons {
189213 < div style ="display: flex; flex-direction: column; align-items: center; width: 100% ">
190214 < h2 > Branch Metrics Web SDK Example</ h2 >
191215 < hr class ="lineBreak horizontalLine ">
192- < div style =" display: flex; align-items: stretch; justify-content: center; width: 90%; ">
193- < div class ="container ">
216+ < div class =" split-container ">
217+ < div class ="container api-methods ">
194218 < section >
195- < div class ="row col-lg-8 col-lg-offset-2 ">
219+ < div class ="row ">
196220 < h3 > Methods</ h3 >
197- < a > https://help.branch.io/developers-hub/docs/web-full-reference</ a >
221+ < a href =" https://help.branch.io/developers-hub/docs/web-full-reference " target =" _blank " > https://help.branch.io/developers-hub/docs/web-full-reference</ a >
198222 < hr class ="lineBreak horizontalLine ">
223+
199224 < h4 > Session</ h4 >
200225 < div class ="group ">
201226 < button class ="btn btn-info " onclick ="callData() "> .data()</ button >
202227 < button class ="btn btn-info " onclick ="callLogout() "> Logout</ button >
203228 < button class ="btn btn-info " onclick ="callFirst() "> .first()</ button >
204229 </ div >
230+
205231 < h4 > Identity</ h4 >
206232 < div class ="group ">
207233 < input class ="
example-input "
type ="
text "
id ="
identityID "
placeholder ="
[email protected] "
> 208234 < button id ="setIdentity " class ="btn btn-info " onclick ="callSetIdentity() "> Set Identity</ button >
209235 </ div >
236+
210237 < h4 > Events</ h4 >
211238 < div class ="group ">
212239 < button class ="btn btn-info " onclick ="callLogEvent('PURCHASE') "> Create Standard Event</ button >
213240 < button class ="btn btn-info " onclick ="callLogEvent('testedCustomEvent') "> Create Custom Event</ button >
214241 </ div >
242+
215243 < h4 > Sharing</ h4 >
216244 < div class ="group ">
217245 < button class ="btn btn-info " onclick ="callLink() "> Create Link</ button >
218246 < button class ="btn btn-info " onclick ="callQrCode() "> Create QrCode</ button >
219247 < button class ="btn btn-info " onclick ="callBanner() "> .banner()</ button >
220248 </ div >
249+
221250 < h4 > Tracking</ h4 >
222251 < div class ="group ">
223252 < button class ="btn btn-info " onclick ="callDisableTracking() "> Disable Tracking</ button >
224253 < button class ="btn btn-info " onclick ="callEnableTracking() "> Enable Tracking</ button >
225254 </ div >
226- </ div >
227- < div class ="row col-lg-8 col-lg-offset-2 ">
228255 < h3 > Api Settings</ h3 >
229256 < hr class ="lineBreak horizontalLine ">
230257 < div class ="group " id ="configButtons "> </ div >
@@ -241,27 +268,31 @@ <h3>Api Settings</h3>
241268 </ div >
242269 </ section >
243270 </ div >
271+
244272 < div class ="lineBreak verticalLine "> </ div >
245- < div class ="container ">
273+
274+ < div class ="container api-info ">
246275 < section >
247- < div class ="row col-lg-8 col-lg-offset-2 ">
276+ < div class ="row ">
248277 < h3 > Api Requests</ h3 >
249278 < hr class ="lineBreak horizontalLine ">
279+
250280 < h4 > Session Info
251281 < button class ="btn btn-info " onclick ="copySessionInfo() " style ="margin-left: 10px; font-size: 12px; padding: 2px 8px; cursor: pointer; ">
252282 Copy
253283 </ button >
254284 </ h4 >
255285 < pre id ="session-info "> Reading session from .init()...</ pre >
286+
256287 < h4 > Request</ h4 >
257288 < pre id ="request "> Click a button!</ pre >
289+
258290 < h4 > Response</ h4 >
259291 < pre id ="response "> Click a button!</ pre >
260292 </ div >
261293 </ section >
262294 </ div >
263295 </ div >
264-
265296 </ div >
266297 < script src ="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js "> </ script >
267298 < script src ="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js "> </ script >
0 commit comments