Merge pull request #168 from HenryGBC/feature/new_digitalglarus
Add modal success
This commit is contained in:
commit
942b8a524e
5 changed files with 102 additions and 62 deletions
File diff suppressed because one or more lines are too long
|
@ -1,14 +1,21 @@
|
||||||
(function($){
|
(function($){
|
||||||
'use strict'; // Start of use strict
|
'use strict'; // Start of use strict
|
||||||
|
|
||||||
$(document).ready(function(){
|
|
||||||
|
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
verifiedUrl();
|
||||||
init_options_interested();
|
init_options_interested();
|
||||||
init_nav();
|
init_nav();
|
||||||
change_values();
|
change_values();
|
||||||
form_submit();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function verifiedUrl(){
|
||||||
|
if(window.location.href.indexOf('#success') > -1){
|
||||||
|
form_success();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function init_options_interested(){
|
function init_options_interested(){
|
||||||
$('.row-vms').click(function(){
|
$('.row-vms').click(function(){
|
||||||
$('.row-vms').removeClass('row-vms__active');
|
$('.row-vms').removeClass('row-vms__active');
|
||||||
|
@ -37,15 +44,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
function form_submit(){
|
function form_success(){
|
||||||
// $('#submit').click(function(){
|
$('#sucessModal').modal('show');
|
||||||
// $('.contain-form').fadeOut();
|
|
||||||
// $('.loading').fadeIn();
|
|
||||||
// setTimeout(function(){
|
|
||||||
// $('.loading').fadeOut();
|
|
||||||
// $('.succes-message').fadeIn();
|
|
||||||
// }, 3000);
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
function _calculate(numbers, price){
|
function _calculate(numbers, price){
|
||||||
$('#valueTotal').text(numbers*price*31);
|
$('#valueTotal').text(numbers*price*31);
|
||||||
|
|
1
datacenterlight/static/datacenterlight/js/plugin.js
Normal file
1
datacenterlight/static/datacenterlight/js/plugin.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -8,6 +8,7 @@
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
|
||||||
<title>landings</title>
|
<title>landings</title>
|
||||||
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
||||||
|
<link rel="shortcut icon" href="{% static 'datacenterlight/img/favicon.ico' %}" type="image/x-icon" />
|
||||||
<link rel="stylesheet" href="{% static 'datacenterlight/css/main.css' %}">
|
<link rel="stylesheet" href="{% static 'datacenterlight/css/main.css' %}">
|
||||||
<script src="{% static 'datacenterlight/js/vendor/modernizr.js' %}"></script>
|
<script src="{% static 'datacenterlight/js/vendor/modernizr.js' %}"></script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -61,16 +62,31 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="loading"><img src="{% static 'datacenterlight/img/loading.gif' %}" alt=""></div>
|
|
||||||
<div class="succes-message">
|
</section>
|
||||||
|
<div class="modal fade" id="sucessModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h5 class="modal-title" id="exampleModalLongTitle">Thank You</h5>
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="success-message">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h1>Thank You</h1></div>
|
<h1>Thank You</h1>
|
||||||
|
</div>
|
||||||
<div class="container" style="margin-top: 3rem">
|
<div class="container" style="margin-top: 3rem">
|
||||||
<p>Thanks for letting us know about your interest! We will come back to you as soon as our beta program starts!</p>
|
<p>Thanks for letting us know about your interest! We will come back to you as soon as our beta program starts!</p>
|
||||||
<p>Meanwhile, you can checkout news about it on <a href="#" >Twitter</a>, <a href="#" >Facebook</a> and <a href="#" >Instagram</a> </p>
|
<p>Meanwhile, you can checkout news about it on <a href="#" >Twitter</a>, <a href="#" >Facebook</a> and <a href="#" >Instagram</a> </p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<script>
|
<script>
|
||||||
! function(e, t, a, n, c, o) {
|
! function(e, t, a, n, c, o) {
|
||||||
e.GoogleAnalyticsObject = n, e[n] || (e[n] = function() {
|
e.GoogleAnalyticsObject = n, e[n] || (e[n] = function() {
|
||||||
|
@ -79,6 +95,7 @@
|
||||||
}(window, document, "script", "ga"), ga("create", "UA-XXXXX-X"), ga("send", "pageview")
|
}(window, document, "script", "ga"), ga("create", "UA-XXXXX-X"), ga("send", "pageview")
|
||||||
</script>
|
</script>
|
||||||
<script src="{% static 'datacenterlight/js/vendor.js' %}"></script>
|
<script src="{% static 'datacenterlight/js/vendor.js' %}"></script>
|
||||||
|
<script src="{% static 'datacenterlight/js/plugin.js' %}"></script>
|
||||||
<script src="{% static 'datacenterlight/js/main.js' %}"></script>
|
<script src="{% static 'datacenterlight/js/main.js' %}"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<title>landings</title>
|
<title>landings</title>
|
||||||
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
||||||
<link rel="stylesheet" href="{% static 'datacenterlight/css/main.css' %}">
|
<link rel="stylesheet" href="{% static 'datacenterlight/css/main.css' %}">
|
||||||
|
<link rel="shortcut icon" href="{% static 'datacenterlight/img/favicon.ico' %}" type="image/x-icon" />
|
||||||
<script src="{% static 'datacenterlight/js/vendor/modernizr.js' %}"></script>
|
<script src="{% static 'datacenterlight/js/vendor/modernizr.js' %}"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -28,8 +29,14 @@
|
||||||
<form action="">
|
<form action="">
|
||||||
<div class="row-vms d-flex align-items-center justify-content-between row-vms__active">
|
<div class="row-vms d-flex align-items-center justify-content-between row-vms__active">
|
||||||
<div class="form-group ">
|
<div class="form-group ">
|
||||||
<input type="number" class="form-control number-vms" value="1" data-price="0.5">
|
<input type="number" class="form-control number-vms" value='1' data-price="0.5">
|
||||||
<div class="text"><span>number of VMs</span></div>
|
|
||||||
|
</div>
|
||||||
|
<div class="text text__landing">
|
||||||
|
<span>number of VMs </span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-group__email">
|
||||||
|
<input class="form-control" type="email" placeholder="email" id="example-email-input">
|
||||||
</div>
|
</div>
|
||||||
<div class="submit">
|
<div class="submit">
|
||||||
<button type="button" id="submit" class="btn btn-block btn-success">Submit</button>
|
<button type="button" id="submit" class="btn btn-block btn-success">Submit</button>
|
||||||
|
@ -40,16 +47,30 @@
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="loading"><img src="{% static 'datacenterlight/img/loading.gif' %}" alt=""></div>
|
</section>
|
||||||
<div class="succes-message">
|
<div class="modal fade" id="sucessModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h5 class="modal-title" id="exampleModalLongTitle">Thank You</h5>
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="success-message">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h1>Thank You</h1></div>
|
<h1>Thank You</h1>
|
||||||
|
</div>
|
||||||
<div class="container" style="margin-top: 3rem">
|
<div class="container" style="margin-top: 3rem">
|
||||||
<p>Thanks for letting us know about your interest! We will come back to you as soon as our beta program starts!</p>
|
<p>Thanks for letting us know about your interest! We will come back to you as soon as our beta program starts!</p>
|
||||||
<p>Meanwhile, you can checkout news about it on <a href="#" >Twitter</a>, <a href="#" >Facebook</a> and <a href="#" >Instagram</a> </p>
|
<p>Meanwhile, you can checkout news about it on <a href="#" >Twitter</a>, <a href="#" >Facebook</a> and <a href="#" >Instagram</a> </p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<script>
|
<script>
|
||||||
! function(e, t, a, n, c, o) {
|
! function(e, t, a, n, c, o) {
|
||||||
e.GoogleAnalyticsObject = n, e[n] || (e[n] = function() {
|
e.GoogleAnalyticsObject = n, e[n] || (e[n] = function() {
|
||||||
|
@ -58,6 +79,7 @@
|
||||||
}(window, document, "script", "ga"), ga("create", "UA-XXXXX-X"), ga("send", "pageview")
|
}(window, document, "script", "ga"), ga("create", "UA-XXXXX-X"), ga("send", "pageview")
|
||||||
</script>
|
</script>
|
||||||
<script src="{% static 'datacenterlight/js/vendor.js' %}"></script>
|
<script src="{% static 'datacenterlight/js/vendor.js' %}"></script>
|
||||||
|
<script src="{% static 'datacenterlight/js/plugin.js' %}"></script>
|
||||||
<script src="{% static 'datacenterlight/js/main.js' %}"></script>
|
<script src="{% static 'datacenterlight/js/main.js' %}"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue