Skip to content

Instantly share code, notes, and snippets.

@adexon
adexon / GreedyNav
Last active February 12, 2016 10:33
var $nav = $('.greedy-nav');
var $btn = $('.greedy-nav button');
var $vlinks = $('.greedy-nav .visible-links');
var $hlinks = $('.greedy-nav .hidden-links');
var breaks = [];
function updateNav() {
var availableSpace = $btn.hasClass('hidden') ? $nav.width() : $nav.width() - $btn.width() - 30;
wp_enqueue_script( 'x-jquery', get_template_directory_uri() . '/js/jquery.js', array(), 'null', true );
wp_enqueue_script( 'x-tabs', get_template_directory_uri() . '/js/navigation.js', array(), 'null', true );
<script type='text/javascript' src='<?php get_template_directory_uri();?>/js/jquery.js'></script>
<script type='text/javascript' src='<?php get_template_directory_uri();?>/js/navigation.js'></script>
http://101ako.com
http://24by7bookmarks.com
http://2collab.com
http://52.co.nz
http://88-c.com
http://a1socialbookmarking.com
http://aboogy.com
http://actualtopics.com
http://affiliated-business.com
http://afunpark.com
if ( ! function_exists('tutorial') ) {
function tutorial() {
$labels = array(
'name' => _x( 'Tutorials', 'Post Type General Name', 'tutorial' ),
'singular_name' => _x( 'Tutorial', 'Post Type Singular Name', 'tutorial' ),
'menu_name' => __( 'Tutorial', 'tutorial' ),
'name_admin_bar' => __( 'Post Type', 'tutorial' ),
'archives' => __( 'Item Archives', 'tutorial' ),
function button_shortcode( $atts, $content = null )
{
extract( shortcode_atts( array(
'color' => 'green',
'size' => 'small',
), $atts ) );
return '
<style type="text/css">
.shortcode_button {
<?php get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php $cats = get_categories('parent=0&orderby=id'); ?>
<?php foreach ($cats as $cat) {?>
<div id="indexbox" class="flex">
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
text-shadow: 1px 0px #eee, 0px 1px #ccc,
2px 1px #eee, 1px 2px #ccc,
3px 2px #eee, 2px 3px #ccc,
4px 3px #eee, 3px 4px #ccc,
5px 4px #eee, 4px 5px #ccc,
6px 5px #eee, 5px 6px #ccc,
7px 6px #eee, 6px 7px #ccc,
8px 7px #eee, 7px 8px #ccc,
8px 8px #eee;
<div class="corners">
Content
</div>
body {
background: #e6e6e6;
}
.corners {
background: #f6f6f6;
height: 700px;