basic updates to UI, some js clean-up (moving some literals into goatConstants)
This commit is contained in:
parent
1c72097c24
commit
d414d1a5e4
@ -64,7 +64,7 @@
|
|||||||
<header id="header">
|
<header id="header">
|
||||||
<!--logo start-->
|
<!--logo start-->
|
||||||
<div class="brand">
|
<div class="brand">
|
||||||
<a href="/webgoat/start.mvc" class="logo"><span>Web</span>Goat</a>
|
<a href="${pageContext.request.contextPath}/start.mvc" class="logo"><span>Web</span>Goat</a>
|
||||||
</div>
|
</div>
|
||||||
<!--logo end-->
|
<!--logo end-->
|
||||||
<div class="toggle-navigation toggle-left">
|
<div class="toggle-navigation toggle-left">
|
||||||
@ -74,6 +74,11 @@
|
|||||||
<span id="lessonTitle">Welcome To WebGoat</span>
|
<span id="lessonTitle">Welcome To WebGoat</span>
|
||||||
|
|
||||||
</div><!--toggle navigation end-->
|
</div><!--toggle navigation end-->
|
||||||
|
<div id="topLinks">
|
||||||
|
<span><a href="#">About</a></span><br/>
|
||||||
|
<span><a href="#">Contact</a></span><br/>
|
||||||
|
<span><a href="${pageContext.request.contextPath}/j_spring_security_logout">Log out</a></span><br/>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!--sidebar left start-->
|
<!--sidebar left start-->
|
||||||
|
@ -747,4 +747,10 @@ fieldset[disabled] .btn-warning.active {
|
|||||||
#buttonPanel {
|
#buttonPanel {
|
||||||
padding:3px;
|
padding:3px;
|
||||||
width:auto;
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#topLinks {
|
||||||
|
float:right;
|
||||||
|
margin-right:5px;
|
||||||
|
margin-top:3px;
|
||||||
}
|
}
|
@ -11,6 +11,11 @@ var goatConstants = {
|
|||||||
children:null,
|
children:null,
|
||||||
class:'fa-bars static'
|
class:'fa-bars static'
|
||||||
}],
|
}],
|
||||||
lessonService: 'service/lessonmenu.mvc'
|
lessonService: 'service/lessonmenu.mvc',
|
||||||
|
cookieService: 'service/cookies_widget.mvc',
|
||||||
|
hintService:'service/hint_widget.mvc',
|
||||||
|
sourceService:'service/source.mvc',
|
||||||
|
solutionService:'service/solution.mvc',
|
||||||
|
lessonPlanService:'service/lessonplan.mvc'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -24,27 +24,27 @@ goat.utils = {
|
|||||||
return title;
|
return title;
|
||||||
},
|
},
|
||||||
showLessonCookiesAndParams: function() {
|
showLessonCookiesAndParams: function() {
|
||||||
$.get("service/cookies_widget.mvc", {}, function(reply) {
|
$.get(goatConstants.cookieService, {}, function(reply) {
|
||||||
$("#lesson_cookies").html(reply);
|
$("#lesson_cookies").html(reply);
|
||||||
}, "html");
|
}, "html");
|
||||||
},
|
},
|
||||||
showLessonHint: function() {
|
showLessonHint: function() {
|
||||||
$.get("service/hint_widget.mvc", {}, function(reply) {
|
$.get(goatConstants.hintService, {}, function(reply) {
|
||||||
$("#lesson_hint").html(reply);
|
$("#lesson_hint").html(reply);
|
||||||
}, "html");
|
}, "html");
|
||||||
},
|
},
|
||||||
showLessonSource: function() {
|
showLessonSource: function() {
|
||||||
$.get("service/source.mvc", {}, function(reply) {
|
$.get(goatConstants.sourceService, {}, function(reply) {
|
||||||
$("#lesson_source").html("<pre>"+reply+"</pre>");
|
$("#lesson_source").html("<pre>"+reply+"</pre>");
|
||||||
}, "html");
|
}, "html");
|
||||||
},
|
},
|
||||||
showLessonSolution: function() {
|
showLessonSolution: function() {
|
||||||
$.get("service/solution.mvc", {}, function(reply) {
|
$.get(goatConstants.solutionService, {}, function(reply) {
|
||||||
$("#lesson_solution").html(reply);
|
$("#lesson_solution").html(reply);
|
||||||
}, "html");
|
}, "html");
|
||||||
},
|
},
|
||||||
showLessonPlan: function() {
|
showLessonPlan: function() {
|
||||||
$.get("service/lessonplan.mvc", {}, function(reply) {
|
$.get(goatConstants.lessonPlanService, {}, function(reply) {
|
||||||
$("#lesson_plan").html(reply);
|
$("#lesson_plan").html(reply);
|
||||||
}, "html");
|
}, "html");
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,8 @@ function submitXHR(){
|
|||||||
|
|
||||||
document.getElementById("responseArea").innerHTML="";
|
document.getElementById("responseArea").innerHTML="";
|
||||||
|
|
||||||
alert("creating XHR request for: " + document.getElementById("requestedURL").value);
|
//alert("creating XHR request for: " + document.getElementById("requestedURL").value);
|
||||||
|
console.log("creating XHR request for: " + document.getElementById("requestedURL").value);
|
||||||
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user