You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ts...@apache.org on 2015/05/30 07:03:37 UTC

[11/26] drill git commit: aasgsdgsd

aasgsdgsd


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/0283a9ed
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/0283a9ed
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/0283a9ed

Branch: refs/heads/gh-pages
Commit: 0283a9ed482130c6c375ab1b32cb3a103fcca04c
Parents: f241403
Author: Elliot Berry <el...@Marks-iMac-2.local>
Authored: Fri May 29 11:56:54 2015 -0400
Committer: Elliot Berry <el...@Marks-iMac-2.local>
Committed: Fri May 29 11:56:54 2015 -0400

----------------------------------------------------------------------
 _layouts/default.html |  2 +-
 _plugins/bodyClass.rb | 34 ----------------------------------
 js/script.js          |  8 ++++++++
 3 files changed, 9 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/0283a9ed/_layouts/default.html
----------------------------------------------------------------------
diff --git a/_layouts/default.html b/_layouts/default.html
index 4059872..ccb47db 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -3,7 +3,7 @@
 
 {% include head.html %}
 
-<body onResize="resized();" class="{% body_class %}">
+<body onResize="resized();">
   <div class="page-wrap">
     {% include menu.html %}
     {{ content }}

http://git-wip-us.apache.org/repos/asf/drill/blob/0283a9ed/_plugins/bodyClass.rb
----------------------------------------------------------------------
diff --git a/_plugins/bodyClass.rb b/_plugins/bodyClass.rb
deleted file mode 100644
index 876121f..0000000
--- a/_plugins/bodyClass.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-class BodyClassTag < Liquid::Tag  
-
-  def generate_body_class(prefix, id)
-    id = id.gsub(/\.\w*?$/, '').gsub(/[-\/]/, '_').gsub(/^_/, '') # Remove extension from url, replace '-' and '/' with underscore, Remove leading '_'
-
-    case prefix
-    when "class"
-      prefix = ""
-    else
-      prefix = "#{prefix}_"
-    end
-
-    "#{prefix}#{id}"
-  end
-
-  def render(context)
-    page = context.environments.first["page"]
-    classes = []
-
-    %w[class url categories tags layout].each do |prop|
-      next unless page.has_key?(prop)
-      if page[prop].kind_of?(Array)
-        page[prop].each { |proper| classes.push generate_body_class(prop, proper) }
-      else
-        classes.push generate_body_class(prop, page[prop])
-      end
-    end
-
-    classes.join(" ")
-  end
-
-end
-
-Liquid::Template.register_tag('body_class', BodyClassTag)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/drill/blob/0283a9ed/js/script.js
----------------------------------------------------------------------
diff --git a/js/script.js b/js/script.js
index 1e98b8d..b68d97d 100755
--- a/js/script.js
+++ b/js/script.js
@@ -37,6 +37,14 @@ $(document).ready(function(e) {
 	resized();
 	
 	$(window).scroll(onScroll);
+
+	function getParameterByName(name) {
+    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
+    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
+        results = regex.exec(location.search);
+        alert(results);
+    return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
+	}
 });
 
 var reel_currentIndex = 0;