Skip to content

Commit

Permalink
more stuff done
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarFloss committed Jul 24, 2017
1 parent bbc85c4 commit c9683f1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
Binary file added github-images/podcast-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion node_modules/angularjs-slider/dist/rzslider.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion saved-podcasts.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

</head>
<body>
<div id="main-containter" ng-controller="podcast-view" ng-show="open">
<div tabindex="0" id="main-containter" ng-keydown="onKeyDown($event)" ng-controller="podcast-view" ng-show="open">
<div id="podcast-stuff">
<img id="podcast-exit" ng-src="./res/podcast-exit-icon.png" ng-click="open=false"></img>
<div id="overlay" ng-mouseenter="blur = 'blur'; visible = 'visible'" ng-mouseleave="blur = 'no-blur'; visible = 'invisible'">
Expand Down
12 changes: 8 additions & 4 deletions src/scripts/ng-stuff.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,16 @@ angular.module('main',['ngAnimate','rzModule'])
$scope.description = arg.description;
$scope.open = true;
$scope.entries = arg.entries;



angular.element(document.querySelector("#main-containter")).tabindex = 0;


});

$scope.onKeyDown = function(e){
if(e.key == "Escape")
$scope.open = false;
}

$scope.removeClicked = function(name){
$scope.open = false;
$rootScope.$broadcast('remove-item',name);
Expand Down Expand Up @@ -344,4 +348,4 @@ angular.module('main',['ngAnimate','rzModule'])
}
}
}
});
})
7 changes: 4 additions & 3 deletions src/styles/main-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ body{
width: 30%;
height: 100%;
order: 2;
flex-grow: 0;
flex-grow: 1;
position: fixed;
right: 0;
}
Expand Down Expand Up @@ -280,7 +280,7 @@ body{
padding: 15px;
width: 100%;
order: 1;
flex-grow: 0;
flex-grow: 1;
}


Expand All @@ -292,9 +292,10 @@ body{
}

#now-playing-name{
flex-grow: 10;
width: 70%;
font-size: 10pt;
font-weight: bold;
/*background-color: red;*/
font-family: quicksand;
}

Expand Down
2 changes: 1 addition & 1 deletion src/styles/podcast-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

#podcast-view-title{
float: left;
font-size: 15pt;
font-size: 20pt;
font-weight: bold;
width: auto;
float: left;
Expand Down

0 comments on commit c9683f1

Please sign in to comment.