Skip to content

Commit a3a15fa

Browse files
committed
ver 0.1.1 release
1 parent f13fbd0 commit a3a15fa

File tree

8 files changed

+46
-21
lines changed

8 files changed

+46
-21
lines changed

angular-pagePiling.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949
options.afterRender = function(){
5050
//We want to remove the HREF targets for navigation because they use hashbang
5151
//They still work without the hash though, so its all good.
52-
if (options && options.navigation) {
53-
$('#pp-nav').find('a').removeAttr('href');
54-
}
52+
$('#pp-nav').find('a').removeAttr('href');
5553
};
5654

5755
//if we are using a ui-router, we need to be able to handle anchor clicks without 'href="#thing"'
@@ -62,10 +60,6 @@
6260
return options;
6361
}
6462

65-
var watchNodes = function() {
66-
return element[0].getElementsByTagName('*').length;
67-
};
68-
6963
element.on('$destroy', destroyFullPage);
7064
}
7165
}

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-pagepiling.js",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"homepage": "http://hellsan631.github.io/angular-pagepiling.js/",
55
"authors": [
66
"Mathew Kleppin <[email protected]>"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-pagepiling.js",
33
"description": "A simple angular directive for pagePiling.js",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"main": "angular-fullpage.js",
66
"repository": {
77
"type": "git",

sample/app/app.controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
$rootScope.changePage = changePage;
1313

1414
function changePage(){
15+
console.log('sate');
1516
$state.go($rootScope.chosenPage);
1617
}
1718

sample/app/directives/angular-pagepiling.min.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949
options.afterRender = function(){
5050
//We want to remove the HREF targets for navigation because they use hashbang
5151
//They still work without the hash though, so its all good.
52-
if (options && options.navigation) {
53-
$('#pp-nav').find('a').removeAttr('href');
54-
}
52+
$('#pp-nav').find('a').removeAttr('href');
5553
};
5654

5755
//if we are using a ui-router, we need to be able to handle anchor clicks without 'href="#thing"'
@@ -62,10 +60,6 @@
6260
return options;
6361
}
6462

65-
var watchNodes = function() {
66-
return element[0].getElementsByTagName('*').length;
67-
};
68-
6963
element.on('$destroy', destroyFullPage);
7064
}
7165
}

sample/app/views/dynamic/dynamic.controller.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
DynamicController.$inject = ['$state'];
99

1010
function DynamicController($state){
11-
11+
this.mainOptions = {
12+
sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff']
13+
};
1214
}
1315

1416
})();

sample/app/views/dynamic/dynamic.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
<div page-piling options="vm.mainOptions">
3+
<div class="section">
4+
<h1>fullPage.js</h1>
5+
<p>Create Beautiful Fullscreen Scrolling Websites</p>
6+
<img src="images/fullPage.png" alt="fullPage" />
7+
</div>
8+
<div class="section">
9+
<div class="slide">
10+
<div class="intro">
11+
<h1>Create Sliders</h1>
12+
<p>Not only vertical scrolling but also horizontal scrolling. With fullPage.js you will be able to add horizontal sliders in the most simple way ever.</p>
13+
<img src="images/slider.png" alt="slider" /> <br/>
14+
<button ng-click="vm.addSlide();">Click Me to Add another Slide!</button>
15+
</div>
16+
</div>
17+
</div>
18+
<div class="section">
19+
<div class="intro">
20+
<h1>Example</h1>
21+
<p>HTML markup example to define 4 sections.</p>
22+
<img src="images/example2.png" alt="example" />
23+
</div>
24+
</div>
25+
<div class="section">
26+
<div class="intro">
27+
<h1>Working On Tablets</h1>
28+
<p>
29+
Designed to fit to different screen sizes as well as tablet and mobile devices.
30+
<br /><br /><br /><br /><br /><br />
31+
</p>
32+
</div>
33+
<img src="images/tablets.png" alt="tablets" />
34+
</div>
35+
</div>

sample/app/views/main/main.controller.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99

1010
function MainController($state){
1111

12-
var _this = this;
13-
1412
this.mainOptions = {
1513
sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'],
16-
anchors: ['firstPage', 'secondPage', '3rdPage', '4thpage', 'lastPage'],
17-
menu: '#menu'
14+
anchors: ['firstPage', 'secondPage', '3rdPage', '4thpage'],
15+
menu: '#menu',
16+
navigation: false
1817
};
1918

2019
}

0 commit comments

Comments
 (0)