Skip to content

Commit 926fbec

Browse files
committed
js part cleaned
1 parent 9a1ec1f commit 926fbec

File tree

4 files changed

+32
-58
lines changed

4 files changed

+32
-58
lines changed

index.html

+4-43
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,6 @@
2727
</div>
2828
</header>
2929

30-
<!-- hover navigation section -->
31-
<section id = "hover-navigation">
32-
<nav class="menu-001">
33-
<ul>
34-
<li><a href="#home-section">Home</a></li>
35-
<li><a href="#about-section">About</a></li>
36-
<li><a href="#faq-section">FAQ</a></li>
37-
<li><a href="#sponsor-section">Sponsors</a></li>
38-
<li><a href="#contact-section">Contact</a></li>
39-
</ul>
40-
</nav>
41-
</section>
42-
<!-- navigation section ends here -->
43-
4430
<section id = "home-section" class = "home-section home section">
4531
<h1>Techspardha'17</h1>
4632
<div class = "titleWrapper">
@@ -354,18 +340,18 @@ <h1 class = "heading">Contact Us</h1>
354340
</div>
355341
<div id = "contact-right-section">
356342
<section class = "wipe-right mini-section email-section">
357-
<span>Our email address &nbsp;&nbsp;&nbsp;&nbsp;( Feel free to ask anything! We do reply :)</span><br/><br/>
343+
<span>Our email address</span><br/><br/>
358344
<span>[email protected]</span>
359345
</section>
360346
<section class = "wipe-down mini-section coordinator-section">
361-
<span>Contact our Coordinators &nbsp;&nbsp;&nbsp;&nbsp;( Let's Talk :P )</span><br/><br/>
347+
<span>Contact our Coordinators</span><br/><br/>
362348
<span>Abhishek Goswami : 9991016038</span><br/>
363349
<span>Jatin Miglani: 9991016038</span><br/>
364350
<span>Abhinandan Sharma: 9996999065</span>
365351
</section>
366352
<section class = "wipe-left mini-section location-section">
367353
<span>
368-
Directions to reach us <br/>( Google baba Zindabad! You are smart :P )<br/><br/>
354+
Directions to reach us <br/><br/><br/>
369355
National Institute of Technology, Kurukshetra<br/>
370356
Thanesar, Haryana<br/>
371357
136119
@@ -387,31 +373,6 @@ <h1>brought to you with <span>love</span> by the team of Hack@NITKKR&nbsp;&nbsp;
387373
<script src = "js/background/typing_effect.js"></script>
388374
<script src = "js/title/title.js"></script>
389375
<script src = "js/FAQ.js"></script>
390-
<script>
391-
$(".menu-001 a").each(function(){
392-
var item = $(this).html();
393-
$(this).append('<span class="hover">'+item+'</span>');
394-
});
395-
396-
var classes = ["mobile", "tablet", "laptop"];
397-
var i = 0;
398-
399-
$('#morph').addClass(classes[i]);
400-
i++
401-
402-
function morph() {
403-
$('#morph').removeClass();
404-
$('#morph').addClass(classes[i]);
405-
if (i > classes.length - 2){
406-
i = 0;
407-
// console.log(i);
408-
} else {
409-
i++;
410-
// console.log(i);
411-
};
412-
};
413-
setInterval(morph, 2000);
414-
</script>
415-
<!-- script ends here -->
376+
<script src = "js/about/index.js"></script>
416377
</body>
417378
</html>

js/about/index.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* @author : abhishek goswami ( hiro )
3+
4+
*
5+
* about/index.js : created the mobile, tablet, laptop transition
6+
*/
7+
8+
(function($, w, d) {
9+
10+
var classes = ["mobile", "tablet", "laptop"];
11+
var i = 0;
12+
13+
$('#morph').addClass(classes[i]);
14+
i++;
15+
16+
function morph() {
17+
$('#morph').removeClass();
18+
$('#morph').addClass(classes[i]);
19+
if (i > classes.length - 2){
20+
i = 0;
21+
} else {
22+
i++;
23+
};
24+
};
25+
26+
setInterval(morph, 2000);
27+
28+
})(jQuery, window, document);

js/background/typing_effect.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323

2424
if(this.isDeleting) {
2525
this.txt = fullText.substring(0, this.txt.length - 1);
26-
console.log(this.txt);
2726
}
2827
else {
2928
this.txt = fullText.substring(0, this.txt.length + 1);
30-
console.log(this.txt);
3129
}
3230
this.element.innerHTML = '<span class = "typing-text">'+ this.txt + '</span>';
3331
var that = this;

js/loader.js

-13
This file was deleted.

0 commit comments

Comments
 (0)