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 | |
### --- Snip --- ### | |
App::after(function($request, $response) | |
{ | |
// HTML Minification | |
if(App::Environment() != 'local' and $response instanceof Illuminate\Http\Response) | |
{ | |
$output = $response->getOriginalContent(); |
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 DOM2JSON(){ | |
var Items = new Array; | |
$(".contenedor").each(function(index){ | |
var label = $(this).children("label").text(); | |
var type = $(this).children("input, textarea")[0]; | |
var name = $(this).children("input, textarea").attr("name") || null; | |
var placeholder = $(this).children("input, textarea").attr("placeholder") || null; | |
Items.push(new Item(label, type, name, placeholder)); | |
}); | |
return Items; |
NewerOlder