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 unflatten(data) { | |
if (Object(data) !== data || Array.isArray(data)) { | |
return data; | |
} | |
let regex = /\%?([^%\[\]]+)|\[(\d+)\]/g, | |
resultholder = {}; | |
for (let p in data) { | |
if (data[p]) { | |
let cur = resultholder, |
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
if (!Array.prototype.indexOf) { | |
Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) { | |
"use strict"; | |
if (this == null) { | |
throw new TypeError(); | |
} | |
var t = Object(this); | |
var len = t.length >>> 0; | |
if (len === 0) { | |
return -1; |
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
<div class="jrSlider"> | |
<div class="jrSliderWrapper"> | |
<div class="first" data-bg="/assets/img/img_pacolobaton.jpg"> | |
<div class="caption"> | |
<div class="captionWrapper"> | |
<h2>Todo y Todos por encontrarlos</h2> | |
<p>La diferencia entre perderlos y encontrarlos radica en actuar a tiempo y todos a una, con todos los medios.</p> | |
<p><a href="{{ path('pacolobaton') }}" class="btn">Conoce más</a></p> | |
</div> | |
</div> |
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
=aside-icon($image:none,$width:50px,$height:$width,$pos:left) | |
margin: 2em | |
padding-#{$pos}: $width + 10px | |
line-height: $height | |
background: url($image) no-repeat $pos 0 | |
background-size: $width | |
h2 | |
display: inline-block | |
+aside-icon('http://www.michellefit.ca/wp-content/uploads/2013/11/male-4-icon.png') |
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
module.exports = function(grunt){ | |
grunt.initConfig({ | |
shell: { | |
'options': { | |
'stdout': true, | |
'stderr': true, | |
'failOnError': true | |
}, | |
drushall: { | |
command: 'drush cc all', |
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
/** | |
* Module | |
*/ | |
var module; | |
try { | |
module = angular.module(moduleName); | |
} catch(err) { | |
// named module does not exist, so create one | |
module = angular.module(moduleName, []); | |
} |
NewerOlder