Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
comment and extend slider width
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-froehlich committed Jun 3, 2016
1 parent 97490ff commit 7f410d4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion ExplorViz Server.launch
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="com.google.gwt.eclipse.core.moduleClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.dev.DevMode"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-startupUrl ExplorViz.html -war /Users/alexanderkrause/Desktop/ExplorViz/ExplorViz/war -remoteUI &quot;${gwt_remote_ui_server_port}:${unique_id}&quot; -logLevel INFO -port 8888 -codeServerPort 9997 explorviz.ExplorViz"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-startupUrl ExplorViz.html -war /Users/fabian/Documents/code/Masterprojekt/ExplorViz/war -remoteUI &quot;${gwt_remote_ui_server_port}:${unique_id}&quot; -logLevel INFO -port 8888 -codeServerPort 9997 explorviz.ExplorViz"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="ExplorViz"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-XstartOnFirstThread -Xmx4G"/>
</launchConfiguration>
16 changes: 13 additions & 3 deletions src/explorviz/visualization/experiment/NewExperiment.xtend
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ class NewExperiment implements IPage {
Question Interface
</div>
<div id="expSliderForm">
«getQuestForm(i)»<br>
<button id='expBackBtn'>&lt;&lt; Back</button>
<button id='expSaveBtn'>Save &gt;&gt; </button>
«getQuestForm(i)»
«getButtonCode()»
</div>
</div>
'''.toString())
} else {
html.append('''
«getQuestForm(i)»
«getButtonCode()»
'''.toString())
}
i++;
Expand All @@ -56,6 +56,11 @@ class NewExperiment implements IPage {
def static protected setNextQuestion(int next) {
i = next;
}
def static protected getButtonCode(){
return '''
<button id='expBackBtn'>&lt;&lt; Back</button>
<button id='expSaveBtn'>Save &gt;&gt; </button>'''.toString()
}

def static protected initializeQuestions() {
questions = new ArrayList<String>();
Expand Down Expand Up @@ -85,11 +90,16 @@ class NewExperiment implements IPage {
<input type='radio' name='gender' value='female'> Female
<br>
<input type='radio' name='gender' value='other'> Other
<br>
</form>
'''.toString())
}
def static protected getQuestForm(int i) {
return questions.get(i)
}
def static protected createtFreeTextForm(String label){
var freeText = '''test'''.toString();
}
}
8 changes: 4 additions & 4 deletions src/explorviz/visualization/experiment/NewExperimentJS.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ public static native void init() /*-{
function slideOut() {
$wnd.jQuery('#expSlider').animate({
right : "+=250px"
right : "+=350px"
});
$wnd.jQuery('#expSliderForm').animate({
right : "+=250px"
right : "+=350px"
});
}
;
function slideIn() {
$wnd.jQuery('#expSlider').animate({
right : "-=250px"
right : "-=350px"
})
$wnd.jQuery('#expSliderForm').animate({
right : "-=250px"
right : "-=350px"
})
}
;
Expand Down
4 changes: 2 additions & 2 deletions war/css/expTools.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#expSliderForm {
position: fixed;
top: 40px;
right: -250px;
right: -350px;
background: rgba(204, 204, 204, 0.8);
width: 250px;
width: 350px;
padding: 25px;
height: 75vh;
text-align: left;
Expand Down

0 comments on commit 7f410d4

Please sign in to comment.