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
9d157e38
Commit
9d157e38
authored
Apr 01, 2016
by
Antek Grzanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Door squeaking, removed console logs, some flags maybe? lol
parent
66566964
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
52 additions
and
26 deletions
+52
-26
index.html
service/src/main/resources/assets/index.html
+4
-9
main.css
service/src/main/resources/assets/statics/css/main.css
+14
-0
bkg.jpg
service/src/main/resources/assets/statics/img/bkg.jpg
+0
-0
door.png
service/src/main/resources/assets/statics/img/door.png
+0
-0
navigationController.js
...ces/assets/statics/js/controllers/navigationController.js
+2
-2
scoreboardController.js
...ces/assets/statics/js/controllers/scoreboardController.js
+3
-3
taskController.js
...resources/assets/statics/js/controllers/taskController.js
+3
-3
tasksController.js
...esources/assets/statics/js/controllers/tasksController.js
+1
-1
main.js
service/src/main/resources/assets/statics/js/main.js
+25
-8
No files found.
service/src/main/resources/assets/index.html
View file @
9d157e38
This diff is collapsed.
Click to expand it.
service/src/main/resources/assets/statics/css/main.css
View file @
9d157e38
body
{
background
:
url('/statics/img/bkg.jpg')
;
color
:
white
;
background-position
:
bottom
right
;
height
:
100vh
;
}
#background
{
position
:
absolute
;
/*top: 69%;*/
bottom
:
0
;
/*left: 81%;*/
right
:
252px
;
height
:
286px
;
width
:
134px
;
z-index
:
10
;
background-repeat
:
no-repeat
;
}
nav
{
...
...
service/src/main/resources/assets/statics/img/bkg.jpg
View replaced file @
66566964
View file @
9d157e38
517 KB
|
W:
|
H:
414 KB
|
W:
|
H:
2-up
Swipe
Onion skin
service/src/main/resources/assets/statics/img/door.png
0 → 100644
View file @
9d157e38
12 KB
service/src/main/resources/assets/statics/js/controllers/navigationController.js
View file @
9d157e38
...
...
@@ -9,8 +9,8 @@
$scope
.
logout
=
function
(){
NavbarService
.
setGuest
();
AuthenticationService
.
logout
(
function
(
data
){
$location
.
path
(
''
);
});
$location
.
path
(
'
/login
'
);
}
.
bind
(
this
)
);
};
$scope
.
$watch
(
function
(){
...
...
service/src/main/resources/assets/statics/js/controllers/scoreboardController.js
View file @
9d157e38
...
...
@@ -21,7 +21,7 @@
function
viewGraph
(){
$
(
'.column'
).
css
(
'height'
,
'0'
);
console
.
log
(
$scope
.
teamsScores
);
//
console.log($scope.teamsScores);
setTimeout
(
function
(){
$
(
'.column'
).
each
(
function
(){
$
(
this
).
animate
({
width
:
150
*
$
(
this
).
attr
(
'data-score'
)},
1500
);
...
...
@@ -32,9 +32,9 @@
APIProvider
.
getScores
(
function
(
data
){
console
.
log
(
'Data from server'
,
data
);
//
console.log('Data from server', data);
$scope
.
teamsScores
=
calculatePerTeam
(
data
);
console
.
log
(
'Teams scores'
,
$scope
.
teamsScores
);
//
console.log('Teams scores', $scope.teamsScores);
viewGraph
();
});
...
...
service/src/main/resources/assets/statics/js/controllers/taskController.js
View file @
9d157e38
...
...
@@ -3,9 +3,9 @@
$scope
.
submitUnknown
=
false
;
$scope
.
apiAddress
=
'http://'
+
AppSettings
.
apiAddress
;
$scope
.
selectedTaskId
=
$stateParams
.
taskLevel
;
console
.
log
(
'SELECTED TASK ID'
,
$scope
.
selectedTaskId
);
//
console.log('SELECTED TASK ID', $scope.selectedTaskId);
APIProvider
.
getTaskById
(
$scope
.
selectedTaskId
,
function
(
data
){
console
.
log
(
data
);
//
console.log(data);
$scope
.
task
=
data
;
});
$scope
.
submitFlag
=
function
(){
...
...
@@ -15,7 +15,7 @@
Materialize
.
toast
(
'Poprawna flaga! :)'
,
5000
,
'toast-success'
);
$scope
.
submitUnknown
=
false
;
}).
error
(
function
(){
console
.
log
(
"Flaga zla!"
);
//
console.log("Flaga zla!");
Materialize
.
toast
(
'Błędna flaga! :('
,
5000
,
'toast-error'
);
$scope
.
submitUnknown
=
false
;
});
...
...
service/src/main/resources/assets/statics/js/controllers/tasksController.js
View file @
9d157e38
...
...
@@ -2,7 +2,7 @@
angular
.
module
(
'ctfApp'
).
controller
(
'TasksController'
,
[
'$scope'
,
'$http'
,
'APIProvider'
,
'AppSettings'
,
function
(
$scope
,
$http
,
APIProvider
,
AppSettings
)
{
$scope
.
apiAddress
=
AppSettings
.
apiAddress
;
APIProvider
.
getTasks
(
function
(
data
){
console
.
log
(
data
);
//
console.log(data);
APIProvider
.
getMyCompletedLevelsList
(
function
(
completed
){
$
.
each
(
data
,
function
(
key
,
task
){
if
(
completed
.
indexOf
(
task
.
level
)
!==
-
1
){
...
...
service/src/main/resources/assets/statics/js/main.js
View file @
9d157e38
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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