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
var clearAlert = setTimeout(function(){ | |
$(".alert-box.success").fadeOut('slow') | |
}, 5000); | |
$(document).on("click", ".success a.close", function(event){ | |
clearTimeout(clearAlert); | |
}); | |
$(document).on("click", ".alert-box a.close", function(event) { | |
event.preventDefault(); |
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
<html> | |
<head> | |
<title>demo</title> | |
<meta charset="utf-8"/> | |
</head> | |
<body> | |
<div id="data"> | |
</div> | |
<script type="text/javascript" src="jquery.js"></script> |
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
{ | |
"camaras":[ | |
{ | |
"titulo": "Camara 1", | |
"descripcion": "Descripcion: Camara 1", | |
"latitud": "-12.068911566307907", | |
"longitud": "-77.06565856933594", | |
"camara": "CAM01" | |
}, |
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
<html> | |
<head> | |
<title>demo</title> | |
<meta charset="utf-8"/> | |
</head> | |
<body> | |
<div id="data"> | |
</div> | |
<script type="text/javascript" src="jquery.js"></script> |
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
Line 220 template.tpl | |
<h1 class="{ messClasses property='siteHeadingXY' }{ if $berta.settings.heading.position == 'fixed' } xFixed{ /if }" > | |
Line 226 | |
<a href="#">{ $siteHeading }</a> | |
#contentContainer h1 { | |
padding: 0px auto; | |
margin: 0px auto; | |
z-index: 50000; |
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
in the html file | |
<script type="text/javascript" data-main="js/app" src="js/require-jquery.js"></script> | |
in the javascript file | |
require(["jquery", "kendo.web.min"], function($){ | |
$(function() { | |
alert('Require.js!!') |
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
CRUD.class | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target(ElementType.FIELD) | |
public @interface HideInForm { | |
} | |
public List<ObjectField> getFields() { | |
List<ObjectField> fields = new ArrayList<ObjectField>(); | |
List<ObjectField> hiddenFields = new ArrayList<ObjectField>(); |
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
%h1 Images | |
if @images.count == 0 | |
%h3 You have no images | |
@images.each do |image| | |
%h2 | |
%a{href: "/images/#{image.id}"}=image[:title] | |
%p | |
%img{src: image[:url], width: 40} | |
%blockquote=image[:description] | |
%h2 Store a new image |
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 (this.index >= w._cards.length-1) { | |
this.log("on last card, changing next button to submit"); | |
w.changeNextButton(w.args.buttons.submitText, "btn-success"); | |
w.saveAndContinueButton.removeClass("hide"); | |
w.saveAndAddAnotherButton.removeClass("hide"); | |
w._readyToSubmit = true; | |
w.trigger("readySubmit"); | |
} | |
else { |
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
#{extends 'CRUD/layout.html' /} #{set | |
title:messages.get('crud.list.title', type.name) /} | |
<div id="aplicacion"></div> | |
<h2> | |
<i class="icon-user-md"></i> Administración de &{'crud.list.title', type.name} | |
</h2> | |
<p id="crudListAdd"> |
OlderNewer