浏览代码

Update Dists

Reddo 5 年之前
父节点
当前提交
1edbffb972
共有 3 个文件被更改,包括 54 次插入9 次删除
  1. 6 3
      The Obelisk.haml
  2. 0 0
      dist/The Obelisk.html
  3. 48 6
      js/Application.js

+ 6 - 3
The Obelisk.haml

@@ -78,10 +78,13 @@
               #roomExitsHolder
                 %p.roomExitsHeader="Exits:"
                 #roomExits
+    -###########
+    -# Relative File for Debugging
     %script{:type => "text/javascript", :charset=>"utf8", :src => "../js/Application.js"}
-    -#= "<script id=\"ApplicationJS\" type=\"text/javascript\", charset=\"utf8\", src=\"data:application/javascript," + (URI.encode((File.read "js/Application.js").gsub("console.debug(", "//"))) + "\"></script>";
-    -#%script#ApplicationJS{:type => "text/javascript"}
-    -#  = (File.read "js/Application.js").gsub("console.debug(", "//")
+    -###########
+    -# Optimized No Debug Data URL
+    -#= "<script id=\"ApplicationJS\" type=\"text/javascript\", charset=\"utf8\", src=\"data:application/javascript," + (URI.encode("(function(){\n" + (File.read "js/Application.js").gsub("console.debug(", "//")) + "\n})()") + "\"></script>";
+    -###########
     %style{:media=>"screen", :type=>"text/css"}
       = File.read "stylesheets/fonts.css"
     %style{:media=>"screen", :type=>"text/css"}

文件差异内容过多而无法显示
+ 0 - 0
dist/The Obelisk.html


文件差异内容过多而无法显示
+ 48 - 6
js/Application.js


部分文件因为文件数量过多而无法显示