70
| <![CDATA[<script type="text/javascript">
jQuery(function($){
if (typeof($.datepicker) != "undefined"){
$.datepicker.setDefaults(
jQuery.extend($.datepicker.regional['pt-BR'],
{dateFormat: 'dd/mm/yy'}));
}
});
</script>]]>
|
524
| <![CDATA[<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>]]>
|
626
| <![CDATA[<script type="text/javascript">
(function ($) {
"use strict";
$(document).ready(function () {
$(".parent-nitf-image").each(function () {
var link = $(this),
index = $(this).attr('data-index'),
rights = $(this).attr('data-rights');
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
link.attr('href', link.attr('href').replace('@@nitf_custom_galleria', '@@nitf_custom_galleria?ajax_include_head=1&ajax_load=1'));
} else {
link.prepOverlay({
subtype : 'ajax',
filter : '#content-core > *',
width : '524px',
wait: true,
config : {
onLoad: function (e) {
Galleria.loadTheme("++resource++collective.nitf/galleria-theme/galleria.nitf_theme.js");
Galleria.configure({ debug: false, show: index });
Galleria.on('loadstart', function (e) {
var value_rights = $('a[data-rights][data-index=' + e.index + ']').attr('data-rights');
// Verifying a not defined variable in javascript
if (typeof value_rights != 'undefined') {
var link_rights = '<span class="copyright">' + value_rights + '</span>';
}
if ($('.galleria-info-description + .copyright').length > 0) {
$('.galleria-info-description + .copyright').html(link_rights);
} else {
$(link_rights).insertAfter('.galleria-info-description');
}
});
Galleria.run(".pb-ajax #mediabox");
}
}
});
}
});
});
})(jQuery);
</script>]]>
|