Skip to content

Commit 2e04e49

Browse files
committed
Updated Insta
1 parent 61c5794 commit 2e04e49

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

images/ic_instagram.svg

Lines changed: 1 addition & 0 deletions
Loading

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ <h2 class="card-face__name">Mohammed <strong>Imran</strong></h2>
3737
<a href="tel:+919791020690" style="text-decoration:none" class="card-face__title">+91-9791020690</a>
3838
<div class="card-face-footer">
3939
<a href="https://facebook.com/mohammedimran591" target="_blank" class="card-face__social "><img src="images/ic_fb.png" width="36" height="36" draggable="false" /></a>
40+
<a href="instagram://user?username=mohammed_imran591" target="_blank" class="card-face__social "><img src="images/ic_instagram.svg" width="36" height="36" draggable="false" /></a>
4041
<a href="http://stackoverflow.com/users/2017209/mohammed-imran-n?tab=profile" target="_blank" class="card-face__social "><img src="images/ic_so.png" width="36" height="36" draggable="false" /></a>
4142
<a href="https://in.linkedin.com/in/nimran" target="_blank" class="card-face__social "><img src="images/ic_li.png" width="36" height="36" draggable="false" /></a>
4243
<a href="https://github.com/nimran" target="_blank" class="card-face__social "><img src="images/ic_git.png" width="36" height="36" draggable="false" /></a>
4344
<a href="skype:mohammed_imran591?call" target="_blank" class="card-face__social "><img src="images/ic_skype.png" width="36" height="36" draggable="false" /></a>
45+
4446
</div>
4547
</div>
4648
</div>

js/app.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function init() {
2-
2+
33
renderMenu();
44
bindEvents();
55
renderAboutMe();
@@ -139,7 +139,7 @@ function renderSkills() {
139139
var skills = '';
140140
var skillObj = '',
141141
skillItemsObj = '';
142-
$(".skills-div").text("");
142+
$(".skills-div").text("");
143143
var skillsJson = '[{"SkillType":"Primary Skills","Items":[{"name":"Android","image":"images/ic_android.png"},{"name":"Phonegap","image":"images/ic_phonegap.png"}]},{"SkillType":"Secondary Skills","Items":[{"name":"HTML","image":"images/ic_html.png"},{"name":"CSS","image":"images/ic_css.png"},{"name":"Javascript","image":"images/ic_js.png"},{"name":"iOS","image":"images/ic_apple.svg"},{"name":"Parse","image":"images/ic_parse.png"},{"name":"Dreamfactory","image":"images/ic_df.png"}]}]';
144144
var skillsJsonObj = JSON.parse(skillsJson);
145145
for (var i = 0; i < skillsJsonObj.length; i++) {
@@ -157,9 +157,18 @@ function renderSkills() {
157157
}
158158
$(".skills-div").append(skills);
159159
}
160-
160+
function getAge(dateString) {
161+
var today = new Date();
162+
var birthDate = new Date(dateString);
163+
var age = today.getFullYear() - birthDate.getFullYear();
164+
var m = today.getMonth() - birthDate.getMonth();
165+
if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
166+
age--;
167+
}
168+
return age;
169+
}
161170
function renderAboutMe(){
162-
var aboutMe ='My name is <b>Imran</b>, and I am 25 years old, Software Developer from Chennai who has been in the field for 3 years and counting.<br> I am a person who has interest in Mobile and Web application development.I love blogging. My blogs will be released soon !!.<br> Other than work, I have more interest in Volunteering. Currently I am volunteering with Bhumi for more than 4 years.<br> During my leisure time, I always sit with Social networking, Whatsapp. Like others, I am person who loves to hangout with Friends :)';
171+
var aboutMe ='My name is <b>Imran</b>, and I am '+ getAge("1991/05/20")+' years old, Software Developer from Chennai who has been in the field for 3 years and counting.<br> I am a person who has interest in Mobile and Web application development.I love blogging. My blogs will be released soon !!.<br> Other than work, I have more interest in Volunteering. Currently I am volunteering with Bhumi for more than 4 years.<br> During my leisure time, I always sit with Social networking, Whatsapp. Like others, I am person who loves to hangout with Friends :)';
163172

164173
$('#aboutMeText').text("");
165174
$('#aboutMeText').append(aboutMe);

0 commit comments

Comments
 (0)