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
/*Container*/ | |
ul#testi_ticker { | |
font-size: 1.667em; | |
height: 10em; | |
overflow: hidden; | |
padding: 4.5em 0.4333em 0.4333em; | |
position: relative; | |
color: #447a8d; | |
} |
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 bangingHeight(s) { | |
var maxHeight = 0; | |
$(s).each(function() { | |
if($(this).outerHeight() > maxHeight ) { | |
maxHeight = $(this).outerHeight() | |
} | |
}); | |
$(s).height(maxHeight); |
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($,sr){ | |
// debouncing function from John Hann | |
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ | |
var debounce = function (func, threshold, execAsap) { | |
var timeout; | |
return function debounced () { | |
var obj = this, args = arguments; | |
function delayed () { |
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
.link { | |
-webkit-transition:all 100ms linear; | |
-moz-transition:all 100ms linear; | |
-ms-transition:all 100ms linear; | |
-o-transition:all 100ms linear; | |
transition:all 100ms linear; | |
text-align: center; | |
color: #a7c0d0; | |
-webkit-text-shadow: 2px 3px 5px rgba(0,0,0,0.8); | |
-moz-text-shadow: 2px 3px 5px rgba(0,0,0,0.8); |
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 (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11); | |
function my_jquery_enqueue() { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null); | |
wp_register_script('bangplugs', get_template_directory_uri().'/js/bang-plugins.js'); | |
wp_register_script('bangscripts', get_template_directory_uri().'/js/bang-scripts.js'); | |
wp_enqueue_script('jquery'); | |
wp_enqueue_script('bangplugs'); |
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
<script type="text/javascript"> | |
$(document).ready(function () { | |
var deviceAndroid = "android"; | |
var deviceIphone = "iphone"; | |
var deviceBlackberry = "blackberry"; | |
var uagent = navigator.userAgent.toLowerCase(); | |
DetectDevice(); | |
function DetectDevice() { |
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
// add ie conditional html5 shim to header | |
function add_ie_html5_shim () { | |
global $is_IE; | |
if ($is_IE) | |
wp_register_script ('html5shim', "http://html5shim.googlecode.com/svn/trunk/html5.js"); | |
wp_enqueue_script ('html5shim'); | |
} | |
add_action('wp_head', 'add_ie_html5_shim'); |
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 bangGeoLocate() { | |
var Mylat; | |
var Mylng; | |
var geocoder; | |
function testGeo() | |
{ | |
if(navigator.geolocation ) | |
{ |
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
//My Banging Menu Justify Script | |
function bangJustifyMenu() { | |
var menu = $("#productmenu"); | |
var menuWidth = menu.width(); | |
var navItems = menu.find('a'); | |
var navCount = navItems.length; | |
var navContent = 0; | |
navItems.each( function() { | |
var eachWidth = $(this).width(); |
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) { |
OlderNewer