Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
CTF
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grzegorz
CTF
Commits
466a3556
Commit
466a3556
authored
Apr 18, 2016
by
Antek Grzanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #100 and #96.
parent
73ef2124
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
taskController.js
...resources/assets/statics/js/controllers/taskController.js
+0
-1
tasksController.js
...esources/assets/statics/js/controllers/tasksController.js
+1
-0
task.html
service/src/main/resources/assets/task.html
+1
-1
No files found.
service/src/main/resources/assets/statics/js/controllers/taskController.js
View file @
466a3556
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
Materialize
.
toast
(
'Błędna flaga! :('
,
5000
,
'toast-error'
);
Materialize
.
toast
(
'Błędna flaga! :('
,
5000
,
'toast-error'
);
$scope
.
submitUnknown
=
false
;
$scope
.
submitUnknown
=
false
;
});
});
};
};
}]);
}]);
})();
})();
\ No newline at end of file
service/src/main/resources/assets/statics/js/controllers/tasksController.js
View file @
466a3556
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
$
.
each
(
data
,
function
(
key
){
$
.
each
(
data
,
function
(
key
){
data
[
key
].
short_description
=
data
[
key
].
description
.
split
(
" "
).
slice
(
0
,
6
).
join
(
" "
).
concat
(
"..."
);
data
[
key
].
short_description
=
data
[
key
].
description
.
split
(
" "
).
slice
(
0
,
6
).
join
(
" "
).
concat
(
"..."
);
data
[
key
].
random
=
Math
.
random
();
});
});
APIProvider
.
getMyCompletedLevelsList
(
function
(
completed
){
APIProvider
.
getMyCompletedLevelsList
(
function
(
completed
){
...
...
service/src/main/resources/assets/task.html
View file @
466a3556
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</div>
</div>
</div>
</div>
<div
class=
"col s12 m4"
style=
"text-align:center"
>
<div
class=
"col s12 m4"
style=
"text-align:center"
>
<img
class=
"responsive-img"
src=
"http://lorempixel.com/400/300/"
/>
<img
class=
"responsive-img"
src=
"http://lorempixel.com/400/300/
?{{task.random}}
"
/>
<a
class=
"waves-effect waves-light btn"
target=
"_blank"
href=
"{{apiAddress}}/task/{{task.level}}/"
<a
class=
"waves-effect waves-light btn"
target=
"_blank"
href=
"{{apiAddress}}/task/{{task.level}}/"
style=
"width:100%;margin-top:15px"
>
Otwórz stronę z zadaniem
</a>
style=
"width:100%;margin-top:15px"
>
Otwórz stronę z zadaniem
</a>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment