Skip to content

Instantly share code, notes, and snippets.

View vishnusomanus's full-sized avatar

Vishnu Soman U S vishnusomanus

View GitHub Profile
<!-- jQuery -->
<script type="text/javascript">
jQuery('form.portfolio_form').on('submit', function (e) {
e.preventDefault();
var name = jQuery('form.portfolio_form .name').val();
var tag = jQuery('form.portfolio_form .tag').val();
var link = jQuery('form.portfolio_form .link').val();
<a href="#" class="scrollToTop" style=" width: 77px; padding: 5px; text-align: center; background-color: #c42e2f; font-weight: bold; color: #ffffff; text-decoration: none; position: fixed; bottom: 60px; right: 40px; display: none; border-radius: 50px;"><i class="fa fa-chevron-up" aria-hidden="true"></i></a>
<script type="text/javascript">
jQuery(document).ready(function(){
//Check to see if the window is top if not then display button
jQuery(window).scroll(function(){
if (jQuery(this).scrollTop() > 100) {
jQuery('.scrollToTop').fadeIn();
} else {
jQuery('.scrollToTop').fadeOut();
<?php
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
query_posts( array(
'post_type' => 'team',
'posts_per_page' => -1,
'paged' => $paged
) ); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
$image = wp_get_attachment_url( get_post_thumbnail_id($post->ID));//thumb
//$time = get_post_meta( get_the_ID(), 'wpcf-time', true );//custom field
<style type="text/css">
body {
font-family: arial;
}
table {
border: 1px solid #ccc;
width: 100%;
margin:0;
function custom_wp_nav_menu($var) {
return is_array($var) ? array_intersect($var, array(
//List of allowed menu classes
'current_page_item',
'current_page_parent',
'current_page_ancestor',
'first',
'last',
'vertical',
'horizontal'
/*Adding table titles and unset default titles*/
add_filter('manage_waitlist_posts_columns' , 'add_waitlist_columns');
function add_waitlist_columns($columns) {
unset($columns['author']);
unset($columns['seodesc']); //unset fields
unset($columns['seotitle']);
<style>
.wether_box {
min-height: 100px;
background: #35394b;
float: left;
width: 100%;
padding: 10px;
}
.title_area {
<div class="container">
<div id="recaptcha1"></div>
<div id="recaptcha2"></div>
<div id="recaptcha3"></div>
<div id="recaptcha4"></div>
<div id="recaptcha5"></div>
</div> <!-- /container -->
function getVideoUrlAction( $id = null,$quality='high' ){
$return = array();
$quality_index = array('high'=>0,'medium'=>0,'small'=>0);
$videoID = empty( $id ) ? ( $this->getRequest()->getParam('videoid') ) : $id ;
$xmlReqURL = 'http://www.youtube.com/get_video_info?&video_id='.$videoID.'&asv=3&el=detailpage&hl=en_US';
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
@keyframes headerAnimation {
from {top: -80px;}
to {top: 0px;}
}