$(function() { $('div.order-form').before('
'); }); function whatNext() { $.facebox({ajax:generateUrl('home', 'what_next')}); } /* $(document).ready(function(){ var currentDate = new Date(); var day = currentDate.getDate(); var month = currentDate.getMonth() + 1; var year = currentDate.getFullYear(); var my_date = month+"-"+day+"-"+year; $("#task_due_date").datetimepicker({ format: 'M d, Y H:i', minDate: my_date }); }); */ $(document).ready(function() { //When page loads... $(".tab_content").hide(); //Hide all content $(".resp-tabs-list li:first-child").addClass("active").show(); //Activate first tab $(".tab_content:first-child").show(); //Show first tab content //On Click Event $(".resp-tabs-list li").click(function() { $(".resp-tabs-list li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active ID content return false; }); $('.slider_roundthumbs').tinycarousel({ bullets : true, infinite : false, interval : true, intervalTime : 6000 }); }); /*copied from top_writers.js*/ function chooseWriter(user_id) { if(isUserLogged == 1) { document.location.href = generateUrl('task','add',[0,user_id]); return; } var str = ''; str += '
'; str += '

Request Writer For Your Order

'; $.facebox(str); return; } function loadLogin(user_id) { $.facebox({ajax:generateUrl('task', 'request_writer',[user_id])}); } function placeNewOrder(user_id) { $.facebox({ajax:generateUrl('user', 'add_invite_task',[user_id])}); } /*copied from top_writers.js endss*/