forked from opening-hours/opening_hours.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple_index.html
26 lines (24 loc) · 913 Bytes
/
simple_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
<!DOCTYPE html>
<html>
<head><!-- {{{ -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, width=device-width">
<title>Simple page using opening_hours.js</title>
<!-- Javascript {{{ -->
<script type="text/javascript" src="opening_hours+deps.js"></script>
<!-- }}} -->
</head> <!-- }}} -->
<body><!-- {{{ -->
<h1>Nothing to see here, open a debug console in your browser to see the interesting stuff.</h1>
<script type="text/javascript">
var opening_hours = require('opening_hours');
var oh = new opening_hours('do', {}, { 'locale': 'de' });
var prettified_value = oh.prettifyValue({
conf: { locale: 'de' },
});
console.log(prettified_value);
console.log(JSON.stringify(oh.getWarnings(), null, ' '));
</script>
</body>
</html>