Skip to content

Commit 32bb1d0

Browse files
author
bmatupas
committed
Slide version 1
1 parent 3884bdb commit 32bb1d0

38 files changed

+9800
-108
lines changed

.idea/workspace.xml

+292-108
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
application: angularjs-demo
2+
version: 1
3+
runtime: python27
4+
api_version: 1
5+
threadsafe: true
6+
7+
handlers:
8+
- url: (.*)/
9+
static_files: src\1/index.html
10+
upload: app
11+
12+
- url: (.*)
13+
static_files: src\1
14+
upload: app

src/demos/angular.min.js

+242
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/demos/configs/app.js

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
var SampleApp = angular.module('SampleApp', []);
2+
3+
//SampleApp.config(function($routeProvider) {
4+
// $routeProvider
5+
// // Applications
6+
// .when('/', {
7+
// controller:'LandingPageController',
8+
// templateUrl:'views/pages/landing-page.html'
9+
// })
10+
// .when('/scheduler', {
11+
// controller:'SchedulerController',
12+
// templateUrl:'views/pages/scheduler.html'
13+
// }).when('/become-codefaci', {
14+
// controller:'BecomeCodefaciController',
15+
// templateUrl:'views/pages/become-codefaci.html'
16+
// })
17+
//
18+
// // Blogs
19+
// .when('/blogs',{
20+
// templateUrl:'views/blogs/categories.html'
21+
// })
22+
// .when('/blogs/:categoryId',{
23+
// templateUrl:'views/blogs/topic-chosen.html'
24+
// }).when('/blogs/:categoryId/:blogId',{
25+
// templateUrl:'views/blogs/content.html'
26+
// })
27+
//
28+
// // Admin
29+
// .when('/admin', {
30+
// templateUrl:'admin/views/admin.html'
31+
// })
32+
//
33+
// // Default
34+
// .otherwise({
35+
// redirectTo:'/'
36+
// });
37+
//});

src/demos/controllers/topic.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SampleApp.controller('TopicController', function( $scope, $http ){
2+
3+
$http({
4+
url: "json/topics.json",
5+
method: "GET"
6+
}).success(function( topics ){
7+
$scope.topics = topics;
8+
console.log($scope.topics)
9+
});
10+
})

src/demos/css/main.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.container {
2+
margin-top: 40px;
3+
}
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
SampleApp.directive('topicThumbnail', function() {
2+
return {
3+
restrict: 'E',
4+
scope: {
5+
topic : "="
6+
},
7+
templateUrl: "views/topic-thumbnail.html",
8+
9+
link: function($scope, $element, $attribute) {
10+
11+
}
12+
}
13+
});

src/demos/images/android.png

17.6 KB
Loading

src/demos/images/angularjs.png

84.3 KB
Loading

src/demos/images/appengine.png

84.8 KB
Loading

src/demos/images/bootstrap.png

39.1 KB
Loading

src/demos/images/facebook-sdk.png

51.6 KB
Loading

src/demos/images/git.png

17.5 KB
Loading

src/demos/images/google-maps.png

257 KB
Loading

src/demos/images/html5.png

28.7 KB
Loading

src/demos/images/impact-js.png

17.3 KB
Loading

src/demos/images/java.png

33 KB
Loading

src/demos/images/javascript.png

23.7 KB
Loading

src/demos/images/jquery.png

57.6 KB
Loading

src/demos/images/php.png

47.8 KB
Loading

src/demos/images/python.png

63.8 KB
Loading

src/demos/index.html

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!DOCTYPE html>
2+
<html ng-app="SampleApp">
3+
<head lang="en">
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<title> Angular JS Sample Application </title>
8+
9+
<!-- Bootstrap -->
10+
<link href="libs/bootstrap-3.2.0/css/bootstrap.min.css" rel="stylesheet">
11+
12+
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
13+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
14+
<!--[if lt IE 9]>
15+
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
16+
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
17+
<![endif]-->
18+
19+
<link href="css/main.css" rel="stylesheet">
20+
</head>
21+
<body>
22+
<div class="container" ng-controller="TopicController">
23+
<div class="row">
24+
<div class="col-md-4">
25+
<input type="text" ng-model="searchText" class="form-control">
26+
</div>
27+
</div> <br/>
28+
29+
<div class="row">
30+
<div class="col-md-4" ng-repeat="topic in topics | filter : searchText">
31+
<topic-thumbnail topic="topic"></topic-thumbnail>
32+
</div>
33+
</div>
34+
</div>
35+
36+
37+
<script src="angular.min.js"></script>
38+
<script src="libs/jquery-1.11.1.min.js"></script>
39+
<script src="libs/bootstrap-3.2.0/js/bootstrap.min.js"></script>
40+
41+
<script src="configs/app.js"></script>
42+
43+
<script src="controllers/topic.js"></script>
44+
45+
<script src="directives/topic-thumbnails.js"></script>
46+
</body>
47+
</html>

src/demos/json/topics.json

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[
2+
{
3+
"name" : "Android",
4+
"image" : "android.png",
5+
"url" : "http://developer.android.com/"
6+
},
7+
{
8+
"name" : "AngularJS",
9+
"image" : "angularjs.png",
10+
"url" : "http://www.angularjs.org/"
11+
},
12+
{
13+
"name" : "Appengine",
14+
"image" : "appengine.png",
15+
"url" : "https://cloud.google.com/products/app-engine/"
16+
},
17+
{
18+
"name" : "Bootstrap",
19+
"image" : "bootstrap.png",
20+
"url" : "http://getbootstrap.com/"
21+
},
22+
{
23+
"name" : "Facebook SDK",
24+
"image" : "facebook-sdk.png",
25+
"url" : "https://developers.facebook.com/"
26+
},
27+
{
28+
"name" : "Git",
29+
"image" : "git.png",
30+
"url" : "http://git-scm.com/"
31+
},
32+
{
33+
"name" : "Google Maps",
34+
"image" : "google-maps.png",
35+
"url" : "https://developers.google.com/maps/"
36+
},
37+
{
38+
"name" : "HTML5",
39+
"image" : "html5.png",
40+
"url" : "http://en.wikipedia.org/wiki/HTML5"
41+
},
42+
{
43+
"name" : "ImpactJS",
44+
"image" : "impact-js.png",
45+
"url" : "http://impactjs.com/"
46+
},
47+
{
48+
"name" : "Java",
49+
"image" : "java.png",
50+
"url" : "https://www.java.com/en/"
51+
},
52+
{
53+
"name" : "JavaScript",
54+
"image" : "javascript.png",
55+
"url" : "http://en.wikipedia.org/wiki/JavaScript"
56+
},
57+
{
58+
"name" : "Jquery",
59+
"image" : "jquery.png",
60+
"url" : "http://jquery.com/"
61+
},
62+
{
63+
"name" : "PHP",
64+
"image" : "php.png",
65+
"url" : "http://php.net/"
66+
},
67+
{
68+
"name": "Python",
69+
"image": "python.png",
70+
"url": "https://www.python.org/"
71+
}
72+
]

0 commit comments

Comments
 (0)