|
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | | - <title>Title</title> |
| 5 | + <title>Dynatrace Integration</title> |
| 6 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> |
6 | 7 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> |
7 | 8 | <script type="text/javascript"> |
8 | 9 | /* |
|
84 | 85 | </head> |
85 | 86 | <body> |
86 | 87 |
|
87 | | -<div id="loaded" class="hidden"> |
88 | | - <div id="logged-out"> |
89 | | - <button id="js-login"> |
90 | | - Login |
91 | | - </button> |
92 | | - </div> |
93 | | - <div class="hidden" id="logged-in"> |
94 | | - <div> |
95 | | - <button id="js-toggle-trait"> |
96 | | - Toggle user trait |
97 | | - </button> |
98 | | - <button id="js-evaluate-flag"> |
99 | | - Evaluate Flag |
| 88 | +<div class="container mt-4"> |
| 89 | + <div id="loaded" class="hidden"> |
| 90 | + <div id="logged-out"> |
| 91 | + <button class="btn btn-primary" style="margin-bottom: 10px;" id="js-login"> |
| 92 | + Login |
100 | 93 | </button> |
101 | | - <button id="js-evaluate-config"> |
102 | | - Evaluate Config |
| 94 | + </div> |
| 95 | + <div class="hidden" id="logged-in"> |
| 96 | + <div style="display: none"> |
| 97 | + <button id="js-toggle-trait"> |
| 98 | + Toggle user trait |
| 99 | + </button> |
| 100 | + <button id="js-evaluate-flag"> |
| 101 | + Evaluate Flag |
| 102 | + </button> |
| 103 | + <button id="js-evaluate-config"> |
| 104 | + Evaluate Config |
| 105 | + </button> |
| 106 | + </div> |
| 107 | + <button class="btn btn-danger" style="margin-bottom: 10px;" id="js-logout"> |
| 108 | + Logout |
103 | 109 | </button> |
104 | | - <div> |
105 | | - example_trait: <span id="js-example-trait"></span> |
| 110 | + <div style="margin-bottom: 20px;"> |
| 111 | + <h3>Favourite colour trait</h3> <strong id="js-example-trait"></strong><br/> |
106 | 112 | </div> |
107 | 113 | </div> |
108 | | - <button id="js-logout"> |
109 | | - Logout |
110 | | - </button> |
| 114 | + <div id="js-data"></div> |
| 115 | + </div> |
| 116 | + <div id="loading"> |
| 117 | + Loading |
111 | 118 | </div> |
112 | | - <h3>Flagsmith Data</h3> |
113 | | - <div id="js-data"></div> |
114 | | -</div> |
115 | | -<div id="loading"> |
116 | | - Loading |
117 | 119 | </div> |
118 | 120 | <script src="../../flagsmith/index.js"></script> |
119 | 121 | <script src="./main.js"></script> |
|
0 commit comments