README.md 1.22 KB
Newer Older
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
1 2 3 4 5 6 7 8 9
# iframed

The following code is used to combine Elphel's websites in a single tab of a browser. Those sites use different engines: drupal, wordpress, wikimedia, gitlab and mailing archive

## Features
* Any number of websites in one tab
* Combined search
* If enabled, inter-frame communication follows links to a site that already have a dedicated iframe

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
10 11 12 13
## Working installation

https://www.elphel.com

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
14 15 16 17 18 19 20 21 22
## Notes
* \<iframe\> tags are used
* some webservers or websites (like GitLab) must include appropriate headers in the response:
`X-frame-Options: ALLOW-FROM https://www.elphel.com/`
* Elphel's websites have special .htaccesses configuration redirecting requests from non-'elphel' domains to the iframed website: www.elphel.com.
* Individual website can be accessed through the name if the iframe which is a link

## Usage

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
23
* Provide a list of target websites in the **$TARGET_LIST** - PHP in *index.php*.
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
24
* Set order, number of columns and base width - JS part in *index.php*.
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
25
* Also edit search list in *search.php*
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
26 27 28 29 30
* (optional) To enable inter-frame links following child websites should include the following js code:
```
<script src="https://www.elphel.com/js/elphel_messenger.js"></script>
<script>ElphelMessenger.init();</script>
```