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 z_masterfit_ui_customized_menu() { | |
$items = array(); | |
$items['admin/flush-cache'] = array( | |
'type' => MENU_NORMAL_ITEM, | |
'title' => t('Flush the cache'), | |
'description' => 'Flush all website caches to make sure it updates to relect '. | |
'your recent changes.', | |
'page callback' => 'flush_cache_custom_callback', | |
'access callback' => user_access('flush cache'), |
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
$('form.form-search input').focus(function() { | |
if (this.value == this.defaultValue){ | |
this.value = ''; | |
} | |
if(this.value != this.defaultValue){ | |
this.select(); | |
} | |
}); | |
$('form.form-search input').blur(function() { | |
if ($.trim(this.value) == ''){ |
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
<ul> | |
<li>AL<li> | |
<li>AK<li> | |
<li>AZ<li> | |
<li>AR<li> | |
<li>CA<li> | |
<li>CO<li> | |
<li>CT<li> | |
<li>DE<li> | |
<li>DC<li> |
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
window.location.reload(true); |
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" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyAOj_3CRyephdFtCbWh5OZ6eXa49zcJFHM&sensor=false"></script> | |
<div id="address" style="display:none;"><!--address for the map goes here-->8134 Country Village Drive Cordova, TN 38016</div> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
var geocoder; | |
function initialize() { | |
geocoder = new google.maps.Geocoder(); |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
global $global_messages; | |
print $global_messages; |
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
$('input').focus(function() { | |
if ($(this).hasClass('passwordLabel')) { | |
$(this).hide(); | |
$(this).next('input').show(); | |
$(this).next('input').focus(); | |
} | |
if (this.value == this.defaultValue){ | |
this.value = ''; | |
} |
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 pj_preprocess_page(&$variables, $hook) { | |
//ADD TESTICULAR CANCER CSS TO FRONT PAGE | |
if (drupal_is_front_page()) { | |
drupal_add_css(drupal_get_path('theme', 'pj') . '/css/tc.css', array('group' => CSS_THEME, 'type' => 'file')); | |
} | |
// When this goes through the theme.inc some where it changes _ to - so the tpl name is actually page--type-typename.tpl | |
if (isset($variables['node'])) { | |
$variables['theme_hook_suggestions'][] = 'page__type__'. str_replace('_', '--', $variables['node']->type); | |
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"> | |
$(window).load(function () { | |
var isIE = $.browser.msie; | |
setTimeout(function () { | |
function sizeTableBrowser() { | |
$('.rgMasterTable.data').removeClass('data'); | |
$('.rgMasterTable:visible').addClass('data'); | |
var sitewidth = $('.ajax__tab_container:visible').width(); |
OlderNewer