blob: 67663c6247685258af6d128e00244043065cb884 [file] [log] [blame]
/* --------------------www.bootstrappage.com----------------------------------- */
$('#ourServices .thumbnail').mouseenter(function() {
$(this).css('background-color','#FE5214');
$(this).animate({
opacity:1
}, 200, function() {
// Animation complete.
});
});
$('#ourServices .thumbnail').mouseleave(function() {
$(this).css('background-color','#ffffff');
$(this).animate({
opacity:0.8
}, 0, function() {
// Animation complete.
});
});
// Apply Bootstrap Scrollspy to show active navigation link based on page scrolling
$('.navbar').scrollspy();
// Scroll page with easing effect
$('.clickscroll').bind('click', function(e) {
e.preventDefault();
target = this.hash;
$.scrollTo(target, 1500, {
easing: 'easeOutCubic'
});
$(".btn-navbar").click();
});
// Scroll page with easing effect
$('#footerMenu a').bind('click', function(e) {
e.preventDefault();
target = this.hash;
$.scrollTo(target, 1500, {
easing: 'easeOutCubic'
});
$(".btn-navbar").click();
});
// Show/Hide Sticky "Go top" button
$(window).scroll(function(){
if($(this).scrollTop()>200){
$(".go-top").fadeIn(200);
}
else{
$(".go-top").fadeOut(200);
}
});
// Scroll Page to Top when clicked on "go top" button
$(".brand, .go-top").click(function(event){
event.preventDefault();
$.scrollTo('#introSection', 1500, {
easing: 'easeOutCubic'
});
});
$(function(){
$('#mainCarousel').carousel('cycle');
$('#BlogFeed').FeedEk({
Type:'Blog',
Title : 'Latest Articles',
FeedUrl : 'http://blog.anujkumar.com/rss', //Provide link to your blog rss feed here
SourceUrl : 'http://blog.anujkumar.com', //Provide link to your blog here
MaxCount : 3, //Maximum number of posts to diaplay
ShowDesc : true,
ShowPubDate: true,
FooterText:'Visit our blog' //text to display in footer link
});
$('#TwitterFeed').FeedEk({
Type:'Tweets',
Title : 'Recent Tweets',
FeedUrl : 'https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=anujkkk', //replace anujkkk with your twitter username
SourceUrl : 'http://www.twitter.com/anujkkk', //replace anujkkk with your twitter username
MaxCount : 3, //maximum number of tweets to display
ShowDesc : true,
ShowPubDate: true,
FooterText:'Follow us @anujkkk' //text to display in footer link
});
$('#btnNew').click(function(e) {
$('.all').quicksand( $('.mgmt li'), {
duration: 500,
attribute: 'id',
easing: 'easeInOutQuad'
});
$("#liNew").attr("class","active");
$("#liComingsoon").attr("class","");
$("#liPopular").attr("class","");
$("#liAll").attr("class","");
e.preventDefault();
});
$('#btnPopular').click(function(e) {
$('.all').quicksand( $('.designs li'), {
duration: 500,
attribute: 'id',
easing: 'easeInOutQuad'
});
$("#liNew").attr("class","");
$("#liAll").attr("class","");
$("#liComingsoon").attr("class","");
$("#liPopular").attr("class","active");
e.preventDefault();
});
$('#btnComingsoon').click(function(e) {
$('.all').quicksand( $('.hacks li'), {
duration: 500,
attribute: 'id',
easing: 'easeInOutQuad'
});
$("#liNew").attr("class","");
$("#liAll").attr("class","");
$("#liComingsoon").attr("class","active");
$("#liPopular").attr("class","");
e.preventDefault();
});
$('#btnAll').click(function(e) {
$('.all').quicksand( $('.new li'), {
duration: 500,
attribute: 'id',
easing: 'easeInOutQuad'
});
$("#liNew").attr("class","");
$("#liAll").attr("class","active");
$("#liComingsoon").attr("class","");
$("#liPopular").attr("class","");
e.preventDefault();
});
$('body').tooltip({
selector: '[rel=tooltip]',
placement: 'bottom'
});
$('LI h4').click(function(e) {
e.preventDefault(); // disable text selection
$(this).parent().find('span').slideToggle();
return false; // disable text selection
});
$('#search').keyup(function(e) {
var s = $(this).val().trim();
if (s === '') {
$('#result LI').show();
return true;
}
$('#result LI:not(:contains(' + s + '))').hide();
$('#result LI:contains(' + s + ')').show();
return true;
});
});