|
@@ -1,4 +1,6 @@
|
|
|
<?php
|
|
|
+$angularSource="ajax.googleapis.com/ajax/libs/angularjs";
|
|
|
+$angularVersion="1.5.0";
|
|
|
$this->RegisterJSFile("javascript.js");
|
|
|
$this->RegisterJSFile("controllers/main.js");
|
|
|
$this->RegisterJSFile("directives/equalHeightWidth.js");
|
|
@@ -41,7 +43,8 @@ function FormatURI(URI $uri, $base=""){
|
|
|
<style media="(max-width:680px)">
|
|
|
{@CSSSmall}
|
|
|
</style>
|
|
|
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
|
|
|
+ <script src="//<?=$angularSource?>/<?=$angularVersion?>/angular.min.js"></script>
|
|
|
+ <script src="//<?=$angularSource?>/<?=$angularVersion?>/angular-animate.min.js"></script>
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
|
|
<?php foreach ($this->GetJSFiles() as $js){
|
|
@@ -51,10 +54,10 @@ function FormatURI(URI $uri, $base=""){
|
|
|
{@JavaScript}
|
|
|
</script>
|
|
|
</head>
|
|
|
- <body>
|
|
|
+ <body ng-controller="main" ng-class="{scrollLock: menuVisible}">
|
|
|
<div id="main-header">
|
|
|
<div class="header">
|
|
|
- <img src="/images/menu.svg" id="menu-button" /><?php // using php tags to remove HTML space but to keep source tidy
|
|
|
+ <img src="/images/menu.svg" id="menu-button" ng-click="menuVisible=!menuVisible" /><?php // using php tags to remove HTML space but to keep source tidy
|
|
|
?><h2><?php // Shitty, I know, but eh...
|
|
|
?><span>{@Title}</span><?php
|
|
|
$__crumbs=Breadcrumbs::GetAll();
|
|
@@ -63,7 +66,7 @@ function FormatURI(URI $uri, $base=""){
|
|
|
?></h2>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="menu">
|
|
|
+ <div id="menu" ng-show="menuVisible">
|
|
|
<div class="header">
|
|
|
<img src="/images/logo.png" /><h1>Robware</h1>
|
|
|
</div>
|
|
@@ -122,6 +125,6 @@ function FormatURI(URI $uri, $base=""){
|
|
|
</div>
|
|
|
<div id="footer">{@Footer}</div>
|
|
|
</div>
|
|
|
- <div class="backdrop"></div>
|
|
|
+ <div class="backdrop" ng-show="menuVisible" ng-click="menuVisible=false"></div>
|
|
|
</body>
|
|
|
</html>
|