This repository was archived by the owner on Sep 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 191
/
Copy pathdemo2-touch-jquery.html
68 lines (63 loc) · 1.85 KB
/
demo2-touch-jquery.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
<!DOCTYPE html>
<html ng-app="x">
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Same as demo 2 but has larger buttons for testing using touch</title>
<!-- Le css -->
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../src/ui-layout.css"/>
<!-- Le javascript -->
<script type="application/javascript" src="../bower_components/jquery/dist/jquery.js"></script>
<script type="application/javascript" src="../bower_components/angular/angular.js"></script>
<script type="application/javascript" src="../src/ui-layout.js"></script>
<script type="application/javascript">
var app = angular.module('x', ['ui.layout']);
app.controller('DemoController', function($scope) {
$scope.config = {
flow: 'column'
}
});
</script>
<style>
.red {
background-color: red;
}
.green {
background-color: green;
}
.ui-splitbar {
background-color: red;
}
.ui-layout-container {
display: inline-block;
}
a {
padding: 10px;
background-color: green;
}
</style>
</head>
<body ng-controller="DemoController">
<div ui-layout="config" options="{ dividerSize : '30' }">
<div ui-layout-container max-size="50%">
One
<br/>
<button ng-click="updateDisplay()">Update Display</button>
</div>
<div ui-layout-container collapsed="false">Two</div>
<div ui-layout-container>
<!--Three-->
<div ui-layout="{ flow:'row', dividerSize:'32' }">
<div ui-layout-container>Three</div>
<div ui-layout-container>
<div ng-include="demo/testinclude.html"></div>
</div>
</div>
</div>
<div ui-layout-container>
Four
</div>
</div>
</body>
</html>