IMLeagues


IMLeagues // Fix for IE ignoring relative base tags. (function() { var baseTag = document.getElementsByTagName(‘base’)[0]; baseTag.href = baseTag.href; })(); ‘ + msg + ”, fadeIn: 500, fadeOut: 500, showOverlay: isShowOverlay, centerY: false, css: { position: ‘fixed’, top: ‘0’, left: ‘50%’, width: width + ‘px’, margin: ‘0 0 0 -‘ + width / 2 + ‘px’, border: ‘none’, padding: ‘5px’, ‘font-weight’: ‘bold’, backgroundColor: ‘#f3e3a5′, //’-webkit-border-radius’: ‘6px’, //’-moz-border-radius’: ‘6px’, ‘-webkit-border-radius’: ‘0 0 6px 6px’, ‘-moz-border-radius’: ‘0 0 6px 6px’, ‘-moz-box-shadow’: ‘1px 1px 1px 1px #222222’, ‘-webkit-box-shadow’: ‘1px 1px 1px 1px #222222’, ‘box-shadow’: ‘1px 1px 1px 1px #222222’, opacity: 1, ‘z-index’: ‘1000002’ } }); // automatically hide the message after the number of seconds if (afterSeconds > 0) { setTimeout(‘hideNotification()’, afterSeconds * 1000); } } function hideNotification() { $.unblockUI(); } function ShowGuestLogin(msg) { $(‘#pLoginDetails’).html(msg); $(‘#divLoginModal’).modal(“show”); } function Login() { window.open(‘/Login.aspx’, ‘_self’, ”); } function createAccount(schoolId) { registrationPagePath = ‘/Registration.aspx’; window.open(registrationPagePath, ‘_self’, ”); } function getQueryString(name) { var reg = new RegExp(‘(^|&)’ + name + ‘=([^&]*)(&|$)’, ‘i’); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; } function messageModal(messageHeader, messageBody) { if (!messageBody || messageBody == null || messageBody == ”) { messageBody = messageHeader; messageHeader = ‘Message’; } $(‘#commonMessageModalHeader’).html(messageHeader); $(‘#commonMessageModalBody’).html(messageBody); $(‘#commonMessageModal’).modal(‘show’); } function liveSupportDisabled() { messageModal(‘Support Disabled’, “If you’re seeing this message it means the network you’re connected to is blocking our live chat service. Please talk to your network admin to have them remove the block for www.Comm100.com. If you need support please call or email [email protected]”); } function showProgressPopup() { //reset the progress data. var $modal = $(‘.index-loading-bar’); var $bar = $modal.find(‘.progress-bar’); $bar.attr(‘aria-valuenow’, 0); $bar.css(‘width’, 0 + ‘%’); $bar.text(0 + ‘%’); $modal.modal(‘show’); } function hideProgressPopup() { var $modal = $(‘.index-loading-bar’); var $bar = $modal.find(‘.progress-bar’); $bar.attr(‘aria-valuenow’, 0); $bar.css(‘width’, 0 + ‘%’); $bar.text(0 + ‘%’); $modal.modal(‘hide’); } function updateProgress(taskID, callback) { var $modal = $(‘.index-loading-bar’); var $bar = $modal.find(‘.progress-bar’); $.post(‘/AjaxRequestHandler.ashx?class=imLeagues.Web.Members.Pages.BO.ProgressTask&method=GetProgress&TaskID=’ + taskID, {}, function (response) { var progress = response.Progress; if (progress >= 100) { $bar.attr(‘aria-valuenow’, 100); $bar.css(‘width’, 100 + ‘%’); $bar.text(100 + ‘%’); //$modal.modal(‘hide’); // when the task is completed, then call the callback method callback(response.Data); } else { $bar.attr(‘aria-valuenow’, progress); $bar.css(‘width’, progress + ‘%’); $bar.text(progress + ‘%’); setTimeout(“updateProgress(‘” + taskID + “‘,” + callback + “)”, 100); } }, ‘json’); } ]]>

Source

Leave a Reply

Close Menu
×
×

Cart