-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
113 additions
and
23 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
/********************************************************** | ||
Author :Charles B. Cossé | ||
Organization :Asymptopia Software | Software@theLimit | ||
Website :www.asymptopia.org | ||
Email :[email protected] | ||
Copyright :(C) 2017 Asymptopia Software | ||
License :Apache 2.0 | ||
***********************************************************/ | ||
define(["d3.v4.min"], | ||
function(d3){ | ||
me={} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
/********************************************************** | ||
Author :Charles B. Cossé | ||
Organization :Asymptopia Software | Software@theLimit | ||
Website :www.asymptopia.org | ||
Email :[email protected] | ||
Copyright :(C) 2017 Asymptopia Software | ||
License :Apache 2.0 | ||
***********************************************************/ | ||
define(["activity/ol","util","print","l10n/l10n","colorcfg"],function(ol,util,print,l10n,colorcfg){ | ||
var me={}; | ||
me.popup=document.createElement("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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
/********************************************************** | ||
Organization :Asymptopia Software | Software@theLimit | ||
Website :www.asymptopia.org | ||
Author :Charles B. Cosse | ||
Email :[email protected] | ||
Copyright :(C) 2017 Asymptopia Software | ||
License :Apache 2.0 | ||
***********************************************************/ | ||
var LANGUAGE_NAMES={ | ||
"keys":["en","fr","es","de","it","gr","cn","sw","th"], | ||
"en":"English", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
/********************************************************** | ||
Author :Charles B. Cossé | ||
Organization :Asymptopia Software | Software@theLimit | ||
Website :www.asymptopia.org | ||
Email :[email protected] | ||
Copyright :(C) 2017 Asymptopia Software | ||
License :Apache 2.0 | ||
***********************************************************/ | ||
define(["activity/ol","print","util","colormyworld","humane"], | ||
function(ol,print,util,colormyworld,humane){ | ||
var me={}; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
/********************************************************** | ||
Author :Charles B. Cossé | ||
Organization :Asymptopia Software | Software@theLimit | ||
Website :www.asymptopia.org | ||
Email :[email protected] | ||
Copyright :(C) 2017 Asymptopia Software | ||
License :Apache 2.0 | ||
***********************************************************/ | ||
var RollUpDiv=function(opts){ | ||
var me={}; | ||
|
||
var CB=opts['checkboxCB']; | ||
var callCB=function(e){ | ||
try{ | ||
|
@@ -14,29 +29,29 @@ var RollUpDiv=function(opts){ | |
} | ||
} | ||
|
||
|
||
var solid_id=opts['category'];//handles up to 10 spaces! | ||
for(var dummy=0;dummy<10;dummy++) | ||
solid_id=solid_id.replace(" ","ZZZ");//can't be _ b/c splitting on _ already | ||
|
||
me.head=document.createElement("div"); | ||
me.head.className='roll_up_div'; | ||
me.head.id=solid_id; | ||
|
||
var t=document.createElement("table"); | ||
t.style.width="100%"; | ||
var tr=t.insertRow(-1); | ||
var td; | ||
td=tr.insertCell(-1); | ||
td.className="roll_up_icon_cell";//unused dummy for symmetry | ||
|
||
td=tr.insertCell(-1); | ||
td.align="center"; | ||
me.label=document.createElement("div"); | ||
me.label.className="roll_up_label"; | ||
me.label.innerHTML=opts['roll_up_name']; | ||
td.appendChild(me.label); | ||
/* | ||
/* | ||
if(opts['checkboxCB']){//BASE_LAYERS are laid out differently | ||
td=tr.insertCell(-1); | ||
td.className="roll_up_icon_cell"; | ||
|
@@ -48,7 +63,7 @@ var RollUpDiv=function(opts){ | |
td.appendChild(roll_up_icon); | ||
} | ||
else{if(DEBUG)console.log("no checkboxCB");} | ||
*/ | ||
*/ | ||
td=tr.insertCell(-1); | ||
td.className="roll_up_icon_cell"; | ||
var roll_up_icon=new Image(); | ||
|
@@ -58,26 +73,24 @@ var RollUpDiv=function(opts){ | |
roll_up_icon.src=opts["roll_up_icon_src"]; | ||
td.appendChild(roll_up_icon); | ||
} | ||
|
||
me.head.appendChild(t); | ||
$("#"+opts['parent_id']).append(me.head); | ||
|
||
me.rollup=document.createElement("div"); | ||
me.rollup.id=me.head.id+"_rollup"; | ||
//me.rollup.className=opts['roll_up_class']; | ||
//$("#"+opts['parent_id']).append(me.rollup); | ||
me.head.appendChild(me.rollup); | ||
|
||
$("#"+roll_up_icon.id).click(function(e){ | ||
$(e.target).toggleClass("up"); | ||
$("#"+e.target.id.split("_")[0]+"_rollup").animate({height:'toggle'},300,function(){}); | ||
}); | ||
|
||
me.set_name=function(val){ | ||
me.label.innerHTML=val; | ||
} | ||
|
||
return me; | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
/********************************************************** | ||
Author :Charles B. Cossé | ||
Organization :Asymptopia Software | Software@theLimit | ||
Website :www.asymptopia.org | ||
Email :[email protected] | ||
Copyright :(C) 2017 Asymptopia Software | ||
License :Apache 2.0 | ||
***********************************************************/ | ||
define(["activity/ol","print"],function (ol,print) { | ||
return { | ||
|
||
|