Remove unused beta access templates and js
This commit is contained in:
		
					parent
					
						
							
								3769e00c8c
							
						
					
				
			
			
				commit
				
					
						a5ad1a9edf
					
				
			
		
					 4 changed files with 0 additions and 276 deletions
				
			
		|  | @ -1,55 +0,0 @@ | |||
| (function($){ | ||||
|     'use strict'; // Start of use strict
 | ||||
| 
 | ||||
|     | ||||
| 
 | ||||
|     $(document).ready(function(){ | ||||
|         verifiedUrl(); | ||||
|         init_options_interested(); | ||||
|         init_nav(); | ||||
|         change_values(); | ||||
|     }); | ||||
| 
 | ||||
|     function verifiedUrl(){ | ||||
|         if(window.location.href.indexOf('#success') > -1){ | ||||
|             form_success(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     function init_options_interested(){ | ||||
|         $('.row-vms').click(function(){ | ||||
|             $('.row-vms').removeClass('row-vms__active'); | ||||
|             $(this).addClass('row-vms__active'); | ||||
|             var number = $('.row-vms__active input').val(); | ||||
|             var price = $('.row-vms__active input').data('price'); | ||||
|             _calculate(number, price); | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|     function init_nav(){ | ||||
| 
 | ||||
|         $('.nav-local').click(function(){ | ||||
|             $('html, body').animate({ | ||||
|                  scrollTop: $('#'+$(this).data('href')).offset().top | ||||
|              }); | ||||
|         }); | ||||
|          | ||||
|     } | ||||
| 
 | ||||
|     function change_values(){ | ||||
|         $('.number-vms').keyup(function () { | ||||
|             var number = $(this).val(); | ||||
|             var price =  $(this).data('price'); | ||||
|             _calculate(number, price); | ||||
|         }); | ||||
| 
 | ||||
|     } | ||||
|     function form_success(){ | ||||
|         $('#sucessModal').modal('show'); | ||||
|     } | ||||
|     function _calculate(numbers, price){ | ||||
|         $('#valueTotal').text(numbers*price*31); | ||||
|     } | ||||
|      | ||||
|      | ||||
| })(jQuery); // End of use strict
 | ||||
|  | @ -1,27 +0,0 @@ | |||
| {% load i18n %} | ||||
| 
 | ||||
| <form novalidate id ="beta_access" class="form-beta" method="POST" action="{% url 'datacenterlight:beta_access'%}"> | ||||
|   {% csrf_token %} | ||||
|   {{ form.non_field_errors }} | ||||
|   <div> | ||||
| 	{% for message in messages %} | ||||
| 		<strong>{{ message }}</strong> | ||||
| 	{% endfor %} | ||||
|   </div> | ||||
|  <div class="inputs"> | ||||
| 	 <div class="form-group"> | ||||
| 		<input type="text" name="name" class="form-control" id="name" placeholder="{% trans 'Enter name' %}"> | ||||
| 		<span style="color: white">{{ form.name.errors|striptags}}</span> | ||||
| 	  </div> | ||||
| 	  <div class="form-group"> | ||||
| 		<input type="email" name="email" class="form-control" id="email" placeholder="{% trans 'Enter email' %}"> | ||||
| 		<span style="color: white">{{ form.email.errors|striptags}}</span> | ||||
| 	  </div> | ||||
|  </div> | ||||
|   <button type="submit" class="btn btn-default btn-transparent btn-lg">{% trans "Request Beta Access" %}</button> | ||||
| </form> | ||||
| <script> | ||||
| 	$('#beta_access').ajaxForm({ | ||||
| 		target: '#beta_access_form', success: function(response) { } | ||||
| 	}); | ||||
| </script> | ||||
|  | @ -1,47 +0,0 @@ | |||
| 
 | ||||
| {% load i18n %} | ||||
| 
 | ||||
| <div class="modal fade bs-example-modal-sm" style="color:black;"  id="successModal" tabindex="-1" role="dialog"> | ||||
|     <div class="modal-dialog"> | ||||
|         <div class="modal-content"> | ||||
|             <div class="modal-header"> | ||||
|               <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||||
|             </div> | ||||
|             <div class="modal-body"> | ||||
|               <div class="modal-icon"><i class="checkmark" aria-hidden="true"></i></div> | ||||
|               <h4 class="modal-title">{% trans "Request Sent" %}</h4> | ||||
|               <p class="modal-text">{% trans "Thank you for your subscription! You will receive a confirmation mail from our team" %}</p> | ||||
|             </div> | ||||
|         </div><!-- /.modal-content --> | ||||
|     </div> | ||||
| </div><!-- /.modal --> | ||||
| <script> | ||||
| 	// Show modal | ||||
| 	$('#successModal').modal('show'); | ||||
| 	// close the modal after 3 seconds | ||||
| 	setTimeout(function() { | ||||
| 	    $('#successModal').modal('hide'); | ||||
| 	}, 5000); | ||||
| </script> | ||||
| <style> | ||||
| .vertical-alignment-helper { | ||||
|     display:table; | ||||
|     height: 100%; | ||||
|     width: 100%; | ||||
|     pointer-events:none; /* This makes sure that we can still click outside of the modal to close it */ | ||||
| } | ||||
| .vertical-align-center { | ||||
|     /* To center vertically */ | ||||
|     display: table-cell; | ||||
|     vertical-align: middle; | ||||
|     pointer-events:none; | ||||
| } | ||||
| .modal-content { | ||||
|     /* Bootstrap sets the size of the modal in the modal-dialog class, we need to inherit it */ | ||||
|     width:inherit; | ||||
|     height:inherit; | ||||
|     /* To center horizontally */ | ||||
|     margin: 0 auto; | ||||
|     pointer-events: all; | ||||
| } | ||||
| </style> | ||||
|  | @ -1,147 +0,0 @@ | |||
| {% load staticfiles %} | ||||
| 
 | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| 
 | ||||
| <head> | ||||
| 
 | ||||
|     <meta charset="utf-8"> | ||||
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
|     <meta name="description" content=""> | ||||
|     <meta name="author" content=""> | ||||
| 
 | ||||
|     <title>Rails Hosting.ch - Ruby on Rails as easy as possible</title> | ||||
| 
 | ||||
|     <!-- Bootstrap Core CSS --> | ||||
|     <link href="{% static 'hosting/css/bootstrap.min.css' %}" rel="stylesheet"> | ||||
| 
 | ||||
|     <!-- Custom CSS --> | ||||
|     <link href="{% static 'hosting/css/landing-page.css' %}" rel="stylesheet"> | ||||
| 
 | ||||
|     <!-- Custom Fonts --> | ||||
|     <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> | ||||
|     <link href="{% static 'hosting/font-awesome/css/font-awesome.min.css' %}" rel="stylesheet" type="text/css"> | ||||
|     <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css"> | ||||
|     <link rel="shortcut icon" href="{% static 'hosting/img/favicon.ico' %}" type="image/x-icon" /> | ||||
| 
 | ||||
|     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||||
|     <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||||
|     <!--[if lt IE 9]> | ||||
|         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | ||||
|         <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | ||||
|     <![endif]--> | ||||
| 
 | ||||
|     <!-- Google analytics --> | ||||
|     {% include 'google_analytics.html' %} | ||||
|     <!-- End Google Analytics --> | ||||
| 
 | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
| 
 | ||||
|     <!-- Navigation --> | ||||
|     <nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation"> | ||||
|         <div class="container topnav"> | ||||
|             <!-- Brand and toggle get grouped for better mobile display --> | ||||
|             <div class="navbar-header"> | ||||
|                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> | ||||
|                     <span class="sr-only">Toggle navigation</span> | ||||
|                     <span class="icon-bar"></span> | ||||
|                     <span class="icon-bar"></span> | ||||
|                     <span class="icon-bar"></span> | ||||
|                 </button> | ||||
|                 <a class="navbar-brand topnav" href="#"><img src="{% static 'hosting/img/logo_black.svg' %}"></a> | ||||
|             </div> | ||||
|             <!-- Collect the nav links, forms, and other content for toggling --> | ||||
|             <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||||
|                 <ul class="nav navbar-nav navbar-right"> | ||||
|                     <li> | ||||
|                         <a href="{% url 'hosting:index' %}#how">How it works</a> | ||||
|                     </li> | ||||
|                     <li> | ||||
|                         <a href="{% url 'hosting:index' %}#your">Your infrastructure</a> | ||||
|                     </li> | ||||
|                    <li> | ||||
|                         <a href="{% url 'hosting:index' %}#our">Our inftrastructure</a> | ||||
|                     </li> | ||||
|                     <li> | ||||
|                         <a href="{% url 'hosting:index' %}#price">Pricing</a> | ||||
|                     </li> | ||||
|                     <li> | ||||
|                         <a href="{% url 'hosting:index' %}#contact">Contact</a> | ||||
|                     </li> | ||||
|                 </ul> | ||||
|             </div> | ||||
|             <!-- /.navbar-collapse --> | ||||
|         </div> | ||||
|         <!-- /.container --> | ||||
|     </nav> | ||||
| 
 | ||||
| 
 | ||||
|     <!-- Header --> | ||||
|     <a name="about"></a> | ||||
|     <div class="intro-header"> | ||||
|         <div class="container"> | ||||
|           <div class=".col-md-6"> | ||||
|      | ||||
|                     <div class="intro-message"><img src="{% static 'hosting/img/checkmark.png' %}" class="responsive"> | ||||
|                       <p>Thank you  for your interest in joining Rails-Hosting Beta.<br> | ||||
|                             We will come back to you shortly to give you access to our  infrastructure. | ||||
|                       </p> | ||||
|                     <hr class="intro-divider"> | ||||
|                         <ul class="list-inline intro-social-buttons"> | ||||
|                              | ||||
|                         </ul> | ||||
|             </div> | ||||
|                 </div> | ||||
|             </div> | ||||
| 
 | ||||
|         </div> | ||||
|         <!-- /.container --> | ||||
| 
 | ||||
|     </div> | ||||
|     <!-- /.intro-header --> | ||||
| 
 | ||||
|     <!-- Footer --> | ||||
|     <footer> | ||||
|         <div class="container"> | ||||
|             <div class="row"> | ||||
|                 <div class="col-lg-12"> | ||||
|                     <ul class="list-inline"> | ||||
|                         <li> | ||||
|                             <a href="{% url 'hosting:index' %}">Home</a> | ||||
|                         </li> | ||||
|                         <li class="footer-menu-divider">⋅</li> | ||||
|                         <li> | ||||
|                             <a href="{% url 'hosting:index' %}#how">How it works</a></li> | ||||
|                         <li class="footer-menu-divider">⋅</li> | ||||
|                         <li> | ||||
|                             <a href="{% url 'hosting:index' %}#your">Your infrastructure</a></li> | ||||
|                         <li>⋅</li> | ||||
|                         <li> | ||||
|                             <a href="{% url 'hosting:index' %}#our">Our infrastructure</a></li> | ||||
|                         <li class="footer-menu-divider">⋅</li> | ||||
|                         <li> | ||||
|                             <a href="{% url 'hosting:index' %}#price">Pricing</a> | ||||
|                         </li> | ||||
|                         <li class="footer-menu-divider">⋅</li> | ||||
|                         <li> | ||||
|                             <a href="{% url 'hosting:index' %}#contact">Contact</a> | ||||
|                         </li> | ||||
|                     </ul> | ||||
|                     <p class="copyright text-muted small">Copyright © ungleich GmbH {% now "Y" %}. All Rights Reserved</p> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|     </footer> | ||||
| 
 | ||||
|     <!-- jQuery --> | ||||
|     <script src="{% static 'hosting/js/jquery.js' %}"></script> | ||||
| 
 | ||||
|     <!-- Bootstrap Core JavaScript --> | ||||
|     <script src="{% static 'hosting/js/bootstrap.min.js' %}"></script> | ||||
| 
 | ||||
| </body> | ||||
| 
 | ||||
| </html> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue