Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e7e48710
authored
Jun 25, 2019
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added google analytics tag
parent
6cf9b378
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
sails/src/assets/app/index.html
sails/src/assets/scripts/modules/login/controllers/login.js
sails/src/assets/app/index.html
View file @
e7e48710
...
@@ -6,6 +6,18 @@
...
@@ -6,6 +6,18 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<link
rel=
"stylesheet"
href=
"css/main.css"
>
<link
rel=
"stylesheet"
href=
"css/main.css"
>
<link
rel=
"icon"
href=
"img/logo_pictogram.png"
type=
'image/png'
>
<link
rel=
"icon"
href=
"img/logo_pictogram.png"
type=
'image/png'
>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src=
"https://www.googletagmanager.com/gtag/js?id=UA-130088727-2"
></script>
<script>
window
.
dataLayer
=
window
.
dataLayer
||
[];
function
gtag
(){
dataLayer
.
push
(
arguments
);}
gtag
(
'js'
,
new
Date
());
gtag
(
'config'
,
'UA-130088727-2'
);
</script>
<script
src=
"js/libs.js"
></script>
<script
src=
"js/libs.js"
></script>
<script
src=
"js/main.js"
></script>
<script
src=
"js/main.js"
></script>
</head>
</head>
...
...
sails/src/assets/scripts/modules/login/controllers/login.js
View file @
e7e48710
...
@@ -161,6 +161,11 @@ $scope.signup = function (formName) {
...
@@ -161,6 +161,11 @@ $scope.signup = function (formName) {
.
post
(
config
.
backend
+
'/sup'
,
$scope
.
formdata
)
.
post
(
config
.
backend
+
'/sup'
,
$scope
.
formdata
)
.
success
(
function
()
{
.
success
(
function
()
{
$scope
.
slide
.
rightTo
(
'confirmation'
);
$scope
.
slide
.
rightTo
(
'confirmation'
);
window
.
dataLayer
=
window
.
dataLayer
||
[];
function
gtag
(){
dataLayer
.
push
(
arguments
);}
gtag
(
'js'
,
new
Date
());
gtag
(
'config'
,
'UA-130088727-3'
);
})
})
.
error
(
function
()
{
.
error
(
function
()
{
ngToast
.
danger
({
content
:
$translate
.
instant
(
'user_exists'
,
{
email
:
$scope
.
formdata
.
email
})
});
ngToast
.
danger
({
content
:
$translate
.
instant
(
'user_exists'
,
{
email
:
$scope
.
formdata
.
email
})
});
...
...
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