This file contains 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
<!-- Backto top html --> | |
<div class="totop"><a href="#top"></a></div> | |
/* back to top css */ | |
.totop a { | |
position: fixed; | |
right: 5%; | |
bottom: 10%; | |
display: none; | |
background: ; | |
width: 30px; |
This file contains 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
/*===== reset ===============*/ | |
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section { margin:0; padding:0; border:0; vertical-align:baseline; } | |
article, aside, dialog, figure, footer, header, hgroup, nav, section { display:block; } | |
table { border-collapse:separate; border-spacing:0; } | |
caption, th, td { text-align:left; font-weight:normal; } | |
table, td, th { vertical-align:middle; } | |
blockquote:before, blockquote:after, q:before, q:after { content:""; } | |
blockquote, q { quotes:"" ""; } | |
input::-moz-focus-inner { border: 0; } | |
*:focus { outline: 0; } |
This file contains 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($) { //<< begin no conflict function | |
$(document).ready(function() { //<< begin doc ready | |
//with portotype | |
}); //<< end doc ready | |
})(jQuery); //<< end no conflict function | |
*/ |
This file contains 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') | |
{ | |
$("body").css('background','red'); // if jQuery is undefined so the let the background be ( RED! ) | |
} | |
else | |
{ | |
$("body").css('background','green'); // if jQuery is there so the let the background be ( Green! ) | |
} |
This file contains 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
$("#where").before('what'); |
This file contains 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
<?php | |
function short_title($num) { | |
$limit = $num+1; | |
$title = str_split(get_the_title()); | |
$length = count($title); | |
if ($length>=$num) { | |
$title = array_slice( $title, 0, $num); | |
$title = implode("",$title)."..."; | |
echo $title; | |
} else { |
This file contains 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
<?php | |
function short_content($num) { | |
$limit = $num+1; | |
$content = str_split(get_the_content()); | |
$length = count($content); | |
if ($length>=$num) { | |
$content = array_slice( $content, 0, $num); | |
$content = implode("",$content)."..."; | |
echo '<p>'.$content.'</p>'; | |
} else { |
This file contains 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
//Get Link URL | |
$options[] = array( "name" => "Show a Text Field ( Single Line )", | |
"desc" => "Enter text into the field", | |
"id" => $shortname."_linkurl", | |
"std" => "http://yoursiteurl.com/", | |
"type" => "text"); | |
<a href="<?php echo get_option('of_linkurl') ?>">LINK TEXT</a> |
This file contains 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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
This file contains 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
//Dropdown menu | |
$("# li").hover(function(){ | |
$(this).find('ul').stop().slideDown(); | |
}, | |
function(){ | |
$(this).find('ul').stop().slideUp(); | |
}); |
OlderNewer