This file contains hidden or 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
auto: { | |
play: true, | |
onAfter: function (data) { | |
$(this).triggerHandler('configuration').auto.timeoutDuration = Math.floor(Math.random()*(max-min+1)+min); | |
} | |
} |
This file contains hidden or 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 if ($tabs): ?> | |
<div class="tabs"> | |
<?php print render($tabs); ?> | |
</div> | |
<?php endif; ?> |
This file contains hidden or 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
<li class="something" onclick="initialize_ban()"><span>Банки</span></li> |
This file contains hidden or 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
var body = $("html, body"); | |
var element = $('SOME_SELECTOR'); | |
body.animate({ | |
scrollTop:element.offset().top | |
}, 'swing', 2000); | |
}); |
This file contains hidden or 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 getQueryVariable(variable) | |
{ | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i=0;i<vars.length;i++) { | |
var pair = vars[i].split("="); | |
if(pair[0] == variable){return pair[1];} | |
} | |
return(false); | |
} |
This file contains hidden or 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 custom_init() { | |
//Customize modal window | |
drupal_add_js(array( | |
'CUSTOM_MODAL' => array( | |
'modalSize' => array( | |
'type' => 'fixed', | |
'width' => 850, | |
'height' => 550, | |
), | |
//Animation mode |
This file contains hidden or 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
#selector { | |
max-height: 0; | |
transition: max-height 0.15s ease-out; | |
overflow: hidden; | |
} | |
#selector.active { | |
max-height: 500px; | |
transition: max-height 0.25s ease-in; | |
} |
This file contains hidden or 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 custom_menu() { | |
$items['custom_module/some_title_describing_action/%ctools_js'] = array( | |
'title' => 'Subscribe', | |
'page callback' => 'custom_form__callback', | |
'page arguments' => array(2), // index starts with zero | |
'type' => MENU_CALLBACK, | |
'access callback' => TRUE | |
); | |
return $items; |
This file contains hidden or 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
#content{ | |
position:absolute; | |
left:0; | |
right:0; | |
margin-left:auto; | |
margin-right:auto; | |
} |
This file contains hidden or 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 id="Grid"> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
</ul> |