diff options
Diffstat (limited to 'website')
-rw-r--r-- | website/templates/footer.html | 22 | ||||
-rw-r--r-- | website/templates/home.html | 18 |
2 files changed, 31 insertions, 9 deletions
diff --git a/website/templates/footer.html b/website/templates/footer.html index 10f6bc0..4b81c23 100644 --- a/website/templates/footer.html +++ b/website/templates/footer.html @@ -75,6 +75,28 @@ }); </script> <script type="text/javascript"> +function trim(stringToTrim) { + return stringToTrim.replace(/^\s+|\s+$/g,""); +} +function validateMessage() { + var x = document.getElementById("message").value; + var y = x.trim().length; + if (x.trim()==null || x.trim()==""|| x.trim()==" ") { + alert("Enter a message"); + return false; + } + else if (y<15) { + alert("Minimum character limit is 15"); + return false; + } + else + { + alert('Thank you for your feedback.'); + } + + } +</script> +<script type="text/javascript"> window.onload = function () { var n1 = Math.round(Math.random() * 10 + 1); var n2 = Math.round(Math.random() * 10 + 1); diff --git a/website/templates/home.html b/website/templates/home.html index 41d5f30..9ce129e 100644 --- a/website/templates/home.html +++ b/website/templates/home.html @@ -70,10 +70,10 @@ <br><h6>Speaker</h6> <img class="img-fluid d-block mx-auto" src="{% static 'img/AjitSir_spkr.png' %}" alt=""> - <p align="justify"><center>Dr. Ajith Kumar <br><span style="font-size: 10px;">(scientist working with the IUAC.)</span></center><center> - <br><a href="https://github.com/expeyes" target="_blank"><i style="font-size:30px;color: black;" class="fa fa-github" aria-hidden="true"></i></a> + <p align="justify"><center>Dr. Ajith Kumar <br><span style="font-size: 10px;">(scientist working with the <a href="http://www.iuac.res.in/">IUAC</a>.)</span></center><center> + <br><a href="https://github.com/expeyes" target="_blank"><i style="font-size:30px;color: black;" class="fa fa-github" aria-hidden="true"></i></a> - <a href="http://expeyes.in/" target="_blank"><i class="fa fa-info" style="font-size:30px;color:black"></i> + <a href="http://expeyes.in/" target="_blank"><i class="fa fa-info" style="font-size:30px;color:black"></i> </a></center></p> <p align="justify">His main area of work is development of instrumentation for particle accelerators and associated experiments, including radio-frequency accelerating structures, control and data acquisition systems, digital and radio frequency electronics modules. He initiated the Phoenix / expEYES project. ExpEYES is currently the cheapest educational system to teach science. </p> @@ -87,7 +87,7 @@ <p align="justify"><center>Nelle Varoquaux<br><span style="font-size: 10px;">(a postdoctoral fellow at the Department of Statistics at UC Berkeley and a BIDS data science fellow.)</span> </center> <br><center><a href="https://github.com/NelleV" target="_blank"><i style="font-size:30px;color: black;" class="fa fa-github" aria-hidden="true"></i></a> - <a href="https://bids.berkeley.edu/people/nelle-varoquaux" target="_blank"><i class="fa fa-info" style="font-size:30px;color:black"></i></a> + <a href="https://bids.berkeley.edu/people/nelle-varoquaux" target="_blank"><i class="fa fa-info" style="font-size:30px;color:black"></i></a> </center></p> <p align="justify"> She received a PhD in computational biology from École des Mines de Paris in 2015. Her research interests are in @@ -538,7 +538,7 @@ <div class="col-lg-4 col-sm-6 text-center mb-4"> <center><img src="{% static 'img/th_spnbook.png'%}" /></center> <a href="{% static 'pdf/Scipy2017prospectus.pdf' %}" target="_blank"> - <center><button class="btn btn-primary gradient" style="border: none;" >Download Prospectus</button></center></a> + <center><button class="btn btn-primary gradient" style="border: none;" >Download</button></center></a> </div> </div></div></section> <section id="organiser"> @@ -554,7 +554,7 @@ <div class="row align-items-center"> <!-- Speaker 1--> - <div class="col-lg-3 col-sm-3 text-center mb-4"> + <div class="col-lg-3 col-sm-4 text-center mb-4"> <img src="{% static 'img/fossee.png'%}" width="70%" /> </div> @@ -607,7 +607,7 @@ <hr> <div class="panel panel-default"> <div class="panel-body"> - <form id="contact_us" action='#' class="form" role="form" method=POST onSubmit="alert('Thank you for your feedback.');" enctype="multipart/form-data" data-toggle="validator"> + <form id="contact_us" name="contact_us" action='#' class="form" role="form" method=POST onsubmit="return validateMessage();" enctype="multipart/form-data" data-toggle="validator"> {% csrf_token %} <div class="col-md-15 form-group"> <input class="form-control" id="name" name="name" placeholder="Name" type="text" data-minlength="6" required /> @@ -616,7 +616,7 @@ <input class="form-control" id="email" name="email" placeholder="Email" type="email" required /> </div> <div class="col-md-15 form-group"> - <textarea class="form-control" id="message" name="message" placeholder="Message" rows="5"></textarea> + <textarea class="form-control" id="message" name="message" placeholder="Message" rows="5" data-minlength="15" required="true"></textarea> </div> <div class="col-md-15 form-group"> <input class="form-control" style="color:black;" readonly type="text" id="a" /> @@ -626,7 +626,7 @@ </div> <div class = "col-md-3"> <!-- <button class="button" href="" id = "c" type="submit">Send Message</button> --> - <button id="myButton" onSubmit=validateMessage() disabled >Send Message</button><br> + <button id="myButton" disabled >Send Message</button><br> <p style="color: red;" id= "error"> </div> </form> |