Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
f08cd419
Commit
f08cd419
authored
Mar 28, 2017
by
Open Source Developer
Browse files
tran
parent
12d749f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/app.settings.ts
View file @
f08cd419
export
const
API_ENDPOINT
=
'
http://localhost/
drupal-8.2.6
'
;
export
const
API_ENDPOINT
=
'
http://localhost/
angular/eepal-front
'
;
export
class
AppSettings
{
public
static
get
API_ENDPOINT
():
string
{
return
'
http://localhost/
drupal-8.2.6
'
;
return
'
http://localhost/
angular/eepal-front
'
;
}
}
\ No newline at end of file
source/components/student-application-form/submitedstudent.preview.ts
View file @
f08cd419
...
...
@@ -12,7 +12,7 @@ import { IAppState } from '../../store/store';
import
{
ILoginInfo
}
from
'
../../store/logininfo/logininfo.types
'
;
import
{
Router
,
ActivatedRoute
,
Params
}
from
'
@angular/router
'
;
import
{
BehaviorSubject
,
Subscription
}
from
'
rxjs/Rx
'
;
import
*
as
html2canvas
from
"
html2canvas
"
...
...
@@ -87,13 +87,7 @@ import * as html2canvas from "html2canvas"
createPdf
()
{
html2canvas
(
document
.
getElementById
(
"
target
"
)).
then
(
function
(
canvas
)
{
var
img
=
canvas
.
toDataURL
();
var
doc
=
new
jsPDF
(
'
p
'
,
'
mm
'
);
doc
.
addImage
(
img
,
'
PNG
'
,
10
,
10
);
doc
.
save
(
'
applications.pdf
'
);
});
}
...
...
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