Skip to content

Commit 98d168e

Browse files
author
bmatupas
committed
Added slides.
1 parent 32bb1d0 commit 98d168e

File tree

117 files changed

+354
-851
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+354
-851
lines changed

.idea/.name

-1
This file was deleted.

.idea/angularjs-basics.iml

-10
This file was deleted.

.idea/encodings.xml

-5
This file was deleted.

.idea/misc.xml

-5
This file was deleted.

.idea/modules.xml

-10
This file was deleted.

.idea/scopes/scope_settings.xml

-5
This file was deleted.

.idea/vcs.xml

-7
This file was deleted.

.idea/workspace.xml

-487
This file was deleted.

app.yaml

-14
This file was deleted.
File renamed without changes.
File renamed without changes.

src/css/reveal.css css/reveal.css

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/css/theme/simple.css css/theme/simple.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
22
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
33
/**
4-
* A simple theme for reveal.js presentations, similar
4+
* A simple theme for reveal.js presentation, similar
55
* to the default theme. The accent color is darkblue.
66
*
77
* This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

demos/configs/app.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var SampleApp = angular.module('SampleApp', ['ngRoute']);
2+
3+
SampleApp.config(function($routeProvider) {
4+
$routeProvider
5+
.when('/', {
6+
controller:'TopicController',
7+
templateUrl:'views/home.html'
8+
})
9+
.when('/topic/:topicId', {
10+
controller:'TopicController',
11+
templateUrl:'views/topic.html'
12+
})
13+
14+
// Default
15+
.otherwise({
16+
redirectTo:'/'
17+
});
18+
});

demos/controllers/topic.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
SampleApp.controller('TopicController', function( $scope, $http, $routeParams ){
2+
3+
$scope.topic = null;
4+
5+
6+
$http({
7+
url: "json/topics.json",
8+
method: "GET"
9+
}).success(function( topics ){
10+
$scope.topics = topics;
11+
12+
for( var i = 0; i < $scope.topics.length; i++ ) {
13+
if( $scope.topics[i].name.toLowerCase() == $routeParams.topicId ) {
14+
$scope.topic = $scope.topics[i];
15+
}
16+
}
17+
});
18+
})
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.container {
22
margin-top: 40px;
3+
}
4+
5+
img {
6+
width: 100%;
37
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/demos/index.html demos/index.html

+5-16
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,11 @@
1919
<link href="css/main.css" rel="stylesheet">
2020
</head>
2121
<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>
22+
<ng-view></ng-view>
23+
24+
25+
<script src="libs/angularjs/angular.min.js"></script>
26+
<script src="libs/angularjs/angular-route.min.js"></script>
3827
<script src="libs/jquery-1.11.1.min.js"></script>
3928
<script src="libs/bootstrap-3.2.0/js/bootstrap.min.js"></script>
4029

File renamed without changes.

demos/libs/angularjs/angular-resource.min.js

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

demos/libs/angularjs/angular-route.min.js

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

0 commit comments

Comments
 (0)