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
ps aux|grep "Coccinellida" // find PID | |
sudo kill -33605 PID // kill |
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
// selectbox fix | |
$('select').change(function(){ | |
checkSelect($(this)); | |
}); | |
function checkSelect(obj){ | |
if (obj[0].selectedIndex <= 0) { | |
obj.addClass('not-selected').removeClass('selected'); | |
} |
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
/* Bootstrap Clearfix */ | |
/* Tablet */ | |
@media (min-width:767px){ | |
/* Column clear fix */ | |
.col-lg-1:nth-child(12n+1), | |
.col-lg-2:nth-child(6n+1), | |
.col-lg-3:nth-child(4n+1), | |
.col-lg-4:nth-child(3n+1), |
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
.webform-client-form > div > * { | |
float: left; | |
width: 48%; | |
margin-bottom: 15px; | |
} | |
.webform-client-form > div > *:nth-child(even){ | |
margin-left: 4%; | |
} |
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
[node:menu-link:parent:url:path]/[node:title] |
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
l(t('Learn more'), drupal_get_path_alias('node/'.$item['target_id']), array('attributes' => array('class' => 'btn btn-primary btn-lg'))); |
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 foreach ($items as $delta => $item): ?> | |
<?php print render($item); ?> | |
<?php endforeach; ?> |
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
// tabs | |
$('.tabpanel a').click(function (e) { | |
e.preventDefault() | |
$(this).tab('show') | |
}); | |
$('.tabpanel').each(function(){ | |
var t = $(this); | |
t.find('.nav > li:first, .tab-content > .tab-pane:first').addClass('active'); |
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
// init player, set vars | |
var player = { | |
playVideo: function(container, videoId) { | |
if (typeof(YT) == 'undefined' || typeof(YT.Player) == 'undefined') { | |
window.onYouTubePlayerAPIReady = function() { | |
player.loadPlayer(container, videoId); | |
}; | |
$.getScript('//www.youtube.com/player_api'); | |
} else { |