Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes from the meeting with JB #17

Open
anokhikastia opened this issue Nov 5, 2015 · 1 comment
Open

Notes from the meeting with JB #17

anokhikastia opened this issue Nov 5, 2015 · 1 comment

Comments

@anokhikastia
Copy link
Collaborator

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 [href]").each(function(){var arr=$(this).attr('href').split("/");refs.push(arr[arr.length-1])});
//.paper-stuff is where papers/articles are stored.

The loop in brainspell.php:
$str='

    ';
    foreach($hits as $hit):
    $str.="
  • <div class="paper-stuff">\n";
    $str.="

    <a href="".$rootdir."article/".$hit->PMID."">";
    $str.=$hit->Title."

    \n";
    $str.="<p class="info">".$hit->Reference." (".sprintf("%.0f",$hit->score*100)."%)

    \n";
    $str.="
  • \n";
    endforeach;
    $str=$str."
\n";
list article references that respond to query

@jbpoline
Copy link
Collaborator

jbpoline commented Nov 5, 2015

Thanks - Let's review this together tomorrow !
I also recommend that we all have a quick go at some introduction to html/javascript : this will be time well invested (so much will be done in javascript in the years to come )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants