Skip to content

Commit 51837be

Browse files
authored
Remove outdated js-joda version from entry page
1 parent 03fb173 commit 51837be

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

index.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<!--
3-
~ @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
3+
~ @copyright (c) 2017 to present, Philipp Thuerwaechter & Pattrick Hueper
44
~ @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
55
-->
66

@@ -11,19 +11,8 @@
1111
<link rel="shortcut icon" href="favicon.ico">
1212
<link rel="stylesheet" href="bundle.css">
1313
<link rel="stylesheet" href="//code.cdn.mozilla.net/fonts/fira.css">
14-
<script src="//cdn.jsdelivr.net/npm/@js-joda/[email protected]/dist/js-joda.js"></script>
15-
<script src="//cdn.jsdelivr.net/npm/@js-joda/[email protected]/dist/js-joda-extra.js"></script>
16-
<script src="//cdn.jsdelivr.net/npm/@js-joda/[email protected]/dist/js-joda-timezone.js"></script>
17-
<script src="//cdn.jsdelivr.net/npm/@js-joda/[email protected]/dist/prebuilt/en-us/index.js"></script>
1814
<script>
19-
// copy all js-joda classes to the global scope
20-
var jsJoda = JSJoda;
21-
for(var prop in jsJoda) { window[prop] = jsJoda[prop]; }
22-
23-
console.log("Welcome to js-joda at '"+ LocalDateTime.now().toString() + "' local time.");
24-
console.log("An example with @js-joda/timezone: Its '"+ LocalDateTime.now().atZone(ZoneId.systemDefault()).toString() + "' system default timezone.");
25-
console.log("An example with @js-joda/extra: Interval of 1 minute '"+ JSJodaExtra.Interval.of(Instant.now(), Duration.ofMinutes(1)).toString() + ".");
26-
console.log("An example with @js-joda/local: ZonedDateTime with locale format en-us '"+ JSJoda.ZonedDateTime.of(2017, 1, 1, 0, 0, 0, 0, JSJoda.ZoneId.of('Europe/Berlin')).format(JSJoda.DateTimeFormatter.ofPattern('eeee MMMM dd yyyy GGGG, hh:mm:ss a zzzz, zz, OOOO \'Week: \' ww, \'Quarter: \' QQQ').withLocale(JSJodaLocale.Locale.US)) + ".");
15+
console.log("Welcome to js-joda. You can test the library in the browser console at https://js-joda.github.io/js-joda/");
2716
</script>
2817
</head>
2918
<body>

0 commit comments

Comments
 (0)