This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
animated_sprite = function () { | |
this.vars = { | |
currentIndex : 0, | |
path : null, | |
class : null, | |
interval : null, | |
lenght : null, | |
time : null | |
} | |
this.init = function(sprite, lenght = null, time) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign current_page = paginate.current_page %} | |
{% assign max_limit_pages = current_page | plus: 3 %} | |
{% assign min_limit_pages = current_page | minus: 4 %} | |
<div id="pagination"> | |
<ul id="pagination-list"> | |
{% if paginate.previous %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Contenedor en el cual buscar | |
var parent = $('#data-sections'); | |
var titles = parent.find('h1'); | |
function cleanString(str) { | |
// Función para reemplazar los caracteres especiales, acentos, espacios | |
var str = str | |
.toLowerCase() | |
.replace('á', 'a') | |
.replace('é', 'e') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id":1503438176369, | |
"title":"Test Product Brazalete - Opción 3", | |
"price":"99.00", | |
"line_price":"99.00", | |
"quantity":1, | |
"sku":"", | |
"grams":0, | |
"properties":[ | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SM = { | |
controller : new ScrollMagic.Controller(), | |
elems : { | |
animatedElement : $('#animated-element') | |
} | |
} | |
cleanSM : function() { | |
SM.controller = SM.controller.destroy(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Author: Mukesh Jakhar | |
Description: Rename file while uploading in codeigniter (Controller) | |
*/ | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Image extends CI_Controller { | |
function __construct() { | |
parent::__construct(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.validator.addMethod("extension", function (value, element, param) { | |
param = typeof param === "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif"; | |
return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); | |
}, "Please enter a value with a valid extension.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$.fn.extend({ | |
numAnim: function(options) { | |
if ( ! this.length) | |
return false; | |
this.defaults = { | |
endAt: 2560, | |
numClass: 'autogen-num', | |
duration: 5, // seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function today() { | |
var todaysDate = new Date(); // Gets today's date | |
var year = todaysDate.getFullYear(); // YYYY | |
var month = ("0" + (todaysDate.getMonth() + 1)).slice(-2); // MM | |
var day = ("0" + todaysDate.getDate()).slice(-2); // DD | |
var today = (year +"-"+ month +"-"+ day); // Results in "YYYY-MM-DD" for today's date | |
return today; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% capture email_title %}Gracias por tu compra! {% endcapture %} | |
{% capture email_body %} | |
{% if requires_shipping %} | |
Hola {{ customer.first_name }}, vamos a preparar tu pedido de acuerdo a tus especificaciones. Deberás recibir tus anteojos en un lapso no mayor a 10 días hábiles. Por este medio, te notificaremos el servicio de paquetería que utilizaremos y el número de rastreo.. | |
{% endif %} | |
{% endcapture %} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> |
OlderNewer