Skip to content

Commit

Permalink
Added current dynamic date,time & weather (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguptaa183 authored and monsij committed Dec 7, 2018
1 parent 2c3121f commit 4524882
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions pro1/blog/templates/blog/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,20 @@
<li class="list-group-item list-group-item-light"><a href="https://raw.githubusercontent.com/NIT-DGPortal/portal-files/master/Institute-Holidays.pdf" target = "_blank">Holidays</a></li>
<li class="list-group-item list-group-item-light"><a href="http://172.16.24.9:9001/default.aspx" target ="_blank">Chanakya Portal</a></li>
<li class="list-group-item list-group-item-light"><a href="{% url 'blog-contact' %}">Contacts</a></li>
<li class="list-group-item list-group-item-light"><a href="{% url 'blog-contributor' %}">Contributors</a></li>
<li class="list-group-item list-group-item-light"><a href="{% url 'blog-contributor' %}">Contributors</a></li>
<li class="list-group-item list-group-item-light" style="background-color:#77BE7B;">
<div style="text-align:center; color: white;margin-bottom: -20px;">
<span><h3 style="margin-bottom:5px;">The time now is:</h3></span>
<iframe src="http://free.timeanddate.com/clock/i6j9n8ow/n54/fs20/fcfff/tc77be7b" frameborder="0" width="225" height="34"></iframe>
</div>
<!-- BEGIN: Powered by Ipaddress.is -->
<div style="color:white;text-align: center;font-size: 20px;">
<span><h3 style="margin-bottom:-1px;">Your IP:</h3></span><script type="text/javascript" language="javascript" src="http://en.dnstools.ch/out/4.js"></script>
</div>
<!-- weather widget -->
<a class="weatherwidget-io" href="https://forecast7.com/en/22d5788d36/kolkata/" data-label_1="KOLKATA" data-label_2="WEATHER"
data-font="Helvetica" data-mode="Current" data-theme="original" data-basecolor="#77BE7B">KOLKATA WEATHER</a>
</li>
</ul>
</p>
</div>
Expand All @@ -97,7 +110,19 @@
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script>//weather widget script
!function(d,s,id){
var js,fjs=d.getElementsByTagName(s)[0];
if(!d.getElementById(id)){
js=d.createElement(s);
js.id=id;
js.src='https://weatherwidget.io/js/widget.min.js';
fjs.parentNode.insertBefore(js,fjs);
}
}(document,'script','weatherwidget-io-js');
</script>

<!-- Footer -->
<div class="navbar navbar-default navbar-fixed-bottom">
<div class="container">
Expand Down

0 comments on commit 4524882

Please sign in to comment.