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
const NUMERO_DI_PROSSIMI_PROGRAMMI = 3 | |
const weekDaysString = [ | |
'Lunedì', | |
'Martedì', | |
'Mercoledì', | |
'Giovedì', | |
'Venerdì', | |
'Sabato', | |
'Domenica', |
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
add_filter('post_gallery', 'my_post_gallery', 10, 2); | |
function my_post_gallery($output, $attr) { | |
global $post; | |
if (isset($attr['orderby'])) { | |
$attr['orderby'] = sanitize_sql_orderby($attr['orderby']); | |
if (!$attr['orderby']) | |
unset($attr['orderby']); | |
} |
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
options = { | |
// class for the scripts to be loaded on demand | |
scriptsClass: 'ce-elm', | |
// custom HTML for the banner | |
bannerHTML: '<a href="#" class="ce-trigger">Enable</a>', | |
// banner classes | |
bannerClasses: { |
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
http://en.wikipedia.org/w/api.php?action=query&generator=random&grnnamespace=0&prop=extracts&exchars=500&format=json | |
http://en.wikipedia.org/w/api.php? | |
action=query & | |
generator=random & | |
grnnamespace=0 & | |
prop=extracts & | |
exchars=500 & // must be > 0 | |
format=json | |
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 argArray = Array.prototype.slice.call(arguments); |
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
<!-- nel document ready js --> | |
$('#servizio').on('click', function(){ | |
$('#servizi').animatescroll({ | |
onScrollStart: function(){ console.log('starting') }, | |
onScrollEnd: function(){ | |
$('#responsivedesign').addClass('animated flash') | |
} | |
}) | |
}) |
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 l(){ | |
var toL = '', a = arguments, i = 0, output = ''; | |
for (i in a){ | |
if(typeof a[i] == 'object' && Object.prototype.toString.call( a[i] ) !== '[object Array]'){ | |
for(property in a[i]){ | |
toL += property + ': ' +a[i][property]+'; '; | |
} | |
} else { | |
toL =toL + ' ' + a[i] ; | |
} |
NewerOlder