Browse Source

notranslate class

Gregg Tavares 5 years ago
parent
commit
1a9bc4e228
2 changed files with 3 additions and 3 deletions
  1. 1 1
      build/templates/example.template
  2. 2 2
      threejs/lessons/resources/lesson.js

+ 1 - 1
build/templates/example.template

@@ -1,4 +1,4 @@
-<div translate="no" class="threejs_example_container">
+<div translate="no" class="threejs_example_container notranslate">
   <div><iframe class="threejs_example" style="{{width}} {{height}}" src="/threejs/resources/editor.html?url={{{examplePath}}}{{{encodedUrl}}}{{{params}}}"></iframe></div>
   <div><iframe class="threejs_example" style="{{width}} {{height}}" src="/threejs/resources/editor.html?url={{{examplePath}}}{{{encodedUrl}}}{{{params}}}"></iframe></div>
   <a class="threejs_center" href="{{{examplePath}}}{{{url}}}" target="_blank">{{{caption}}}</a>
   <a class="threejs_center" href="{{{examplePath}}}{{{url}}}" target="_blank">{{{caption}}}</a>
 </div>
 </div>

+ 2 - 2
threejs/lessons/resources/lesson.js

@@ -355,14 +355,14 @@ $(document).ready(function($){
   $('pre>code')
   $('pre>code')
     .unwrap()
     .unwrap()
     .replaceWith(function() {
     .replaceWith(function() {
-      return $('<pre class="prettyprint showlinemods" translate="no">' + this.innerHTML + '</pre>');
+      return $('<pre class="prettyprint showlinemods notranslate" translate="no">' + this.innerHTML + '</pre>');
     });
     });
   if (window.prettyPrint) {
   if (window.prettyPrint) {
     window.prettyPrint();
     window.prettyPrint();
   }
   }
   $('span[class=com]')
   $('span[class=com]')
     .replaceWith(function() {
     .replaceWith(function() {
-      return $('<span class="com" translate="yes">' + this.innerHTML + '</span>');
+      return $('<span class="com notranslate" translate="yes">' + this.innerHTML + '</span>');
     });
     });
 
 
   const params = getQueryParams();
   const params = getQueryParams();