????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/./tempvsty/pontiacques.org/wp-content/themes/layerswp/core/widgets/js/ |
Upload File : |
/**
* Slider Widget JS file
*
* This file contains functions relating to the Slider Widget
*
* @package Layers
* @since Layers 1.0.0
* Contents
* 1 - Curreny Slide Focussing
*
* Author: Obox Themes
* Author URI: http://www.oboxthemes.com/
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
jQuery(document).ready(function($){
/**
* 1 - Curreny Slide Focussing
*/
$(document).on( 'focus click' , 'ul[id^="slide_list_"] li a.layers-accordion-title, ul[id^="slide_list_"] li input', function(e){
// Set focus slide
$widget = $(this).closest( '.widget' );
$li = $(this).closest( 'li.layers-accordion-item' );
if( undefined !== $li.data('guid') ){
$slide_index = $li.index();
$slide_guid = $li.data('guid');
layers_set_slide_index( $widget, $slide_index, $slide_guid );
}
});
function layers_set_slide_index( $widget, $slide_index, $slide_guid ){
if( undefined !== $widget ){
$widget.find( 'input[data-focus-slide="true"]' ).val( $slide_index );
}
}
/**
* 2 - Slide Title Update
*/
$(document).on( 'keyup' , 'ul[id^="slide_list_"] input[id*="-title"]' , function(e){
// "Hi Mom"
$that = $(this);
// Set the string value
$val = $that.val().toString().substr( 0 , 51 );
// Set the Title
$string = ': ' + ( $val.length > 50 ? $val + '...' : $val );
// Update the accordian title
$that.closest( '.layers-accordion-item' ).find( 'span.layers-detail' ).text( $string );
});
}); //jQuery