Skip to content

Commit

Permalink
Added query param radiator=true that removes header and footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsyrjala committed Nov 6, 2014
1 parent 78eb3c1 commit 61f5968
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Add your site or application content here -->
<div class="container-fluid">
<header ng-controller="NaviCtrl" ng-hide="radiator" class="container-fluid">
<div class="row">
<div class="col-lg-4 col-lg-offset-1">
<a ng-href="#"><img src="images/nflow_logo.svg" width="211" height="113" alt="nFlow"></a>
Expand All @@ -39,22 +38,24 @@
<div class="row">
<hr>
</div>
</div>
</header>

<div class="container">
<div ng-view=""></div>
<div class="container">
<div ng-view="">
<!-- Add your site or application content here -->
</div>
<div id="canvas"></div>
</div>

<div class="footer">
<footer ng-controller="NaviCtrl" ng-hide="radiator" class="footer">
<div class="container-fluid">
<div class="row">
<div class="col-lg-4 col-lg-offset-1">
<p><span class="glyphicon glyphicon-copyright-mark"></span> 2014 Nitor Creations</p>
</div>
</div>
</div>
</div>
</footer>

<!-- build:js(.) scripts/oldieshim.js -->
<!--[if lt IE 9]>
Expand Down
4 changes: 4 additions & 0 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ angular
return $rootScope.activeTab === tab;
};
})
.controller('NaviCtrl', function($scope, $location) {
// nope, $routeParams.radiator wont work here
$scope.radiator = !!$location.search().radiator;
})
.filter('reverse', function() {
return function(items) {
if(!items) {
Expand Down

0 comments on commit 61f5968

Please sign in to comment.