Файловый менеджер - Редактировать - /home/lmsyaran/public_html/media/com_notifly/js/notifly-core.min.js
Назад
/*! * notifly-core.js * https://www.themexpert.com/ * Version: 1.0.0 * * Copyright ThemeXpert * Released under the MIT license * https://www.themexpert.com/notifly */ !(function($,scope){"use strict";var NotiflyTimeout;var Notifly=scope.Notifly={initialize:function(){console.log(Joomla.getOptions('notifly').params);if(Cookies.get('notifly_hide_message')==='true'){return}this.makeWrapper(this.items);this.checked=!1;this.items=this.getList();this.time=0;this.totalShown=0;this.max_bypage=parseInt(Joomla.getOptions('notifly').params.max_bypage);this.initial_delay=parseInt(Joomla.getOptions('notifly').params.initial_delay)*1000;this.display_time=parseInt(Joomla.getOptions('notifly').params.display_time)*1000;this.delay_time=parseInt(Joomla.getOptions('notifly').params.delay_time)*1000;this.showList(this.items);$('#notifly-wrapper #text,#notifly-wrapper #image').on('click',function(){Notifly.updateClickLog()});$('#notifly-wrapper #close').on('click',function(){Notifly.hideMessage()});if(!this.checked){if($(window).width()<768){this.mobileFunctions()}else{this.desktopFunctions()}this.checked=!0}},makeWrapper:function(){var wrapperWidth=Joomla.getOptions('notifly').params.wrapper_width;var htmlNotifly='<div id="notifly-wrapper" style="width:'+wrapperWidth+';" class="out"><div class="card-small"><div class="row flex flex--align-vertical">';htmlNotifly=htmlNotifly+'<div id="image" class="col-nano-3"><img src="" /></div>';htmlNotifly=htmlNotifly+'<div id="text" class="col-nano-9"></div>';htmlNotifly=htmlNotifly+'<div class="poweredBy"><i class="svg"><svg width="7" height="13" viewBox="0 0 7 13" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M4.127.496C4.51-.12 5.37.356 5.16 1.07L3.89 5.14H6.22c.483 0 .757.616.464 1.044l-4.338 6.34c-.407.595-1.244.082-1.01-.618L2.72 7.656H.778c-.47 0-.748-.59-.48-1.02L4.13.495z" fill="#F6A623 "></path><path fill="#FEF79E " d="M4.606.867L.778 7.007h2.807l-1.7 5.126 4.337-6.34H3.16"></path></g></svg></i> <span>by</span> <a target="_blank" href="https://www.themexpert.com/notifly?utm_campaign=notifly&utm_medium=powerd_by&utm_source='+window.location.protocol+'//'+window.location.hostname+Joomla.getOptions('notifly').baseurl+'">Notifly</a></div>';htmlNotifly=htmlNotifly+'</div>';if(Joomla.getOptions('notifly').params.allow_close==1){htmlNotifly=htmlNotifly+'<div id="close"><span>x</span></div>'}htmlNotifly=htmlNotifly+'</div></div>';$('body').append(htmlNotifly)},getList:function(){return Joomla.getOptions('notifly').items},showList:function(items){this.initial_delay=parseInt(Joomla.getOptions('notifly').params.initial_delay)*1000;this.display_time=parseInt(Joomla.getOptions('notifly').params.display_time)*1000;this.delay_time=parseInt(Joomla.getOptions('notifly').params.delay_time)*1000;this.time=this.initial_delay;$.each(items,function(index,item){if(Notifly.totalShown>Notifly.max_bypage){return}var explode=function(){var converter=new showdown.Converter();var renderedHtml=converter.makeHtml(item.message);Notifly.showMessage(index,renderedHtml,item.image)};setTimeout(explode,Notifly.time);Notifly.time=Notifly.time+Notifly.display_time+Notifly.delay_time;Notifly.totalShown++});if(Joomla.getOptions('notifly').params.notifly_loop=='1'){setTimeout(function(){if(Notifly.totalShown>Notifly.max_bypage){return}Notifly.destroy();Notifly.initialize()},Notifly.time+Notifly.initial_delay)}},showMessage:function(index,text,image){if(Cookies.get('notifly_hide_message')==='true'){return}$('#notifly-wrapper #text').html(text);$('#notifly-wrapper #image img').attr('src',image);$('#notifly-wrapper').show().removeClass('out').addClass('active');setTimeout(function(){$('#notifly-wrapper').removeClass('active').addClass('out').fadeOut('fast')},Notifly.display_time);this.updateViewLog()},hideMessage:function(){$('#notifly-wrapper').removeClass('active').addClass('out').fadeOut('fast');var expire_cookie=Joomla.getOptions('notifly').params.expire_cookie;expire_cookie=(expire_cookie*60*60);Cookies.set('notifly_hide_message','true',{expires:expire_cookie})},updateViewLog:function(){if(Joomla.getOptions('notifly').params.enable_hitcounter=='0')return;var updateViewLogInfo=jQuery.get(Joomla.getOptions('notifly').baseurl+"/index.php?option=com_ajax&plugin=notifly&format=json",function(data,status){if(status=!'success'){console.error('failed to update notifly hitlog!')}})},updateClickLog:function(){if(Joomla.getOptions('notifly').params.enable_hitcounter=='0')return;var updateClickLogInfo=jQuery.get(Joomla.getOptions('notifly').baseurl+"/index.php?option=com_ajax&plugin=notifly&action=click&format=json",function(data,status){if(status=!'success'){console.error('failed to update notifly clicklog!')}})},mobileFunctions:function(){if(Joomla.getOptions('notifly').params.hide_mobile=='1'){this.destroy()}else if(!$('#notifly-wrapper').length){this.initialize()}},desktopFunctions:function(){if(Joomla.getOptions('notifly').params.hide_desktop=='1'){this.destroy()}else if(!$('#notifly-wrapper').length){this.initialize()}},destroy:function(){$('#notifly-wrapper').remove()},resize:function(){if($(window).width()<768){this.mobileFunctions()}else{this.desktopFunctions()}}};$(function(){Notifly.initialize();$(window).resize(function(){Notifly.resize()})})}(jQuery,window));
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка