Skip to content

Instantly share code, notes, and snippets.

$('#jcsdl').jcsdlGui('loadJCSDL', code);
$('#jcsdl').jcsdlGui();
<script type="text/javascript">
$(function() {
JCSDL.onLoad(function() {
$('#jcsdl-edit').jcsdlGui({
...
animate : 2000,
hideTargets : ['interaction', 'facebook', 'myspace', 'digg', '2channel', 'video', 'youtube', 'reddit', 'imdb', 'flickr', 'amazon', 'blog', 'board', 'dailymotion', 'newscred', 'topix', 'augmentation',
'twitter.domains', 'twitter.in_reply_to_screen_name', 'twitter.links', 'twitter.mentions', 'twitter.source', 'twitter.text', 'twitter.place', 'twitter.retweet', 'twitter.retweeted',
'twitter.user.description', 'twitter.user.followers_count', 'twitter.user.follower_ratio', 'twitter.user.friends_count', 'twitter.user.id', 'twitter.user.listed_count', 'twitter.user.location', 'twitter.user.name', 'twitter.user.screen_name', 'twitter.user.statuses_count', 'twitter.user.time_zone', 'twitter.user.url'],
<div id="jcsdl"></div>
<textarea id="jcsdl-code" style="width: 900px; height: 200px;" disabled="true">// JCSDL_MASTER b04591342ee71a2baa468d9d2a340ec8 AND
// JCSDL_VERSION 1.0
// JCSDL_START 0980a5f2ef935c4ed153bf975879eac0 twitter.text,contains_any,27-52
twitter.text contains_any "obama, santorum, gingrich, romney, ronpaul, ron paul"
// JCSDL_END
AND
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>JCSDL Editor | Load query example</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>JCSDL Editor | Save query example</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
var editor = new JCSDLGui('#jcsdl', {
//Change the speed of animation to 0
animate : 0,
//Sets the Map Overlay element color, opacity, and stroke
mapsOverlay : {
strokeWeight : 1,
strokeColor: '#ffffff',
<script type="text/javascript">
var editor = new JCSDLGui("#jcsdl-wo-facebook", {
hideTargets : ['facebook']
});
var editor2 = new JCSDLGui("#jcsdl-wo-amazon-content", {
hideTargets : ['amazon.content']
});
<script type="text/javascript">
var options = {
definition: {
operators : {
different : {
label : 'MyCustomLabelDifferent',
description : 'My custom description...'
}
}
}
<script type="text/javascript">
var options = {
definition: {
operators : {
different : {
label : 'MyCustomLabelDifferent',
description : 'My custom description...'
}
}
}