forked from hhzl/Amber-ToDo-List
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
56 lines (52 loc) · 2.14 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
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en" data-framework="amber-smalltalk">
<head>
<meta charset="utf-8">
<title>Amber Smalltalk + TodoMVC</title>
<meta name="author" content="Rodrigo Bistolfi">
<!-- https://github.com/rbistolfi/Amber-Todo/blob/master/st/TodoList.st
and CSS code below
6th Jan 2012
-->
<meta name="author" content="Hannes Hirzel">
<meta name="author" content="Larry Staton Jr.">
<link rel="stylesheet" href="bower_components/todomvc-common/base.css">
<!-- Update to version Amber version 0.12.4 -->
<script type='text/javascript' src='bower_components/amber/support/requirejs/require.min.js'></script>
<script type='text/javascript' src='bower_components/amber/support/amber.js'></script>
</head>
<body>
<script type='text/javascript'>
require.config({
paths: {
'Examples': 'src', //mapping compiled .js files and smalltalk source files
director: 'bower_components/director/build'
}});
require([
'amber/devel',
'Examples/Examples-ToDo',
'Examples/Examples-ToDo-Models',
'Examples/Examples-ToDo-Views',
'Examples/Examples-ToDo-Announcements',
'Examples/Examples-ToDo-Tests',
'director/director.min'
], function (smalltalk) {
//used for all new packages in IDE
smalltalk.initialize({
'transport.defaultAmdNamespace': "Examples"
});
smalltalk.globals.TodoApp._run();
});
</script>
<button onclick="require('amber/helpers').globals.Browser._open()">Legacy IDE</button>
<button onclick="require('amber/helpers').popupHelios()">Helios IDE</button>
</body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51311201-1', 'amber-todomvc.s3-website-us-east-1.amazonaws.com');
ga('send', 'pageview');
</script>
</html>