1/** 2 * @package Joomla.Site 3 * @subpackage Templates.protostar 4 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. 5 * @license GNU General Public License version 2 or later; see LICENSE.txt 6 * @since 3.2 7 */ 8(function($) 9{ 10 $(document).ready(function() 11 { 12 13 var userAgentValue = navigator.userAgent; 14 var isMobile = userAgentValue.match(/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i) ? true : false; 15 16 if (!isMobile) { 17 $('.custom-img-pop-up').append("<button class='close-pop-up-btn'> X </button>"); 18 19 /*if (!sessionStorage.getItem('showPopUp')) { 20 setTimeout( function func() { 21 $('.custom-img-pop-up').fadeIn(); 22 $("html, body").css('overflow','hidden'); 23 sessionStorage.setItem('showPopUp', 'false'); 24 }, 100); 25 }*/ 26 27 if( $.cookie('showOnlyOne') ){ 28 //console.log('yes') 29 //it is still within the day 30 //hide the div 31 $('.custom-img-pop-up').hide(); 32 } else { 33 //console.log('no cookie') 34 var date = new Date(); 35 date.setTime(date.getTime() + (24 * 60 * 60 * 1000)); 36 $.cookie('showOnlyOne', 'showOnlyOne', { expires: date }); 37 setTimeout( function func() { 38 $('.custom-img-pop-up').fadeIn(); 39 $("html, body").css('overflow','hidden'); 40 sessionStorage.setItem('showPopUp', 'false'); 41 }, 100); 42 } 43 setTimeout( function func() { 44 $('.custom-img-pop-up').fadeOut(); 45 $("html, body").css('overflow','visible'); 46 47 }, 3000); 48 $('.close-pop-up-btn').on('click', function() { 49 $('.custom-img-pop-up').fadeOut(); 50 $("html, body").css('overflow','visible'); 51 }); 52 } 53 54 }) 55})(jQuery);
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.