domingo 18 noviembre 2018
Inicio Entretenimiento Estilo de vida

Cómo es la nueva herramienta de Twitter

[ad_1]

“);
});

// Initialize the slider
sliderAPI.init();
setTimeout(function(){
sliderAPI.reload();
}, 350);
}

/**
* Destroy the slider.
*
* @return {Void}
*/
function destroySlider() {
// Destroy the slider
sliderAPI.destroy();
// Remove the slides
$frame.children().eq(0).empty();
// Remove the slider API
sliderAPI = null;
}

/**
* Open the lightbox.
*
* @param {Object} $this
* @param {Object} options
*
* @return {Void}
*/
function openLightbox($this, options) {
if (!mobileOptimize) {
// Show the lightbox dimmed background
$modalOverlay.show();

// Add ‘.blur’ class to elements to blur them
$containers.addClass(‘blur’);

// Remove ‘.mobile’ class from lightbox and body
$body.removeClass(‘mobile’);
$modal.removeClass(‘mobile’);
}
else {
// Add ‘.mobile’ class to lightbox and body
$body.addClass(‘mobile’);
$modal.addClass(‘mobile’);
}

// Get new dimensions for lightbox based on windows width and height
var viewport = getViewport(),
newDimsions = mobileOptimize ? { width: viewport.width, height: viewport.height } : calculateDimensions(viewport.width – modalBorderOffset, viewport.height – modalBorderOffset, modalWidth, modalHeight);

// Set lightbox title
$modalTitle.html(options.title);

// Set the width and height of the lightbox and add ‘.show’ class
$modal.css({
width: newDimsions.width,
height: newDimsions.height
}).addClass(‘show’);

// Initialize the slider
initializeSlider(options.slides);

// Set modalShowed to true
modalShowed = 1;
}

/**
* Close the lightbox.
*
* @return {Void}
*/
function closeLightbox() {
// Hide the lightbox dimmed background
$modalOverlay.hide();

// Remove ‘.blur’ class from elements to unblur them
$containers.removeClass(‘blur’);

// Remove ‘.show’ class from lightbox
$modal.removeClass(‘show’);

// Remove ‘.mobile’ class from lightbox and body
$body.removeClass(‘mobile’);
$modal.removeClass(‘mobile’);

// Destroy yhe slider
setTimeout(function(){
destroySlider();
}, 600);

// Set modalShowed to false
modalShowed = 0;
}

/**
* Handler function for items click event.
*
* @param {Event} event
*
* @return {Void}
*/
function itemClickHandler(event) {
if (loader) {
return false;
}

var $this = $(this),
$parent = $this.parent();

var data = $parent.data(‘options’),
options = data && eval(“({” + data + “})”) || {};

var preload = [];

// Add first slide cover to preload
if (options.slides[0] && options.slides[0].cover) {
preload.push(options.slides[0].cover);
}

// Show loader
loader = 1;
$parent.addClass(‘loader’);

// Preload images if available then open the lightbox
if (preload.length > 0) {
preloadimages(preload).done(function(img) {
// Hide loader
loader = 0;
$parent.removeClass(‘loader’);

// Open the lightbox
openLightbox($this, options);
});
}
else {
// Open the lightbox
openLightbox($this, options);
}
}

/**
* Handler function for closer elements click event.
*
* @return {Void}
*/
function closersClickHandler() {
if (modalShowed) {
closeLightbox();
}
}

/**
* Handler function for keydown event.
*
* @param {Event} event
*
* @return {Void}
*/
function keyDownHandler(event) {
// Close the lightbox when the Escape key pressed
if (event.keyCode === 27 && modalShowed) {
closeLightbox();
}
}

/**
* Handler function for window resize event.
*
* @return {Void}
*/
function winResizeHandler(event) {
oldMobileOptimize = mobileOptimize;
var viewport = getViewport();
mobileOptimize = viewport.width = 0; i–) {
if (whitespace.indexOf(str.charAt(i)) === -1) {
str = str.substring(0, i + 1);
break;
}
}

return whitespace.indexOf(str.charAt(0)) === -1 ? str : ”;
}

/**
* Get viewport/window size (width and height).
*
* @return {Object}
*/
function getViewport() {
var e = window,
a = ‘inner’;
if (!(‘innerWidth’ in window)) {
a = ‘client’;
e = document.documentElement || document.body;
}
return {
width: e[a + ‘Width’],
height: e[a + ‘Height’]
}
}

/*
window.___gcfg = {lang: “en”};
(function() {
var po = document.createElement(“script”); po.type = “text/javascript”; po.async = true;
po.src = “https://apis.google.com/js/plusone.js”;
var s = document.getElementsByTagName(“script”)[0]; s.parentNode.insertBefore(po, s);
})();
*/

Suscribase a nuestro boletín de noticias para que esté informado de lo que sucede en Panamá y el mundo.

{{message.split(‘~’)[0]}}

TAMBIÉN TE PUEDE INTERESAR

[ad_2]

Fuente: Mujer.com.pa