This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if IE ]> | |
//Your code | |
<![endif]--> | |
<!--[if IEMobile 7 ]> | |
//Your code | |
<![endif]--> | |
<!--[if lt IE 7 ]> | |
//Your code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="search"> | |
<input type="text" style="width:20px"/> | |
</div> | |
<script> | |
$("#search input").hover(function() { | |
$(this).animate({ | |
width:"200px", | |
},800); | |
$(this).css("background-position","right"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("a[href='#top']").click(function() { | |
$("html, body").animate({ | |
scrollTop: 0 | |
}, "slow"); | |
return false; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(typeof jquery!="undefined") { | |
//jQuery is installed | |
// Write your code | |
} else { | |
//jQuery not installed | |
// Write your code | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandomColor() { | |
var letters = '0123456789ABCDEF'.split(''); | |
var color = '#'; | |
for (var i = 0; i < 6; i++ ) { | |
color += letters[Math.round(Math.random() * 15)]; | |
} | |
return color; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Mention the tag id="typed". | |
For eg. : <h1 id="typed">Color Changer</h1> | |
*/ | |
#typed{ | |
animation-name:color_change; | |
animation-duration:1s; | |
animation-iteration-count:infinite; | |
animation-direction:alternate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript"> | |
function detectmob() { | |
if( navigator.userAgent.match(/Android/i)|| navigator.userAgent.match(/webOS/i)|| navigator.userAgent.match(/iPhone/i)|| navigator.userAgent.match(/iPad/i)|| navigator.userAgent.match(/iPod/i)|| navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i)|| navigator.userAgent.match(/Opera Mini/i)) { | |
return true; | |
} | |
else { | |
return false; | |
} | |
} | |
if(detectmob()){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Add this line to your html file | |
--> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js"></script> | |
<!-- | |
To run less files .. | |
Import your web files to your local server htdocs (XAMPP,WAMP etc) | |
Then run your html files from the local web server. | |
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
p{ | |
color: #000; | |
font-family: "Segoe UI"; | |
font-size: 20px; | |
white-space: nowrap; | |
overflow: hidden; | |
width: 100%; |