/
sample3.html
70 lines (61 loc) · 2.09 KB
/
sample3.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>lightsource sandbox</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<style>
body {
font-family: helvetica;
font-size: 14px;
}
#cy {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 999;
}
h1 {
opacity: 0.5;
font-size: 1em;
}
</style>
<!--<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<script src="https://cdn.rawgit.com/cpettitt/dagre/v0.7.4/dist/dagre.min.js"></script>
<script src="https://cdn.rawgit.com/cytoscape/cytoscape.js-dagre/1.1.2/cytoscape-dagre.js"></script>-->
<script src="lib/js/babel.min.js"></script>
<script src="lib/js/jquery.min.js"></script>
<script src="dist/lightservice.min.js"> </script>
<script src="dist/lightservice-timemachine.min.js"></script>
<script src="dist/visual.lightservice.min.js"></script>
</head>
<body>
<div id="cy"></div>
<code id="definition"></code>
<script>
light.service("hello", function () {
throw "hi";
});
light.service("world", function () {
return "one";
});
light(function () {
this.system.startRecording();
this.service.hello().world();
});
light(function () {
this.system.stopRecording();
this.service.visual({
layout: {
name: "circle"
}
});
});
</script>
</body>
</html>