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
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
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
{ | |
"id":1503438176369, | |
"title":"Test Product Brazalete - Opción 3", | |
"price":"99.00", | |
"line_price":"99.00", | |
"quantity":1, | |
"sku":"", | |
"grams":0, | |
"properties":[ | |
[ |
NewerOlder