|
@@ -4,6 +4,17 @@ import * as React from 'react';
|
4
|
4
|
import WebViewScreen from "../../../components/Screens/WebViewScreen";
|
5
|
5
|
|
6
|
6
|
const URL = 'https://wiki.etud.insa-toulouse.fr/';
|
|
7
|
+
|
|
8
|
+const customPadding = (padding: string) => {
|
|
9
|
+ return (
|
|
10
|
+ "$('#p-logo-text').css('top', 10 + " + padding + ");" +
|
|
11
|
+ "$('#site-navigation h2').css('top', 10 + " + padding + ");" +
|
|
12
|
+ "$('#site-tools h2').css('top', 10 + " + padding + ");" +
|
|
13
|
+ "$('#user-tools h2').css('top', 10 + " + padding + ");"
|
|
14
|
+ );
|
|
15
|
+}
|
|
16
|
+
|
|
17
|
+
|
7
|
18
|
/**
|
8
|
19
|
* Class defining the app's available rooms screen.
|
9
|
20
|
* This screen uses a webview to render the page
|
|
@@ -12,6 +23,7 @@ export const WiketudWebsiteScreen = (props: Object) => {
|
12
|
23
|
return (
|
13
|
24
|
<WebViewScreen
|
14
|
25
|
{...props}
|
|
26
|
+ customPaddingFunction={customPadding}
|
15
|
27
|
url={URL}/>
|
16
|
28
|
);
|
17
|
29
|
};
|