You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are free to implement any HTML + CSS files to get the look and feel you want, however, do not forget to do the bridge with the core javascript part described in the next section.
5
+
6
+
## Javascript
7
+
You can use any JS you need, but to do the link with the core files, ensure you have the following directive on your main html page:
8
+
`<script src="js/locate.js"></script>`
9
+
This file must not be present, and will be copied by seeker at template startup.
10
+
11
+
The `information()` function can be called anywhere, to send browser/computer data (without location).
12
+
13
+
For the location, the `location` function must be called (on a button click or another action), it takes two parameters. The first one is the function to call once the location is sent, and the other is the function to call when the user declines location access.
14
+
```
15
+
<a class="tgme_action_button_new" onclick="locate(popup, function(){$('#change').html('Failed');});">View in Telegram</a>
16
+
```
17
+
18
+
## Template files
19
+
There is a unique `templates.json` file, add another entry to this file, at the end.
20
+
```
21
+
,
22
+
{
23
+
"name": "Your template name",
24
+
"dir_name": "folder where your template code is",
25
+
"import_file": "mod_yourtemplate"
26
+
}
27
+
```
28
+
29
+
## Python file
30
+
In the `template` folder, you will find a set of mod_*.py file, you can copy and adapt an existing one and report the name in the `templates.json` file described above.
31
+
This python file is used to replace variables, and prepare files at template startup.
32
+
33
+
## PHP file
34
+
PHP side is managed by seeker, do not include any PHP file
0 commit comments