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"> | |
jQuery(window).bind("load", function() { | |
jQuery(".proy-descripcion").text(function(index, currentText) { | |
//return currentText.substr(0, 75); | |
return currentText.substr(0, 75) + ' ...'; | |
}); | |
}); | |
</script> |
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
/* Colapsar menu antes del quiebre de Bootstrap */ | |
@media (max-width: 1200px) { | |
.navbar-header { | |
float: none; | |
} | |
.navbar-toggle { | |
display: block; | |
} | |
.navbar-collapse { |
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 #linea-rota").each(function() { | |
var width = $(window).width(); | |
if (width <= 768) { | |
var html = $(this).html().split(" "); | |
html = html[0] + "<br>" + html.slice(1).join(" "); | |
$(this).html(html); | |
} | |
}); |
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"> | |
$ = jQuery; | |
$(document).ready(function () { | |
updateContainer(); | |
$(window).resize(function() { | |
updateContainer(); | |
}); | |
}); | |
function updateContainer() { |
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
var first_time = true; | |
$(document).ready(function () { | |
updateContainer(); | |
$(window).resize(function() { | |
updateContainer(); | |
console.log(first_time); | |
}); | |
}); | |
function updateContainer() { |
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
$ = jQuery; | |
/* Remover el width:100% inline */ | |
$(document).ready(function () { | |
$(".afg-table .afg-cell").attr("style", ""); | |
}); | |
/* Media Querys | |
@media (min-width: 768px) and (max-width: 991px) { | |
.afg-gallery .afg-cell { |
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 altoFila() { | |
$('.fila-eventos').each(function(){ | |
var highestBox = 0; | |
var width = $(window).width(); | |
if (width >= 768) { | |
$('.column', this).each(function(){ | |
if($(this).height() > highestBox) | |
highestBox = $(this).height(); | |
}); | |
console.log(highestBox); |
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 | |
add_filter( 'auto_update_plugin', '__return_false' ); | |
add_filter( 'auto_update_theme', '__return_false' ); | |
/* Remover version de Woprdpress */ | |
add_action('init', 'myoverride', 100); | |
function myoverride() { | |
remove_action('wp_head', array(visual_composer(), 'addMetaData')); | |
} |
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
$('.panel-body section').each(function(index) { | |
if (index > 1) { | |
$(".panel-body").ready(function(){ | |
$("<button>Contáctanos</button>").insertBefore("section"); | |
}); | |
} | |
}); |
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 save_id_to_file($post_id){ | |
//use your file creation/save function here | |
header ("Content-type: image/jpeg"); | |
$path = "C:\TEMP"; | |
$imageName = $path."\\meme-".$post_id.".png"; | |
$imageNameFeat = $path."\\meme-".$post_id."-feat.png"; | |
$elTitulo = get_field('conduccion'); | |
OlderNewer