How are we called to grow in faith and community in a time of constant technological advancement? The latest issue of C21 Resources magazine discusses this among other questions of faith, technology, ministry, and relationships.
');
}else{
var start =1;
loadDeptContent(initFilter,search,start,notesID);
}
}
//Keypress search text
$('#' + notesID +' #searchText').keypress(function(e){
if (e.which == 13) {
e.preventDefault();
searchCallback();
}
})
//Search Icon click
$('#' + notesID +' .icon-search').click(function(e){
e.preventDefault();
searchCallback();
})
//Ajax load content for non-dept theme
function loadNewsContent(filter, id) {
//console.log('loadNewsContent', filter, '**', id);
var url = '/content/bc-web/centers/church21/jcr:content/par/bc_padded_section/par/bc_padded_section_1203664795/par/bc_news_notes_copy.newsItems.html';
url = url + '?newsFilter=' + filter;
$('#' + id +'.bc-news-notes .news_content').load(url, function(){
//console.log("NotesID", id);
//Trim the content first for school notes
trimContent(id);
cardsHideShow(id);
//Append count to the filter for vertical three columns
var selectedTheme = $('#' +id).attr('class');
if (selectedTheme == 'bc-news-notes v3_columns'){
var string_count = $('#' + id +'.bc-news-notes.v3_columns .filters li a.active').text();
if (string_count.indexOf("(") == -1) {
var filter_count = $('#' + id +'.bc-news-notes.v3_columns .cards').attr('data-count');
$('#' + id +'.bc-news-notes.v3_columns .filters li a.active').append(' ('+filter_count+') ');
}
}
return false;
});
}
//Ajax load content for Dept Theme
function loadDeptContent(filter,search,pageNum,id) {
var url = '/content/bc-web/centers/church21/jcr:content/par/bc_padded_section/par/bc_padded_section_1203664795/par/bc_news_notes_copy.notesItems.html';
url = url + '?newsFilter=' + filter;
url = url + '&searchText='+ search;
url = url + '&start='+ pageNum;
$('#' + id +'.bc-news-notes.dept_columns .news_content').load(url, function(){
$('#' + id +' #pageList li.page').eq(pageNum-1).addClass('on');
//click on number
$('#' + id +' #pageList li.page').click(function(e){
e.preventDefault();
var startPage = $(this).attr('value');
var search = $('#searchText').val();
search == undefined ? '' : search;
search = search.split(" ").join("_");
if (search == '#'||search == '&'||search == '%'||search == '+'){
$('#' + id +' .news_content').html('
This character search is not allowed
');
}else{
loadDeptContent(filter,search, startPage,id);
}
})
//click on tag filter
$('#' + id +' .dept-nav a').click(function(e){
e.preventDefault();
e.stopImmediatePropagation();
var thisTarget = $(event.target).closest('a');
$('.bc-news-notes .dept-nav a').removeClass('active');
thisTarget.addClass('active');
//single filter
var deptFilter = thisTarget.attr('data-tag-filter');
//All filter
if (deptFilter == null || deptFilter == 'all'){
deptFilter = 'bc:centers/c21/focal-issues/roles,bc:centers/c21/focal-issues/CIT,bc:centers/c21/focal-issues/Handing-Faith,bc:centers/c21/god-pods,bc:centers/c21/engage-featured';
}
var start = 1;
var search = $('#searchText').val();
search == undefined ? '' : search;
search = search.split(" ").join("_");
//alert("clic2"+search);
if (search == '#'||search == '&'||search == '%'||search == '+'){
$('#' + id +' .news_content').html('
This character search is not allowed
');
}else{
loadDeptContent(deptFilter,search,start,id);
}
})
//Trim the content first for school notes
trimContent(id);
cardsHideShow(id);
return false;
});
}
//Packer function
function packeryGo(id){
var selectedTheme = $('#' +id).attr('class');
if(!isHorzPaginate(selectedTheme)){
$('#' + id +'.bc-news-notes .cards').packery({
itemSelector: '.cards_item',
columnWidth: '.cards_item',
horizontalOrder: true,
layout: 'fluid'
});
}
}
function cardsHideShow(id){
//console.log('cardsHideShow',id);
$('#' + id +'.bc-news-notes .cards').css('visibility','hidden');
var selectedTheme = $('#' +id).attr('class');
//Call back packery function after all image are loaded
// if it's horz pag, set height
if(isHorzPaginate(selectedTheme)){
//console.log('cardsHideShow', document.getElementById('content-'+"bc_news_notes_copy-1329408364"))
var myContent = document.getElementById('content-'+"bc_news_notes_copy-1329408364");
var cards = myContent.getElementsByClassName('cards_item');
//console.log('cards', cards);
//console.log(cards[0].offsetHeight);
var oHeight = 0;
for( card of cards){
if(card.offsetHeight > oHeight){
oHeight = card.offsetHeight;
}
}
oHeight += 125;
myContent.style.height = oHeight + 'px';
//console.log('NUM CARDS', cards.length);
var dotsNum = Math.ceil(cards.length/3);
if(dotsNum > 20){
dotsNum = 20;
}
var dotContainer = document.getElementById("count-bc_news_notes_copy-1329408364");
dotContainer.innerHTML = '';
hideArrow('left',myContent);
for(var i = 0; i ",
showLess = "Show Less ";
$('#' + id +'.bc-news-notes .cards_content.notes').each(function() {
//find all the empty p element and remove them
$(this).find('p').each(function(){
if ($.trim($(this).html())==''||$.trim($(this).html())==' '){
$(this).remove();
}
});
// find the second p element that are not empty
tag, not date class, hide the content of this one and the rest p
if ($(this).find('p').not('.date').eq(1).length > 0){
$(this).find('p').not('.date').eq(1).addClass('moreContent')
.nextAll().addClass('moreContent');
//add a link
if ($(this).find('a.customBtn').length >0 ) {
$(this).find('a.customBtn').removeClass('moreContent');
$(this).find('a.customBtn').before('');
}else {
$(this).append('');
}
}
});
//Expand and collapse card content
$('#' + id +'.bc-news-notes .cards_content.notes .moreLink').click(function(e){
e.preventDefault();
if ($(this).find('span.icon-arrow-up').length != 0) {
$(this).parent().find('.moreContent').hide();
$(this).find('span').removeClass('icon-arrow-up');
$(this).html(showMore);
} else {
$(this).parent().find('.moreContent').show();
$(this).find('span').addClass('icon-arrow-up');
$(this).html(showLess);
}
packeryGo(id);
return false;
});
}
});
The Boston College Young Catholic Leaders Program encourages Confirmed high school students to explore the world around them in the context of their lived Catholic faith and through the lens of the Catholic intellectual tradition.
The C21 Center at Boston College invites Catholic parishes in the New England area to join the growing Children's Ministry Partnership (CMP) community! Receive the gift of free creative children's ministry resources to nurture each child's lifelong relationship with God and the Church.
Looking for a virtual prayer community? Join us Wednesdays from 4:00-4:15pm (EDT) on Zoom for a brief time-out to pray â reading the day's Gospel, listening to a brief reflection, offering prayer intentions, and sharing a group prayer relevant to the week. All are welcome!