1/** 2 * Ten plik powinien zawieraÄ tylko skrypty jquery 3 * z odpowiednim "know-how" 4 * 5 * Closure jest zrobiony po to, żeby nie nadpisywaÄ 6 * innych funkcji już wbudowanych w ehms 7 * Jedyne co powinno wyjÅÄ na zewnÄ trz to $.fn 8 * 9 * Przy tworzeniu elementów warto pamiÄtaÄ o korzystaniu 10 * wyÅÄ cznie z klas z prefixem js (camelCase) do query selectorów 11 * np.: flash jsFlash, alert jsAlert, delete-row jsDeleteRow 12 * 13 * Dodatkowo jeÅli jest coÅ powtarzalne w obrÄbie danego elementu 14 * powinno siÄ użyÄ funkcji tzw. handler, żeby nie powielaÄ kodu 15 * np dla selektora jsFlash bÄdzie odpowiednio jsFlashHandler lub inny 16 * w zależnoÅci od przeznaczenia 17 */ 18(function () { 19 jQuery(document).ready(function ($) { 20 $('.jsFlash').each(function (index, item) { 21 setTimeout(function () { 22 jsFlashFadeOutHandler(item); 23 }, 10000); 24 }); 25 26 $('.jsFlash').on('click', function () { 27 jsFlashFadeOutHandler(this); 28 }); 29 }); 30 31 /** 32 * Fade out handler for flash elements 33 * 34 * @param {HTMLElement} flash Element to handle 35 */ 36 function jsFlashFadeOutHandler(flash) { 37 $(flash).fadeOut(500, function () { 38 $(this).remove(); 39 }); 40 } 41})();
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.