-1) {
var s = source.indexOf("", e);
// Add to scripts array
scripts.push(source.substring(s_e+1, e));
// Strip from source
source = source.substring(0, s) + source.substring(e_e+1);
}
//alert('scripts.length: ' + scripts.length);
// Loop through every script collected and eval it
for(var i=0; i
0) {
for (var i = 0; i < process_indicator.length; i++) {
//process_indicator[i].style.border = '2px solid red';
infiniteScroll1.show(process_indicator[i]);
}
if (infiniteScroll1.process_indicator_scroll == 'yes') {
process_indicator[0].scrollIntoView(true);
}
}
}
},
stop_process_indicator: function() {
var process_indicator;
if (infiniteScroll1.process_indicator) {
process_indicator = infiniteScroll1.getElementsByClass(infiniteScroll1.process_indicator, '', infiniteScroll1.ajax_container);
//alert('process_indicator.length: ' + process_indicator.length);
if (process_indicator.length > 0) {
for (var i = 0; i < process_indicator.length; i++) {
infiniteScroll1.hide(process_indicator[i]);
}
}
}
},
remove_class_elements: function(parent_element, class_name) {
var class_elements;
if (class_name) {
class_elements = infiniteScroll1.getElementsByClass(class_name, '', parent_element);
//alert('class_elements.length: ' + class_elements.length);
if (class_elements.length > 0) {
for (var i = 0; i < class_elements.length; i++) {
parent_element.removeChild(class_elements[i]);
}
}
}
},
continuous_scroll: function() {
//alert('continuous_scroll');
if (infiniteScroll1.ajax_container.scrollTop > infiniteScroll1.trigger_scroll_pos)
{
//alert('start scroll ' + infiniteScrollData1.continuous_scroll_pagination_segment + '|' + infiniteScroll1.continuous_scroll_completed_segment);
if (infiniteScrollData1.continuous_scroll_pagination_segment != infiniteScroll1.continuous_scroll_completed_segment) {
infiniteScroll1.fetchData(infiniteScrollData1.continuous_scroll_pagination_segment);
}
}
},
init: function() {
var data_pagination_number;
infiniteScroll1.ajax_container = document.getElementById(infiniteScroll1.ajax_container_id);
if (!infiniteScroll1.ajax_container) {
alert(infiniteScroll1.no_container_msg);
return;
}
if (infiniteScroll1.next_chunk_link == '') { // there is no "More" link
//alert('continuous_scroll_pagination_segment: ' + infiniteScrollData1.continuous_scroll_pagination_segment);
if (infiniteScrollData1.continuous_scroll_pagination_segment) { // there are data to scroll
infiniteScroll1.max_scroll_pos = infiniteScroll1.ajax_container.scrollHeight - infiniteScroll1.ajax_container.clientHeight;
infiniteScroll1.trigger_scroll_pos = Math.round(infiniteScroll1.max_scroll_pos / 100 * infiniteScroll1.load_next_chunk_at_percent);
//alert('1 max_scroll_pos: ' + infiniteScroll1.max_scroll_pos);
//alert('1 trigger_scroll_pos: ' + infiniteScroll1.trigger_scroll_pos);
infiniteScroll1.ajax_container.onscroll = infiniteScroll1.continuous_scroll;
infiniteScroll1.continuous_scroll();
}
}
}
}
infiniteScroll1.addEvent(window, 'load', infiniteScroll1.init, false);
//]]>
We talk to Gareth Gates about his career in musical theatre, creative freedom and a possible future album …
Read more
Ahead of the opening of The Night Alive Charlie Kenber speaks to playwright and director Conor McPherson about the play, his process and the supernatural
Read more
Ahead of the Greenwich + Docklands International Festival's return to London, Charlie Kenber caught up with Associate Director of the festival, and Co-Artistic Director of Tangled Feet, Nathan Curry
Read more
Tom Hunter goes behind the scenes of the modern press launch with arts PR specialist Chloé Nelkin
Read more
With theatre and its related forms becoming increasingly digitalised, it is important to keep track of the impact on the industry. Charlie Kenber muses on this key development, and suggests that digital interaction with the dynamic of time can render theatre more, and not less, immediate.
Read more
Ahead of her latest production at Shakespeare's Globe Charlie Kenber catches up with actress - and winner of two Olivier Awards - Samantha Spiro…
Read more
Tom Hunter talks to Graham White about adapting J.G. Ballard's classic novels The Drowned World and Concrete Island for radio as part of BBC Radio 4’s new Dangerous Visions season of dramas exploring future dystopias.
Read more
Whether you’re a budding author, an actor researching for a part or just like being somewhere busy, these venues all provide great spots to sit back, relax and enjoy the company of a thousand strangers. So bring a book, put your feet up and enjoy.
Read more