diff --git a/public/demo/404.html b/public/demo/404.html
deleted file mode 100644
index 6c3363d..0000000
--- a/public/demo/404.html
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
None shall pass!
-
+
+
+
+
+
+
Add some music to playlist
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
↑
Don't forget to log in, please. It's simple.
+
+
diff --git a/public/javascripts/beathaven/ajax.js b/public/javascripts/beathaven/ajax.js
index 988ae07..84d294f 100644
--- a/public/javascripts/beathaven/ajax.js
+++ b/public/javascripts/beathaven/ajax.js
@@ -16,7 +16,10 @@ var Ajax = {
}
return false;
} else {
+ var display_name = name.split('+').join(' ');
+ yaCounter7596904.hit('/artist/'+ name +'/', display_name, Ajax.getAnchor());
Ajax.setArchor('/artist/'+ name +'/');
+ Ajax.setTitle(display_name);
Pages.renderArtist(data);
beathaven.redrawScrollbar();
}
@@ -24,8 +27,10 @@ var Ajax = {
},
loadSearchPage: function() {
- Ajax.setArchor('/search/');
$.get('/demo/search.html', function(data){
+ yaCounter7596904.hit('/search/', 'Artist Search', Ajax.getAnchor());
+ Ajax.setArchor('/search/');
+ Ajax.setTitle('Artist Search');
$('#data-container .inner').html(data);
beathaven.redrawScrollbar();
$('#search_field').autocomplete({
@@ -62,6 +67,10 @@ var Ajax = {
getAnchor: function() {
return window.location.hash.substring(1);
},
+
+ setTitle: function(title) {
+ document.title = title +' @ BeatHaven';
+ },
detectPage: function() {
if (m = Ajax.getAnchor().match(/\/artist\/(.+)\//)) {
diff --git a/public/javascripts/beathaven/layout.js b/public/javascripts/beathaven/layout.js
index f922525..ab79748 100644
--- a/public/javascripts/beathaven/layout.js
+++ b/public/javascripts/beathaven/layout.js
@@ -1,6 +1,6 @@
$(function(){
if (document.location.host != 'beathaven.org' && document.location.host != 'localhost') {
- document.location.href = 'http://beathaven.org/demo/';
+ document.location.href = 'http://beathaven.org/'+ document.location.hash;
}
beathaven.init();
$(window).resize(beathaven.adjustSizes)
diff --git a/public/demo/search.html b/public/search.html
similarity index 100%
rename from public/demo/search.html
rename to public/search.html
diff --git a/public/demo/whee.html b/public/whee.html
similarity index 100%
rename from public/demo/whee.html
rename to public/whee.html