generated from koriym/user-manual-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
27 lines (27 loc) · 956 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
layout: index
title: Ray.Di
category: Index
---
<div class="jumbotron">
<div><img src="./images/logo.svg" alt="logo" width="200"></div>
<h1 class="logotype">Ray.Di</h1>
<p>
Objects are injected from the interface, just as sun ray is injected when a window is opened.
Ray.Di is a dependency injection framework for PHP inspired Google Guice.
</p>
<a class="intl btn btn-primary" href="/manuals/1.0/en/index.html">
Overview »
</a>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
const links = document.getElementsByClassName('intl');
const locale = window.navigator.language;
if (locale.startsWith('ja')) {
for(let i = 0; i < links.length; i++) {
links[i].setAttribute('href', links[i].getAttribute('href').replace('/en/', '/ja/'));
}
}
});
</script>
</div>