-
Notifications
You must be signed in to change notification settings - Fork 6
/
viabower.html
104 lines (94 loc) · 3.18 KB
/
viabower.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<html>
<head>
<meta charset='utf-8'><!-- are there any others? -->
<title>
Run btest402.js in a browser
</title>
<!-- delay the test start -->
<script>var btest402_noautorun=true;</script>
<!-- load the test itself -->
<script src="btest402.js"></script>
<!-- mandatory -->
<script src="bower_components/requirejs/require.js"></script>
<!-- From ecma402's README.md (yes, I read it!) - 3 ways of winning.
Uncomment one of OPTION 1 OPTION 2 or OPTION 3 ( not including
the line that says "OPTION"..)
-->
<!-- ================================================================== -->
<!-- OPTION 1 - default behavior -->
<!--
<script>
// configuring RequireJS
require.config({
// where to find ecma402 package
baseUrl: "bower_components",
// which locales do I want to be available in addition to default browser locale
config: {
"ecma402/locales": /^(en|de|fr)$/
}
});
</script>
<script>
require(["ecma402/IntlShim"], function(Intl) {
runbtest();
});
</script>
-->
<!-- ================================================================== -->
<!-- OPTION 2 force intl-api=false to use the shim instead of browser support.-->
<script>
// configuring RequireJS
require.config({
// where to find ecma402 package
baseUrl: "bower_components",
config: {
"requirejs-dplugins/has": {
"intl-api": false
},
"ecma402/locales": /^(en|ja|mt)$/
}
});
</script>
<script>
require(["ecma402/IntlShim"], function(Intl) {
runbtest();
});
</script>
<!-- ================================================================== -->
<!-- OPTION 3 - load directly without the shim -->
<!--
<script>
// configuring RequireJS
require.config({
// where to find ecma402 package
baseUrl: "bower_components",
// which locales do I want to be available in addition to default browser locale
config: {
"ecma402/locales": /^(en|mt|ja)$/
}
});
require(["ecma402/Intl"], function(Intl) {
runbtest();
});
</script>
-->
<!-- ================================================================== -->
</head>
<body>
<h1 style='margin-top: 200px'>btest402.js - Basic ECMA-402
test</h1>
<p>
This is a via-bower
test. If it doesn't work, try "bower install ecma402" first. See
<a href='https://github.com/ibm-js/ecma402'>here</a>.
Results are in your console.
</p>
<h2>hey, check out your JavaScript console for the results</h2>
<a href="https://github.com/srl295/btest402"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/121cd7cbdc3e4855075ea8b558508b91ac463ac2/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png"></a>
<hr>
<p>More on
GitHub: <a href="https://github.com/srl295/btest402">srl295/btest402</a></p>
<p> Click <a href='inbrowser.html'>here</a> to try the
in-browser version.</p>
</body>
</html>