Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
internship
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Skripnikov
internship
Commits
683af40b
Commit
683af40b
authored
Jan 30, 2018
by
Alina Habibulina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timesheet form display
parent
1ce03a42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
1 deletion
+54
-1
src/main/webapp/index.html
src/main/webapp/index.html
+23
-1
src/main/webapp/js/Player.js
src/main/webapp/js/Player.js
+31
-0
No files found.
src/main/webapp/index.html
View file @
683af40b
...
...
@@ -3,9 +3,31 @@
<head
lang=
"en"
>
<meta
charset=
"UTF-8"
>
<title>
TimeSheet
</title>
<script>
FORM_PLAYER_URL_PREFIX
=
"
http:/intern-dev.arta.kz/Synergy/
"
;
</script>
<link
rel =
"stylesheet"
href =
"http://intern-dev.arta.kz/Synergy/js/form.player.css"
/>
<script
src =
"http://intern-dev.arta.kz/Synergy/js/vendor.js"
type =
"text/javascript"
></script>
<script
src =
"http://intern-dev.arta.kz/Synergy/js/form.player.js"
type =
"text/javascript"
></script>
<!-- JS script for formPlayer -->
<script
src =
"js/Player.js"
></script>
</head>
<body>
<p
id=
"welcome"
>
Start page
</p>
<div
id =
"form_player_container"
>
<div
id =
"form_player_div"
>
</div>
</div>
<!-- <form align="center">
<p><h3>Fill in the fields below: </h3>
<p><h4>Login*:
<input id = "login" type = "text" size = "20" required></h4></p>
<p><h4>Password*:
<input id = "password" type = "password" size = "20" required></h4></p>
<button type="button" align = "center" onclick = actFunc>Submit</button>
</form> -->
</body>
</html>
\ No newline at end of file
src/main/webapp/js/Player.js
0 → 100644
View file @
683af40b
'
use strict
'
;
AS
.
OPTIONS
.
locale
=
"
ru
"
;
AS
.
OPTIONS
.
coreUrl
=
"
http://intern-dev.arta.kz/Synergy/
"
;
var
portal
=
{
player
:
null
,
clearPlayer
:
function
()
{
if
(
portal
.
player
)
{
portal
.
player
.
destroy
();
}
},
createPlayer
:
function
(
formCode
){
portal
.
clearPlayer
();
portal
.
player
=
AS
.
FORMS
.
createPlayer
();
portal
.
player
.
showFormByCode
(
formCode
);
portal
.
player
.
view
.
appendTo
(
$
(
'
#form_player_div
'
));
}
};
$
(
document
).
ready
(
function
(){
AS
.
OPTIONS
.
login
=
"
intern
"
;
AS
.
OPTIONS
.
password
=
"
intern
"
;
portal
.
createPlayer
(
"
timesheet
"
);
});
\ No newline at end of file
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