Browse Source

Added back button on bib box web page

keplyx 4 years ago
parent
commit
819a8624c7
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      screens/AvailableRoomScreen.js

+ 8
- 1
screens/AvailableRoomScreen.js View File

@@ -35,7 +35,14 @@ export default class AvailableRoomScreen extends React.Component<Props> {
35 35
 
36 36
         this.customBibInjectedJS =
37 37
             'document.querySelector(\'head\').innerHTML += \'<meta name="viewport" content="width=device-width, initial-scale=1.0">\';' +
38
-            'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_Bib + '" type="text/css"/>\';';
38
+            'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_Bib + '" type="text/css"/>\';' +
39
+            'if ($(".hero-unit-form").length > 0 && $("#customBackButton").length === 0)' +
40
+            '$(".hero-unit-form").append("' +
41
+            '<div style=\'width: 100%; display: flex\'>' +
42
+            '<a style=\'margin: auto\' href=\'' + BIB_URL + '\'>' +
43
+            '<button id=\'customBackButton\' class=\'btn btn-primary\'>Retour</button>' +
44
+            '</a>' +
45
+            '</div>");';
39 46
     }
40 47
 
41 48
     render() {

Loading…
Cancel
Save