Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crmforms-onestartup
Overview
Overview
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
Angel Martin
crmforms-onestartup
Commits
34719ea4
Commit
34719ea4
authored
6 years ago
by
Angel MAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swal submit
parent
9461ae98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
8 deletions
+37
-8
cronometro.js
src/assets/cronometro.js
+37
-8
No files found.
src/assets/cronometro.js
View file @
34719ea4
var
start
;
var
finish
;
jQuery
(
document
).
ready
(
function
(
$
)
{
start
=
new
Date
();
});
jQuery
(
"#landing_form"
).
submit
(
function
(
$
){
finish
=
new
Date
();
jQuery
(
function
(
$
)
{
start
=
new
Date
();
$
(
'form'
).
submit
(
function
(){
finish
=
new
Date
();
var
tiempo
=
(
+
finish
-
+
start
)
/
1000
;
jQuery
(
"#landing_form"
).
append
(
'<input type="hidden" name="session_time" value="'
+
tiempo
+
'" />'
);
});
\ No newline at end of file
$
(
'input[type=submit]'
,
this
).
attr
(
'disabled'
,
'disabled'
);
swal
({
text
:
"Espera por favor, estamos validando tus datos de registro..."
,
icon
:
"http://www.hullvanhire.co.uk/public/themes/vanhire/images/loading.gif"
,
button
:
false
,
closeOnEsc
:
false
,
closeOnClickOutside
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
false
});
$
(
'body'
).
keypress
(
function
(
event
){
if
(
event
.
keyCode
==
10
||
event
.
keyCode
==
13
)
swal
({
text
:
"Espera por favor, estamos validando tus datos de registro..."
,
icon
:
"http://www.hullvanhire.co.uk/public/themes/vanhire/images/loading.gif"
,
button
:
false
,
closeOnEsc
:
false
,
closeOnClickOutside
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
false
});
});
});
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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