X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=django_simple%2Ftodo%2Ftemplates%2Fdetails.html;h=482ef8c987b793c08ad78ea7702e20f1098e7ee6;hb=b3cd3f7d9ed8c4683b8e13aee4c34ed4863d4788;hp=b5837883ef14989bfb7d3cb04d982538f563eb0b;hpb=81afcbe06c2b06f623c30db8f3e83c7fca106b97;p=django_unres.git diff --git a/django_simple/todo/templates/details.html b/django_simple/todo/templates/details.html index b583788..482ef8c 100644 --- a/django_simple/todo/templates/details.html +++ b/django_simple/todo/templates/details.html @@ -759,7 +759,7 @@ function display_model(numstr){ {% if task.md_pdbref %} var stage = new NGL.Stage("viewport_M"+numstr); - stage.setParameters( { backgroundColor: "white" } ); + stage.setParameters( { backgroundColor: "white",fogFar: 60, fogNear: 45 } ); Promise.all([ stage.loadFile( "/myfiles/download-file/{{task.jobdirname}}/plik1.pdb" ,{defaultRepresentation: false}) .then( function( o ){ o.addRepresentation( "cartoon",{ name:"ref", color:"grey" @@ -817,7 +817,7 @@ function display_model(numstr){ } ); {% else %} var stage = new NGL.Stage("viewport_M"+numstr); - stage.setParameters( { backgroundColor: "white" } ); + stage.setParameters( { backgroundColor: "white",fogFar: 60, fogNear: 45 } ); stage.loadFile( "/myfiles/download-file/{{task.jobdirname}}/MODEL"+numstr+".pdb",{defaultRepresentation: false}) .then( function( o ){ o.addRepresentation( "cartoon",{ name: "unres", color: "residueindex",colorScale:["blue","cyan", "green",