1/** 2 * JEvents Component for Joomla! 3.x 3 * 4 * @version $Id: view_detailJQ.js 1539 2010-12-07 10:30:01Z geraintedwards $ 5 * @package JEvents 6 * @copyright Copyright (C) 2008--2025 GWESystems Ltd, 2006-2008 JEvents Project Group 7 * @license GNU/GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html 8 * @link http://www.jevents.net 9 */ 10 11function jevSetupAddLink() { 12 var classes = ["td.cal_td_today" 13 , "td.cal_td_today" 14 , "td.cal_td_daysnoevents" 15 , "td.cal_td_dayshasevents" 16 , "td.jev_daynoevents" 17 , "td.jev_today" 18 , "div.jev_daynum" 19 , "td.jev_daynum" 20 , "td.todayclr" 21 , "td.weekdayclr" 22 , "td.sundayclr" 23 , "td.sundayemptyclr" 24 , ".cal_div_daysnoevents" 25 , ".cal_div_today" 26 , "td.cal_today" 27 , "td.cal_daysnoevents" 28 , "td.cal_dayshasevents"]; 29 30 document.querySelectorAll(classes.join(',')).forEach(function (element) { 31 element.addEventListener('mouseover', function (evt) { 32 this.classList.add('showjevadd'); 33 }); 34 element.addEventListener('mouseout', function (evt) { 35 this.classList.remove('showjevadd'); 36 }); 37 }); 38 39} 40 41document.addEventListener('DOMContentLoaded', function () { 42 jevSetupAddLink(); 43 var bootstrap3_enabled = (typeof jQuery().emulateTransitionEnd == 'function'); 44 // move dialog to main body because some template wrap it in a relative positioned element - wrapped to ensure our namespaced bootstrap picks it up! 45 var subwrap = jQuery("<div>", {class: "jevbootstrap"}); 46 subwrap.appendTo("body"); 47 if (jQuery(".action_dialogJQ").length) { 48 jQuery(".action_dialogJQ").appendTo(subwrap); 49 if (bootstrap3_enabled && jQuery(".action_dialogJQ").hasClass('hide')) { 50 jQuery(".action_dialogJQ").removeClass('hide'); 51 } 52 } 53 if (jQuery(".ical_dialogJQ").length) { 54 jQuery(".ical_dialogJQ").appendTo(subwrap); 55 if (bootstrap3_enabled && jQuery(".ical_dialogJQ").hasClass('hide')) { 56 jQuery(".ical_dialogJQ").removeClass('hide'); 57 } 58 } 59}); 60 61 62function clickEditButton() { 63} 64 65function clickIcalSaveButton() { 66} 67 68function closedialog() { 69} 70 71function clickIcalButton() { 72} 73 74function closeical() { 75} 76 77 78function printPage() 79{ 80 var jevents = document.getElementById('jevents'); 81 if (jevents) 82 { 83 parent = jevents.parentNode; 84 while (parent && parent.nodeName !== "HTML") 85 { 86 parent.classList.add('jeventsPrint'); 87 parent = parent.parentNode; 88 } 89 90 var jeventsBody = document.getElementById("jevents_body"); 91 var jeventsBodyParent = jeventsBody.parentNode; 92 var sizex = jeventsBodyParent.offsetWidth; 93 94 var body = document.getElementsByTagName('body')[0]; 95 body.setAttribute('data-jeventswidth', sizex); 96 97 window.print(); 98 99 parent = jevents.parentNode; 100 while (parent && parent.nodeName !== "HTML") 101 { 102 parent.classList.remove('jeventsPrint'); 103 parent = parent.parentNode; 104 } 105 body.removeAttribute('data-jeventswidth'); 106 107 } 108}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.