gitbook-plugin-jazer
Advanced tools
@@ -6,3 +6,3 @@ <div class="question" style="<% if (config.width){ print("width: "+ config.width +";"); }%> <% if (config.color){ print("border: medium solid "+ config.color +";"); }%>"> | ||
| </div> | ||
| <div class ="editor" data-solution="<%= codes.solution %>" data-validation="<%= codes.validation %>" data-language="<%= codes.language %>" <% if (config.gutter !== undefined){ print("data-gutter='"+ config.gutter.trim() +"'"); }%>style="<% if (config.fontSize){ print("font-size: "+ config.fontSize +";"); }%><% if (config.editorHeight){ print("height: "+ config.editorHeight +";"); }%> <% if (config.editorAutoHeight === "solution" && !config.editorHeight){ print("height: "+ codes.solution.split(/\r\n|\r|\n/).length * config.factor +"px;"); }%><% if (config.editorAutoHeight === "editor" && !config.editorHeight){ print("height: "+ codes.editor.split(/\r\n|\r|\n/).length * config.factor +"px;"); }%>"><%= codes.editor %></div> | ||
| <div class ="editor" data-server="<%= config.server %>" data-solution="<%= codes.solution %>" data-validation="<%= codes.validation %>" data-language="<%= codes.language %>" <% if (config.gutter !== undefined){ print("data-gutter='"+ config.gutter.trim() +"'"); }%>style="<% if (config.fontSize){ print("font-size: "+ config.fontSize +";"); }%><% if (config.editorHeight){ print("height: "+ config.editorHeight +";"); }%> <% if (config.editorAutoHeight === "solution" && !config.editorHeight){ print("height: "+ codes.solution.split(/\r\n|\r|\n/).length * config.factor +"px;"); }%><% if (config.editorAutoHeight === "editor" && !config.editorHeight){ print("height: "+ codes.editor.split(/\r\n|\r|\n/).length * config.factor +"px;"); }%>"><%= codes.editor %></div> | ||
| <div class= "correct"> <i class="fa fa-check-square-o fa-lg"></i> Correct </div> | ||
@@ -9,0 +9,0 @@ <div class= "fail" > <i class="fa fa-times fa-lg"></i> Match Failed</div> |
@@ -12,2 +12,3 @@ require(["gitbook"],function(gitbook){ | ||
| var loadIcon = $question.find('.load-icon'); | ||
| var server = $question.find(".editor").attr('data-server'); | ||
| editor.setTheme("ace/theme/dreamweaver"); | ||
@@ -43,3 +44,3 @@ | ||
| $.ajax({ | ||
| url: 'http://10.6.128.62:8080/', | ||
| url: server || 'http://10.6.128.62:8080/', | ||
| type: 'POST', | ||
@@ -46,0 +47,0 @@ data: JSON.stringify(obj), |
+1
-1
| { | ||
| "name": "gitbook-plugin-jazer", | ||
| "version": "1.0.55", | ||
| "version": "1.0.56", | ||
| "description": "Gitbook exercises validated through a XRegExp and Javascript (work in progress)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
8259184
09463
0.01%