Skip to content

Instantly share code, notes, and snippets.

myown : {
name : 'MyOwn',
fields : {
og : {
name : 'Open Graph',
icon : 'opengraph',
fields : {
location : {name: 'Location', icon: 'location', type: 'string', cs: true, input: 'text', operators: ['exists', 'contains', 'substr', 'contains_any', 'contains_near', 'different', 'regex_partial', 'regex_exact']},
}
},
myown : {
name : 'MyOwn',
fields : {
og : {
name : 'Open Graph',
icon : 'opengraph',
fields : {
location : {name: 'Location', icon: 'location', type: 'string', cs: true, input: 'text', operators: ['exists', 'contains', 'substr', 'contains_any', 'contains_near', 'different', 'regex_partial', 'regex_exact']},
}
},
@tokapeb
tokapeb / gist:2823239
Created May 29, 2012 08:14
Adding a custom query example
myown : {
name : 'MyOwn',
fields : {
og : {
name : 'Open Graph',
icon : 'opengraph',
fields : {
location : {name: 'Location', icon: 'location', type: 'string', cs: true, input: 'text', operators: ['exists', 'contains', 'substr', 'contains_any', 'contains_near', 'different', 'regex_partial', 'regex_exact']},
}
},
@tokapeb
tokapeb / gist:2823259
Created May 29, 2012 08:18
Configuration options as JavaScript Object
var editor = new JCSDLGui($("#editor"), {
animate : 200
});
@tokapeb
tokapeb / gist:2823298
Created May 29, 2012 08:26
Override css example
<link rel="stylesheet" type="text/css" href="yourCssFile.css" />
@tokapeb
tokapeb / Container element
Created June 20, 2012 15:06
Container element
<div id="jcsdl"></div>
@tokapeb
tokapeb / gist:2960395
Created June 20, 2012 15:11
Initialize the JavaScript
<script src="https://gist.github.com/2823259.js?file=gistfile1.js" type="text/javascript"></script>
@tokapeb
tokapeb / Defined properties
Created June 20, 2012 16:06
Defined properties
different : {
//label : 'Different',
label : 'MyCustomLabelDifferent',
//description : 'Is different than the following.',
description : 'My custom description',
code : '!='
},
@tokapeb
tokapeb / gist:2960692
Created June 20, 2012 16:07
Defined properties
different : {
//label : 'Different',
label : 'MyCustomLabelDifferent',
//description : 'Is different than the following.',
description : 'My custom description',
code : '!='
},
/** @var {Object} GUI config object. */
this.config = $.extend(true, {
animate : 200,
cancelButtton : true,
googleMapsApiKey : '',
mapsOverlay : {
strokeWeight : 0,
//fillColor : '#7585dd',
fillColor : '#2fbbf3',
//fillOpacity : 0.5