aboutsummaryrefslogtreecommitdiff
path: root/app/index.html
blob: 4f960a63fee30658f8ff69d3399e3c45f64b7ace (plain) (blame)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>My HTML File</title>
        <link rel="stylesheet" href="css/app.css">
        <link rel="stylesheet" href="css/lbarman.css">
            <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu">

        <script type="text/javascript" src="lib/paper-full.js"></script>
        <script src="lib/angular.js"></script>
        <script src="js/app.js" ></script>
        <script src="js/filters.js" ></script>
        <script src="js/services.js" ></script>
        <script src="js/directives.js" ></script>
        <script src="js/controllers.js" ></script>
        <script src="lib/jquery-1.11.1.min.js" ></script>
        <script src="js/yt_musicsearch.js" ></script>
        
    </head>
    <body ng-app="playGraph" ng-controller="pointCtrl">

		<div id="authors">
        <p>Jakob Odersky, Nicolas Bornand, Ludovic Barman</p>
        </div>
		<div id="header"><h1>The &nbsp;<img src="img/forward.png"/><span style="color:#000">Play</span><span style="color:#09F">Graph</span> &nbsp;Project</h1></div>
		<div id="column-left">
        
        	<fieldset>
                <legend>Music search</legend>
                
            	<input type="text" name="searchValue" id="searchValue" value="Feed Me - Trichitillomania" />
            	<input name="searchButton" type="submit" value="Search" onclick="searchClicked()"/>
                
            	<div id="videoResultsDiv"></div> 
              </fieldset>
              
        
        </div>
        <div id="column-right">
              
        	<fieldset>
                <legend>TrackList :</legend>
                <div id="futurTrackListDiv">-empty</div>
              </fieldset>
        </div>
        <div id="column-middle">
        <div class="world" style="width: 100%; height: 500px;">
            <div data-pg-line data-line="line" data-list="playseq"class="line" resize></div>

            <div data-ng-repeat="point in points" data-pg-draggable="point" class="point" style="top: {{point.y}}px; left: {{point.x}}px;" data-ng-class="{selected: point.selected==true}">
                <div class="circle"></div>
                <div class="songLabel"><p>{{point.label}}</p></div>
            </div>
        </div>

        <ul>
            <li data-ng-repeat="point in points | filter:{selected:true}">{{point.x}}, {{point.y}}</li> 
            
        </ul>

        <button ng-click="foo()">Add button</button>

<!--
        <svg id="world" width="500" height="500">
            <circle data-ng-repeat="point in points" cx="{{point.x}}" cy="{{point.y}}" r="10" stroke="gray" stroke-width="2" fill="{{getColor(point)}}"></circle>
            <line data-ng-repeat="tuple in line | sliding2" x1="{{tuple[0].x}}" y1="{{tuple[0].y}}" x2="{{tuple[1].x}}" y2="{{tuple[1].y}}" style="stroke:rgb(255,0,0);stroke-width:2" />
        </svg>-->
<!--
        <a href="#" onclick="tool1.activate();">Lines</a>
        <a href="#" onclick="tool2.activate();">Clouds</a>
        <canvas id="myCanvas" resize></canvas>
        <ul>
            <li data-ng-repeat="song in playlist">
                {{song}}
            </li>
        </ul>

        <script>
        
        // Keep global references to both tools, so the HTML
        // links below can access them.
        var tool1, tool2;
        paper.setup('myCanvas');

        // Create two drawing tools.
        // tool1 will draw straight lines,
        // tool2 will draw clouds.

        // Both share the mouseDown event:
        var path;
        function onMouseDown(event) {
            path = new paper.Path();
            path.strokeColor = 'black';
            path.add(event.point);
        }

        tool1 = new paper.Tool();
        tool1.onMouseDown = onMouseDown;

        tool1.onMouseDrag = function(event) {
            path.add(event.point);
        }

        tool2 = new paper.Tool();
        tool2.minDistance = 20;
        tool2.onMouseDown = onMouseDown;

        tool2.onMouseDrag = function(event) {
            // Use the arcTo command to draw cloudy lines
            path.arcTo(event.point);
        }
        </script>
    -->
    </div>
    </body>
</html>