Skip Navigation LinksnCoV2019

Page Last Updated :
'; htmlPopup += '
'; document.getElementById('popupdiv').innerHTML = htmlPopup; fadeIn(document.getElementsByClassName('alternatePopup')[0], 350); flag = false; break; } } } catch (err) { } } return flag; } function fadeIn(elem, ms) { if (!elem) return; elem.style.opacity = 0; elem.style.filter = "alpha(opacity=0)"; elem.style.display = "inline-block"; elem.style.visibility = "visible"; if (ms) { var opacity = 0; var timer = setInterval(function () { opacity += 50 / ms; if (opacity >= 1) { clearInterval(timer); opacity = 1; } elem.style.opacity = opacity; elem.style.filter = "alpha(opacity=" + opacity * 100 + ")"; }, 50); } else { elem.style.opacity = 1; elem.style.filter = "alpha(opacity=1)"; } } function fadeOut(elem, ms) { if (!elem) return; if (ms) { var opacity = 1; var timer = setInterval(function () { opacity -= 50 / ms; if (opacity <= 0) { clearInterval(timer); opacity = 0; elem.style.display = "none"; elem.style.visibility = "hidden"; } elem.style.opacity = opacity; elem.style.filter = "alpha(opacity=" + opacity * 100 + ")"; }, 50); } else { elem.style.opacity = 0; elem.style.filter = "alpha(opacity=0)"; elem.style.display = "none"; elem.style.visibility = "hidden"; } } $(function () { //----- OPEN $('[data-popup-open]').on('click', function (e) { var targeted_popup_class = jQuery(this).attr('data-popup-open'); $('[data-popup="' + targeted_popup_class + '"]').fadeIn(350); e.preventDefault(); }); //----- CLOSE $('[data-popup-close]').on('click', function (e) { var targeted_popup_class = jQuery(this).attr('data-popup-close'); $('[data-popup="' + targeted_popup_class + '"]').fadeOut(350); e.preventDefault(); }); }); function closeMe() { fadeOut(document.getElementsByClassName('alternatePopup')[0], 350); } /********************************************************************************************************** ***********************End of Enforce Alt Text Functionality********************************************* ***********************************************************************************************************/ ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // // Set Image in Background using Context menu // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// var getSelectedContent = function (editor) { var content = editor.getSelection().getStartElement().getOuterHtml(); return (content); } $(document).ready(function () { var img = document.getElementsByTagName('img'); for (var i = 0; i < img.length; i++) { try { var div = img[i].parentElement.parentElement; if (div.className.indexOf('ms-rtestate-write') != -1) { var menu = [{ name: 'setBackground', title: 'Set in background', className: 'primary', fun: setBackground(img[i], event) }]; //img[i].contextMenu(menu); } var altext=img[i].alt; var imgtitle = img[i].title; if(altext != "") { img[i].title = altext; } } catch (err) { } } }); function setBackground(ctrl, e) { degugger; } ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // // Disable Fonts from Content Editor Webpart Ribbon // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// ExecuteOrDelayUntilScriptLoaded(rte_dialog_pub, "sp.ui.rte.publishing.js"); //for dialogs on publishing pages function rte_dialog_pub() { //$(".ms-rtestate-write").attr('PrefixStyleSheet', 'myprefix-'); //$(".ms-rtestate-write").attr('AllowParagraphFormatting', 'False'); $(".ms-rtestate-write").attr('AllowFonts', 'False'); } ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // // Exclude Spell Check from People Picker // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// window.onload = function () { try { var a = document.getElementById('excludeContentFromSpellCheck'); var b = a.getElementsByTagName('input'); for (var i = 0; i < b.length; i++) { b[i].setAttribute("excludeFromSpellCheck", "true"); } var c = a.getElementsByTagName('textarea'); for (var i = 0; i < c.length; i++) { c[i].setAttribute("excludeFromSpellCheck", "true"); } } catch (err) { } }; /////////////////////////////////////////////////////////////////////////////////////// ////// Open External link in new window ////////////////////////////////////////////////////////////////////////////////////// var isRedirectionDone = false; var RedirectionTimer; $(window).load(function () { $('a').each(function () { var a = new RegExp('/' + window.location.host + '/'); if (!a.test(this.href)) { if (this.href != "") { if (this.href.indexOf("javascript:") == -1) { // if (this.href.indexOf("#") == -1) { $(this).click(function (event) { event.preventDefault(); event.stopPropagation(); var url = this.href; var htmlPopup = '