mirror of
https://github.com/ysoftdevs/pf2015.git
synced 2026-03-30 14:02:00 +02:00
remove debug messages, clean up
This commit is contained in:
@@ -75,7 +75,7 @@ BODY, HTML {
|
|||||||
margin-top: 15%;
|
margin-top: 15%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#levelComplete {
|
.levelComplete {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
background:rgba(0,0,0,0.7);
|
background:rgba(0,0,0,0.7);
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Level complete panel -->
|
<!-- Level complete panel -->
|
||||||
<div id="levelComplete" ng-controller="LevelCompleteController" ng-show="isLevelCompleteVisible">
|
<div class="levelComplete" ng-controller="LevelCompleteController" ng-show="isLevelCompleteVisible">
|
||||||
<div id="congratulation">Congratulations!</div>
|
<div id="congratulation">Congratulations!</div>
|
||||||
<div class="levelCompleteButtons">
|
<div class="levelCompleteButtons">
|
||||||
<a class="levelButton" id="replayButton" ng-click="restartLevel()" ng-hide="isFinalScreenVisible"><i class="fa fa-repeat"></i> Play again</a>
|
<a class="levelButton" id="replayButton" ng-click="restartLevel()" ng-hide="isFinalScreenVisible"><i class="fa fa-repeat"></i> Play again</a>
|
||||||
|
|||||||
2
js/angularjs/1.3.7/angular.min.js
vendored
2
js/angularjs/1.3.7/angular.min.js
vendored
@@ -247,4 +247,4 @@ for(F=1;F<l.length;++F)m(N,l[F].label,!1);l[0].element.remove()}s(N,function(a,c
|
|||||||
M?Q[d]:d;c.push("?"===d?t:""===d?null:h(B?B:F,d,a[d]))});else{var d=M?Q[f.val()]:f.val();c="?"===d?t:""===d?null:h(B?B:F,d,a[d])}g.$setViewValue(c);p()})});g.$render=p;e.$watchCollection(P,l);e.$watchCollection(function(){var a=P(e),c;if(a&&x(a)){c=Array(a.length);for(var d=0,f=a.length;d<f;d++)c[d]=h(C,d,a[d])}else if(a)for(d in c={},a)a.hasOwnProperty(d)&&(c[d]=h(C,d,a[d]));return c},l);u&&e.$watchCollection(function(){return g.$modelValue},l)}if(l[1]){var q=l[0];l=l[1];var u=h.multiple,r=h.ngOptions,
|
M?Q[d]:d;c.push("?"===d?t:""===d?null:h(B?B:F,d,a[d]))});else{var d=M?Q[f.val()]:f.val();c="?"===d?t:""===d?null:h(B?B:F,d,a[d])}g.$setViewValue(c);p()})});g.$render=p;e.$watchCollection(P,l);e.$watchCollection(function(){var a=P(e),c;if(a&&x(a)){c=Array(a.length);for(var d=0,f=a.length;d<f;d++)c[d]=h(C,d,a[d])}else if(a)for(d in c={},a)a.hasOwnProperty(d)&&(c[d]=h(C,d,a[d]));return c},l);u&&e.$watchCollection(function(){return g.$modelValue},l)}if(l[1]){var q=l[0];l=l[1];var u=h.multiple,r=h.ngOptions,
|
||||||
z=!1,p,v=!1,w=B(Y.createElement("option")),G=B(Y.createElement("optgroup")),C=w.clone();h=0;for(var A=g.children(),H=A.length;h<H;h++)if(""===A[h].value){p=z=A.eq(h);break}q.init(l,z,C);u&&(l.$isEmpty=function(a){return!a||0===a.length});r?n(e,g,l):u?m(e,g,l):k(e,g,l,q)}}}}],Yd=["$interpolate",function(a){var c={addOption:C,removeOption:C};return{restrict:"E",priority:100,compile:function(d,e){if(D(e.value)){var f=a(d.text(),!0);f||e.$set("value",d.text())}return function(a,d,e){var k=d.parent(),
|
z=!1,p,v=!1,w=B(Y.createElement("option")),G=B(Y.createElement("optgroup")),C=w.clone();h=0;for(var A=g.children(),H=A.length;h<H;h++)if(""===A[h].value){p=z=A.eq(h);break}q.init(l,z,C);u&&(l.$isEmpty=function(a){return!a||0===a.length});r?n(e,g,l):u?m(e,g,l):k(e,g,l,q)}}}}],Yd=["$interpolate",function(a){var c={addOption:C,removeOption:C};return{restrict:"E",priority:100,compile:function(d,e){if(D(e.value)){var f=a(d.text(),!0);f||e.$set("value",d.text())}return function(a,d,e){var k=d.parent(),
|
||||||
m=k.data("$selectController")||k.parent().data("$selectController");m&&m.databound||(m=c);f?a.$watch(f,function(a,c){e.$set("value",a);c!==a&&m.removeOption(c);m.addOption(a,d)}):m.addOption(e.value,d);d.on("$destroy",function(){m.removeOption(e.value)})}}}}],Xd=da({restrict:"E",terminal:!1});M.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(Nd(),Pd(ga),B(Y).ready(function(){Jd(Y,sc)}))})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>');
|
m=k.data("$selectController")||k.parent().data("$selectController");m&&m.databound||(m=c);f?a.$watch(f,function(a,c){e.$set("value",a);c!==a&&m.removeOption(c);m.addOption(a,d)}):m.addOption(e.value,d);d.on("$destroy",function(){m.removeOption(e.value)})}}}}],Xd=da({restrict:"E",terminal:!1});M.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(Nd(),Pd(ga),B(Y).ready(function(){Jd(Y,sc)}))})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>');
|
||||||
//# sourceMappingURL=angular.min.js.map
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
angular.module('level-complete', [])
|
angular.module('level-complete', [])
|
||||||
.controller('LevelCompleteController', function($scope, $rootScope) {
|
.controller('LevelCompleteController', function($scope, $rootScope, $window) {
|
||||||
|
|
||||||
$scope.isLevelCompleteVisible = false;
|
$scope.isLevelCompleteVisible = false;
|
||||||
|
|
||||||
@@ -33,6 +33,10 @@ angular.module('level-complete', [])
|
|||||||
$scope.cancelLevel = function() {
|
$scope.cancelLevel = function() {
|
||||||
$scope.isLevelCompleteVisible = false;
|
$scope.isLevelCompleteVisible = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.openUrl = function(url) {
|
||||||
|
$window.open(url);
|
||||||
|
};
|
||||||
|
|
||||||
$rootScope.$on('completeLevel', $scope.completeLevel);
|
$rootScope.$on('completeLevel', $scope.completeLevel);
|
||||||
$rootScope.$on('cancelLevel', $scope.cancelLevel);
|
$rootScope.$on('cancelLevel', $scope.cancelLevel);
|
||||||
|
|||||||
@@ -103,20 +103,6 @@ angular.module('app', ['angular-flippy', 'level-selector', 'level-complete'])
|
|||||||
|
|
||||||
$scope.currentLevel = $scope.levels[0];
|
$scope.currentLevel = $scope.levels[0];
|
||||||
|
|
||||||
$scope.languages = {
|
|
||||||
'cs-CZ': {
|
|
||||||
title: 'Čeština'
|
|
||||||
},
|
|
||||||
'en-US': {
|
|
||||||
title: 'English'
|
|
||||||
},
|
|
||||||
'sk-SK': {
|
|
||||||
title: 'Slovenčina'
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.cards = basicCards;
|
$scope.cards = basicCards;
|
||||||
|
|
||||||
$scope.board = [];
|
$scope.board = [];
|
||||||
@@ -277,7 +263,7 @@ angular.module('app', ['angular-flippy', 'level-selector', 'level-complete'])
|
|||||||
if ($scope.areAllSelectedSame()) {
|
if ($scope.areAllSelectedSame()) {
|
||||||
$scope.setSelectionState('solved');
|
$scope.setSelectionState('solved');
|
||||||
if ($scope.isLevelComplete()) {
|
if ($scope.isLevelComplete()) {
|
||||||
$timeout($scope.completeLevel, 1000);
|
$timeout($scope.completeLevel, 3000);
|
||||||
}
|
}
|
||||||
} else if ($scope.selectionCounter == $scope.chainLength) {
|
} else if ($scope.selectionCounter == $scope.chainLength) {
|
||||||
$timeout($scope.resetSelection, 1000);
|
$timeout($scope.resetSelection, 1000);
|
||||||
|
|||||||
Reference in New Issue
Block a user