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:39 UTC
[13/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/5f066c8e
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/5f066c8e
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/5f066c8e
Branch: refs/heads/gh-pages
Commit: 5f066c8e09d3a2f9ab316bdd80cfc36cfb3b0743
Parents: eb7e446
Author: Elliot Berry <el...@Marks-iMac-2.local>
Authored: Fri May 29 12:01:14 2015 -0400
Committer: Elliot Berry <el...@Marks-iMac-2.local>
Committed: Fri May 29 12:01:14 2015 -0400
----------------------------------------------------------------------
js/script.js | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/drill/blob/5f066c8e/js/script.js
----------------------------------------------------------------------
diff --git a/js/script.js b/js/script.js
index bd99f3f..fa39fd6 100755
--- a/js/script.js
+++ b/js/script.js
@@ -38,12 +38,15 @@ $(document).ready(function(e) {
$(window).scroll(onScroll);
-
- name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
- var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
- results = regex.exec(location.search);
- alert(results);
-
+ var pathname = window.location.pathname;
+ var pathSlashesReplaced = pathname.replace(/\//g, " ");
+ var pathSlashesReplacedNoFirstDash = pathSlashesReplaced.replace(" ","");
+ var newClass = pathSlashesReplacedNoFirstDash.replace(/(\.[\s\S]+)/ig, "");
+ $("body").addClass(newClass);
+ if ( $("body").attr("class") == "")
+ {
+ $("body").addClass("class");
+ }
});
var reel_currentIndex = 0;