Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hopeinstoughton_www/wp-content/plugins/his-schedule/ |
Upload File : |
Dropzone.autoDiscover = false;
jQuery(function() {
let $ = jQuery.noConflict();
let $dz = $('#dz');
let url = $dz.attr('href');
let name = $dz.attr('name');
let dz = $dz.dropzone({
paramName: name,
url: url,
method: 'post',
init: function() {
this.on('success', file => {
let json = JSON.parse(file.xhr.responseText);
if (name == 'schedule_map') {
if (json && json.url) {
window.location.href = json.url;
}
} else if (name == 'schedule_edit') {
if (json && json.url && json.status == 10) {
window.location.href = json.url;
}
}
});
}
});
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&")
.replace(/</g, "<")
.replace(/>/g, ">")
.replace(/"/g, """)
.replace(/'/g, "'");
}
// once uploaded, redisplay current page
$('.bind-editable').each(function() {
var $this = $(this);
$this.editable($this.attr('href'), {
data: function (revert, settings) {
return $this.data('value');
},
tooltip: "Click to edit...",
cssclass: 'inline-editing',
style: "inherit",
callback: function (value, settings) {
let safevalue = escapeHtml(value);
$(this).html(safevalue);
$this.attr('data-value', value)
.data('value', value);
}
});
});
$('div.entry-content select.user-select').on('change', function(e) {
$('.person.hilite').removeClass('hilite');
let value = $(this).val();
if (parseInt(value)) {
$('.person[data-tag="' + value + '"]').addClass('hilite');
} else {
value = '';
}
$('.interactive-schedule a.action-export').each(function() {
var $link = $(this);
var year = $link.data('year');
var type = $link.data('type');
$link.attr('href', '?action=download&format=' + type + '&yr=' + year + '&hilite=' + value);
});
});
$('.bind-spiffy-change').on('change', function(e) {
var $this = $(this);
var base = $this.data('base');
var param = $this.val();
sessionStorage.scrollTop = $(window).scrollTop();
document.location.href = base + param;
});
});