forked from r03ert0/brainspell
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
From today's morning meeting with JB, I wrote down some notes. Here they are:
From brainspell-search.js:
configureTemplateImage() //change the size of the window to fit the size of the brain
drawTemplateImage: There are various channels for colors in viewing the brain.
tmpl_px.data[ i ] =val; //red
tmpl_px.data[ i+1 ]=val; //green
tmpl_px.data[ i+2 ]=val; // blue channel
tmpl_px.data[ i+3 ]=255; //alpha channel (transparancy)
loadLocations() : load the locations. Since we don't want to load all of them, when 3 are loaded we just display them.
//.paper-stuff is where papers/articles are stored.
The loop in brainspell.php:
$str='
- ';
- <div class="paper-stuff">\n";
$str.="<a href="".$rootdir."article/".$hit->PMID."">";
\n";
$str.=$hit->Title."
$str.="<p class="info">".$hit->Reference." (".sprintf("%.0f",$hit->score*100)."%)\n";
$str.=" \n";
foreach($hits as $hit):
$str.="
endforeach;
$str=$str."
list article references that respond to query