This repository was archived by the owner on Apr 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdemo.html
151 lines (145 loc) · 6.21 KB
/
demo.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html ng-app="asideApp">
<head>
<link data-require="bootstrap-css@3.2.0" data-semver="3.2.0" rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="src/styles/animate.css"/>
<link rel="stylesheet" href="src/styles/aside.css"/>
<style type="text/css">
/* Styles go here */
body {
padding: 30px 15px 0;
}
#downloadbtn {
margin-bottom: 10px;
}
.about-links {
color: #95a5a6;
}
.about-links a {
border-bottom: 1px dotted;
text-decoration: none;
margin-right: 15px;
}
.about-links li {line-height: 30px;}
.about-links li:hover, .about-links li:hover a { color: #666; }
.about-links .love:hover i { color: #e74c3c; }
.about-links .prospectus:hover i { color: #f39c12; }
.about-links .cypher:hover i { color: #16a085; }
.about-links .lab:hover i { color: #8e44ad; }
</style>
<script src="https://code.angularjs.org/1.6.3/angular.js"></script>
<script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-2.5.0.min.js"></script>
<script src="dist/js/angular-aside.min.js"></script>
<script>
angular.module('asideApp', ['ui.bootstrap', 'ngAside'])
.controller('MainCtrl', function($scope, $aside) {
$scope.openAside = function(position) {
$aside.open({
templateUrl: 'aside.html',
placement: position,
backdrop: true,
controller: function($scope, $uibModalInstance) {
$scope.ok = function(e) {
$uibModalInstance.close();
e.stopPropagation();
};
$scope.cancel = function(e) {
$uibModalInstance.dismiss();
e.stopPropagation();
};
}
})
}
});
</script>
<script type="text/ng-template" id="aside.html">
<div class="modal-header">
<h3 class="modal-title">ngAside</h3>
</div>
<div class="modal-body">
Look im in aside.
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="ok($event)">OK</button>
<button class="btn btn-warning" ng-click="cancel($event)">Cancel</button>
</div>
</script>
</head>
<body ng-controller="MainCtrl">
<div class="container">
<div class="jumbotron panel panel-default">
<h1>Angular Aside</h1>
<p>
Off canvas side menu to use with ui-bootstrap. Extends ui-bootstrap's $modal provider.
</p>
<p>
<a href="https://github.com/dbtek/angular-aside" class="btn btn-primary btn-lg" id="downloadbtn">
<span class="glyphicon glyphicon-download"></span> Download
</a>
<br />
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://github.com/dbtek/angular-aside" data-via="dbtek">Tweet</a>
<iframe src="http://ghbtns.com/github-btn.html?user=dbtek&repo=angular-aside&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="107" height="20"></iframe>
</p>
<div>
<ul class="text-center about-links list-inline">
<li class="love">
made with <i class="fa fa-heart"></i> by <a href="http://twitter.com/dbtek" onclick="_gaq.push(['_trackEvent', 'Outbound Link', 'View twitter account']);">@dbtek</a>
</li>
<li class="lab">
<i class="fa fa-flask"></i>
<a href="https://github.com/dbtek/angular-aside">github project</a>
</li>
<li class="cypher">
<i class="fa fa-code"></i>
<a href="http://opensource.org/licenses/MIT">license: MIT</a>
</li>
</ul>
</div>
</div>
<div class="jumbotron panel panel-default">
<h2>Demo</h2>
<p>
<span class="pull-left">
<button type="button" class="btn btn-default btn-lg" ng-click="openAside('left')">
<span class="glyphicon glyphicon-align-justify"></span> Left
</button>
<button type="button" class="btn btn-default btn-lg" ng-click="openAside('top')">
Up <span class="glyphicon glyphicon-arrow-down"></span>
</button>
</span>
<span class="pull-right">
<button type="button" class="btn btn-default btn-lg" ng-click="openAside('bottom')">
Down <span class="glyphicon glyphicon-arrow-up"></span>
</button>
<button type="button" class="btn btn-default btn-lg" ng-click="openAside('right')">
Right <span class="glyphicon glyphicon-align-justify"></span>
</button>
</span>
</p>
<div class="clearfix"></div>
<br />
<!-- plunk-hr -->
<div class="text-center">
<ins class="adsbygoogle text-center"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-7616772085785107"
data-ad-slot="4180012826"></ins>
</div>
</div>
</div>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<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','http://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46512232-6', 'auto');
ga('send', 'pageview');
</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</body>
</html>