Commit 7e90e5aeac3562a6156199bf7a548f84d2994404
1 parent
fbe96ab3a4
Exists in
master
try to cloak flashcard qui
Showing 2 changed files with 8 additions and 8 deletions Side-by-side Diff
scripts/HelpController.js
View file @
7e90e5a
1 | 1 | angular.module('flashy.HelpController', ['ui.router']). |
2 | 2 | |
3 | - controller('HelpController', function($scope, $state, $http, $timeout) { | |
4 | - $scope.toggleContent = function(event, index) { | |
3 | + controller('HelpController', function ($scope, $state, $http, $timeout) { | |
4 | + $scope.toggleContent = function (event, index) { | |
5 | 5 | console.log(event, index); |
6 | 6 | |
7 | 7 | if ($('#content-' + index).hasClass('open')) { // let's close it |
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | // event.currentTarget |
15 | 15 | }; |
16 | 16 | |
17 | - $scope.closeContent = function(event) { | |
17 | + $scope.closeContent = function (event) { | |
18 | 18 | |
19 | 19 | }; |
20 | 20 | |
... | ... | @@ -48,7 +48,7 @@ |
48 | 48 | }]; |
49 | 49 | |
50 | 50 | // Functions |
51 | - $scope.toggleContent = function(event, index) { | |
51 | + $scope.toggleContent = function (event, index) { | |
52 | 52 | if ($('#content-' + index).hasClass('open')) { // let's close it |
53 | 53 | // Note: 250 is duration (ms) of animation |
54 | 54 | $('#content-' + index).slideUp(250).removeClass('open'); |
55 | 55 | |
... | ... | @@ -57,13 +57,13 @@ |
57 | 57 | } |
58 | 58 | }; |
59 | 59 | |
60 | - $scope.expandAllContent = function() { | |
60 | + $scope.expandAllContent = function () { | |
61 | 61 | for (var i = 0; i < $scope.entries.length; i++) { |
62 | 62 | $('#content-' + i).slideDown(0).addClass('open'); |
63 | 63 | } |
64 | 64 | }; |
65 | 65 | |
66 | - $scope.collapseAllContent = function() { | |
66 | + $scope.collapseAllContent = function () { | |
67 | 67 | for (var i = 0; i < $scope.entries.length; i++) { |
68 | 68 | $('#content-' + i).slideUp(0).removeClass('open'); |
69 | 69 | } |
templates/study.html
View file @
7e90e5a
... | ... | @@ -47,7 +47,7 @@ |
47 | 47 | |
48 | 48 | <!-- Fetched card "quiz" --> |
49 | 49 | <!-- Modal Structure --> |
50 | -<div id="quizup--question" class="quizup modal modal-fixed-footer"> | |
50 | +<div id="quizup--question" class="quizup modal modal-fixed-footer" ng-cloak> | |
51 | 51 | <button class="btn grey lighten-2 exiter" ng-click="quizModalClose()"><i class="mdi-content-clear"></i></button> |
52 | 52 | |
53 | 53 | <form> |
... | ... | @@ -62,7 +62,7 @@ |
62 | 62 | |
63 | 63 | <div class="quizup--text-frag" ng-if="hasBlanks">{{text0}}</div> |
64 | 64 | <input ng-show="hasBlanks" id="answer" class="answer" type="text" placeholder="ANSWER" ng-init="answer=''" |
65 | - ng-model="answer"></input> | |
65 | + ng-model="answer"/> | |
66 | 66 | |
67 | 67 | <div ng-if="hasBlanks" class="quizup--text-frag">{{text1}}</div> |
68 | 68 |