-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (41 loc) · 2.41 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Multilingual Input Field Demo</title>
<link rel="stylesheet" type="text/css" href="pkg/style.css" />
<link rel="stylesheet" type="text/css" href="https://v4-alpha.getbootstrap.com/dist/css/bootstrap.min.css" />
</head>
<body>
<div style="margin:15px; text-decoration: underline;"><h1>i18nInputViewDemo</h1></div>
<p>Simple Styled Input</p>
<div placeholder="['Deutsch', 'Österreichisch', 'English-GB', 'English-US', 'NL', 'IT', 'ES', 'Einfache Sprache']" class="demo" input-class="form-control" expander-class="roundcorners" id="my_id1" width="350" languages="['de_DE','de_AT','en_EN','en_US','nl_NL','it_IT','es_ES','de_SP']" ></div>
<p>TextArea</p>
<div rows="5" placeholder="['Deutsch', 'Österreichisch', 'English-GB', 'English-US', 'NL', 'IT', 'ES', 'Einfache Sprache']" class="demo" input-class="form-control" expander-class="roundcorners" id="my_id_area" width="350" languages="['de_DE','de_AT','en_EN','en_US','nl_NL','it_IT','es_ES','de_SP']" ></div>
<div style="border: 1px solid #ccc; padding-top: 20px; padding-bottom: 20px; margin: 45px 15px 15px 15px; width: 350px;">
<p>Form Data</p>
<form method="POST" action="demo.html">
<div style="margin-left: 16px; margin-top: -10px" id="my_id2" width="250" submitOnMissing="false" languages="['de_DE','de_AT','en_EN', 'de_SP']"></div>
<input style="margin-left: 16px; margin-top:40px;" type="submit" name="submit" value="Absenden"/>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.4/js/tether.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/js/bootstrap.min.js"></script>
<script src="pkg/i18nInput.js"></script>
<script>
$(document).ready(function () {
//import i18nInputView from 'dist/i18nInput';
//var i18nInput = new i18nInputView(['de_DE, en_EN, fr_FR, de SP']);
i18n("my_id1");
i18n("my_id_area");
i18n("my_id2");
$("#my_id2").registerFormIncompleteHandler(function() {
alert('Please fill in all languages!');
});
});
</script>
</body>
</html>