Skip to content

Commit

Permalink
Merge branch 'release_0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Geraldo Megale committed May 3, 2017
2 parents 6cf1a3d + 30b6dac commit a941137
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
bower_components/
coverage/
.sass-cache/
.tmp/
dist/
doc/
41 changes: 41 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "gm-back-to-top",
"homepage": "https://github.com/Megale/gm-back-to-top",
"authors": [
"Geraldo Megale <megale.petrobras.com.br>"
],
"description": "An all angular back to top button that magically appears on your screen",

"main": ["src/app/component/backToTop.component.js", "src/app/config/backToTop.module.js","src/app/config/backToTop.run.js",
"src/app/config/backToTop.controller.js", "src/css/arrowIcon.css", "src/css/backToTop.css", "src/template/backToTop.tmpl.html"],

"moduleType": [
"es6"
],

"keywords": [
"backToTop",
"angular",
"material",
"top",
"scroll",
"wheel"
],

"license": "MIT",

"dependencies": {

"angular-material": "~1.1.0",
"animate.css": "~3.4.0",
"angular": ">1.5.3"
},

"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
2 changes: 1 addition & 1 deletion src/app/component/backToTop.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.component('gmBackToTop', {

controller: 'backToTopController',
templateUrl: 'app/component/template/backToTop.tmpl.html',
templateUrl: 'src/app/template/backToTop.tmpl.html',
bindings: {
gmspeed: '<',
gmstyle: '@'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

angular
.module('backToTop')
.module('backToTop', [])
.run(runBlock);

/** @ngInject */
Expand Down
2 changes: 1 addition & 1 deletion src/app/controller/backToTop.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

angular
.module('component')
.module('backToTop')
.controller('backToTopController', function ($window, $scope, $document, $interval) {

var that = this;
Expand Down
6 changes: 6 additions & 0 deletions src/app/css/arrowIcon.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#arrowIcon
{
color: white;
padding-top: 0.5rem;
font-size: 2.5rem;
}
23 changes: 23 additions & 0 deletions src/app/css/backToTop.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.showBackToTop
{
transform:scale(1)
}


.hideBackToTop
{
transform:scale(0)
}

.md-button.md-fab.md-fab-bottom-right {

position: fixed;
background-color: rgb(255,82,82);
transition: transform 0.2s, -webkit-transform 0.2s;
}

.md-button.md-fab.md-fab-bottom-right:hover {


background-color: rgb(217,0,0);
}
3 changes: 2 additions & 1 deletion src/app/template/backToTop.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<button class = "{{$ctrl.style}}"
ng-class="$ctrl.startedScrolling" type="button" ng-click="$ctrl.goToTop()">

<md-icon md-svg-src="/assets/images/ic_keyboard_arrow_up_white_48px.svg"></md-icon>
<i id = "arrowIcon" class="material-icons">keyboard_arrow_up</i>

</button>
</div>

0 comments on commit a941137

Please sign in to comment.