diff --git a/wp-content/themes/score/lib/scripts/asong2u.js b/wp-content/themes/score/lib/scripts/asong2u.js index f2305a8..50a67ea 100644 --- a/wp-content/themes/score/lib/scripts/asong2u.js +++ b/wp-content/themes/score/lib/scripts/asong2u.js @@ -210,6 +210,7 @@ jQuery(window).ready(function() { var nUrl = jQuery(this).html(); if (nUrl == oUrl) { jQuery('#componentWrapper').videoGallery.loadMedia(indice); + jQuery('html, body').animate({ scrollTop: 0 }, 600); return false; } }); diff --git a/wp-content/themes/score/lib/scripts/asong2u.min.js b/wp-content/themes/score/lib/scripts/asong2u.min.js index 42b8208..bbd6a72 100644 --- a/wp-content/themes/score/lib/scripts/asong2u.min.js +++ b/wp-content/themes/score/lib/scripts/asong2u.min.js @@ -1 +1 @@ -function calc_video_height(){if(jQuery("#the_slider").hasClass("fullscreen_div")){jQuery("#componentWrapper").css("height","100%").css("height","-=115px")}else{if(jQuery("#componentWrapper").css("height")!="500px"){jQuery("#componentWrapper").css("height","500px")}}}function updateInfo(){var a=jQuery.fn.videoGallery.getMediaID();if(aIndex!=a&&a>=0){aIndex=a;if(oUrl==""){oUrl=jQuery("#dedicate_this_song_button").attr("href")}var b=jQuery("#postdata-id-"+a).text();var c=jQuery("#postdata-title-"+a).html();var d=jQuery("#postdata-from-to-"+a).html();var e=jQuery("#postdata-artist-"+a).html();var f=jQuery("#postdata-song-"+a).html();var g=jQuery("#postdata-link-"+a).html();var h=jQuery("#postdata-extlink-"+a).html();var i=oUrl+"id/"+b;jQuery("#dedicate_this_song_button").attr("href",i);i="https://www.facebook.com/sharer.php?u="+h;jQuery("#fsbbtn a").attr("href",i);i="http://twitter.com/intent/tweet?source=sharethiscom&url="+h;jQuery("#twtbtn a").attr("href",i);i="https://plusone.google.com/_/+1/confirm?url="+h;jQuery("#gpsbtn a").attr("href",i);i='javascript:void(window.open("http://www.myspace.com/Modules/PostTo/Pages/?u='+h+'"+encodeURIComponent(document.location.toString()),"ptm","height=450,width=550").focus())';jQuery("#mysbtn a").attr("href",i);jQuery("#dedication-data-panel").hide("fast");jQuery("#dedication-data-panel").slideUp("fast",function(){jQuery("#dedication-data-panel").html(d);jQuery("#dedicationTitle-data-panel").html(d)});jQuery("#dedication-data-panel").slideDown();jQuery("#dedicationFooter_container").slideUp("fast",function(){jQuery("#dedicationArtits").html(e);jQuery("#dedicationSong").html(f)});jQuery("#dedicationFooter_container").slideDown("fast",function(){});jQuery("#dedicationTitle").html(c);shrinkTitle();jQuery("#dedicationTitle a").jTypeWriter();jQuery("#dedicationComments_container").slideUp("fast",function(){jQuery("#dedicationComments_container").load(g+" #comments","",function(a){init_comments();jQuery("#dedicationComments_container").on("submit","#commentform",function(){prepare_new_comment_home();return false})})});jQuery("#dedicationComments_container").slideDown();if(jQuery("#postdata-mark-read-"+a).length>0){jQuery("#postdata-mark-read-"+a+" .mar_mark_as_read").click();jQuery("#postdata-mark-read-"+a).remove()}}}function shrinkTitle(){var a=document.getElementById("dedicationTitle");var b=document.getElementById("dedicationTitle_container");a.style.fontSize=42+"px";while(a.offsetWidth>b.offsetWidth){size=parseInt(a.style.fontSize.replace("px",""));size-=1;a.style.fontSize=size+"px"}a.style.fontSize-=10+"px"}jQuery(document).ready(function(){calc_video_height();jQuery(".controls_fullscreen").css("cursor","pointer");_fullscreen=jQuery(".controls_fullscreen").children("img");_srcimg=_fullscreen.attr("src");_fullscreen.hover(function(){_fullscreen.attr("src",_srcimg.replace("fullscreen.png","fullscreen_on.png"))},function(){_fullscreen.attr("src",_srcimg.replace("fullscreen_on.png","fullscreen.png"))});_fullscreen.bind("click",function(){if(jQuery("#the_slider").hasClass("fullscreen_div")){jQuery("#the_slider").removeClass("fullscreen_div");jQuery(".mediaWrapper").css("width","");jQuery(".youtubeHolder").css("width","");jQuery(".vimeoHolder").css("width","");_fullscreen.parent().appendTo(jQuery("#dedicationFooter_container .columns.two.last"))}else{jQuery("#the_slider").addClass("fullscreen_div");_fullscreen.attr("src",_srcimg.replace("fullscreen.png","fullscreen_exit.png"));_fullscreen.parent().appendTo(jQuery("#componentWrapper"))}calc_video_height()});jQuery(window).resize(function(){calc_video_height()})});jQuery(document).ready(function(){jQuery(".home-page .wp-pagenavi a").live("click",function(a){jQuery(".home-page .wp-pagenavi img.read-more-loader").css("display","inline");a.preventDefault();link=jQuery(this).attr("href");jQuery.get(link,function(a){jQuery(".home-page .wp-pagenavi img.read-more-loader").remove();jQuery(".home-page .wp-pagenavi").remove();var b=jQuery(a).find(".contentInner").children();jQuery.each(b,function(){jQuery("#content-wrapper #content .contentInner").append(jQuery(this))})})});jQuery(".dedication-profile .home_column_my_dedications a.read-more").live("click",function(a){a.preventDefault();link=jQuery(this).attr("href");jQuery(".dedication-profile .home_column_my_dedications a.read-more").remove();jQuery.get(link,function(a){var b=jQuery(a).find("#content").children();jQuery.each(b,function(){if(jQuery(this).hasClass("post-loop")){jQuery(this).removeClass();jQuery(this).addClass("home-my-dedications post-loop")}jQuery(".dedication-profile .home_column_my_dedications").append(jQuery(this))})})});jQuery(".dedication-profile .home_column_dedicated_2_me a.read-more").live("click",function(a){a.preventDefault();link=jQuery(this).attr("href");jQuery(".dedication-profile .home_column_dedicated_2_me a.read-more").remove();jQuery.get(link,function(a){var b=jQuery(a).find("#content").children();jQuery.each(b,function(){if(jQuery(this).hasClass("post-loop")){jQuery(this).removeClass();jQuery(this).addClass("home-dedicated-2-me post-loop")}jQuery(".dedication-profile .home_column_dedicated_2_me").append(jQuery(this))})})})});var aIndex=-1;var oUrl="";jQuery(window).ready(function(){if(jQuery("#slider-wrapper").length>0){jQuery("#content-wrapper .post-loop .post-thumbnail a").click(function(a){a.preventDefault();var b=jQuery(this).attr("href");jQuery("#playlist li [id^=postdata-link-]").each(function(a,c){var d=jQuery(this).html();if(d==b){jQuery("#componentWrapper").videoGallery.loadMedia(a);return false}});return false})}});jQuery(document).ready(function(){jQuery("#sidebar .sidebarposts .top_10 .posts").hide();jQuery("#sidebar .sidebarposts .top_10 h3").click(function(){jQuery("#sidebar .sidebarposts .top_10 .posts").toggle("slow",function(){})})});jQuery(document).ready(function(){jQuery("#my-friends-big-avatars div.see_more").hide();jQuery("#my-friends-big-avatars span.see_more").click(function(){jQuery("#my-friends-big-avatars span.see_more").hide();jQuery("#my-friends-big-avatars div.see_more").toggle("fast",function(){})})});jQuery(function(){setTimeout(function(){jQuery("#content-wrapper #message.updated").toggle('slow')},3e3)}) \ No newline at end of file +function calc_video_height(){if(jQuery("#the_slider").hasClass("fullscreen_div")){jQuery("#componentWrapper").css("height","100%").css("height","-=115px")}else{if(jQuery("#componentWrapper").css("height")!="500px"){jQuery("#componentWrapper").css("height","500px")}}}function updateInfo(){var a=jQuery.fn.videoGallery.getMediaID();if(aIndex!=a&&a>=0){aIndex=a;if(oUrl==""){oUrl=jQuery("#dedicate_this_song_button").attr("href")}var b=jQuery("#postdata-id-"+a).text();var c=jQuery("#postdata-title-"+a).html();var d=jQuery("#postdata-from-to-"+a).html();var e=jQuery("#postdata-artist-"+a).html();var f=jQuery("#postdata-song-"+a).html();var g=jQuery("#postdata-link-"+a).html();var h=jQuery("#postdata-extlink-"+a).html();var i=oUrl+"id/"+b;jQuery("#dedicate_this_song_button").attr("href",i);i="https://www.facebook.com/sharer.php?u="+h;jQuery("#fsbbtn a").attr("href",i);i="http://twitter.com/intent/tweet?source=sharethiscom&url="+h;jQuery("#twtbtn a").attr("href",i);i="https://plusone.google.com/_/+1/confirm?url="+h;jQuery("#gpsbtn a").attr("href",i);i='javascript:void(window.open("http://www.myspace.com/Modules/PostTo/Pages/?u='+h+'"+encodeURIComponent(document.location.toString()),"ptm","height=450,width=550").focus())';jQuery("#mysbtn a").attr("href",i);jQuery("#dedication-data-panel").hide("fast");jQuery("#dedication-data-panel").slideUp("fast",function(){jQuery("#dedication-data-panel").html(d);jQuery("#dedicationTitle-data-panel").html(d)});jQuery("#dedication-data-panel").slideDown();jQuery("#dedicationFooter_container").slideUp("fast",function(){jQuery("#dedicationArtits").html(e);jQuery("#dedicationSong").html(f)});jQuery("#dedicationFooter_container").slideDown("fast",function(){});jQuery("#dedicationTitle").html(c);shrinkTitle();jQuery("#dedicationTitle a").jTypeWriter();jQuery("#dedicationComments_container").slideUp("fast",function(){jQuery("#dedicationComments_container").load(g+" #comments","",function(a){init_comments();jQuery("#dedicationComments_container").on("submit","#commentform",function(){prepare_new_comment_home();return false})})});jQuery("#dedicationComments_container").slideDown();if(jQuery("#postdata-mark-read-"+a).length>0){jQuery("#postdata-mark-read-"+a+" .mar_mark_as_read").click();jQuery("#postdata-mark-read-"+a).remove()}}}function shrinkTitle(){var a=document.getElementById("dedicationTitle");var b=document.getElementById("dedicationTitle_container");a.style.fontSize=42+"px";while(a.offsetWidth>b.offsetWidth){size=parseInt(a.style.fontSize.replace("px",""));size-=1;a.style.fontSize=size+"px"}a.style.fontSize-=10+"px"}jQuery(document).ready(function(){calc_video_height();jQuery(".controls_fullscreen").css("cursor","pointer");_fullscreen=jQuery(".controls_fullscreen").children("img");_srcimg=_fullscreen.attr("src");_fullscreen.hover(function(){_fullscreen.attr("src",_srcimg.replace("fullscreen.png","fullscreen_on.png"))},function(){_fullscreen.attr("src",_srcimg.replace("fullscreen_on.png","fullscreen.png"))});_fullscreen.bind("click",function(){if(jQuery("#the_slider").hasClass("fullscreen_div")){jQuery("#the_slider").removeClass("fullscreen_div");jQuery(".mediaWrapper").css("width","");jQuery(".youtubeHolder").css("width","");jQuery(".vimeoHolder").css("width","");_fullscreen.parent().appendTo(jQuery("#dedicationFooter_container .columns.two.last"))}else{jQuery("#the_slider").addClass("fullscreen_div");_fullscreen.attr("src",_srcimg.replace("fullscreen.png","fullscreen_exit.png"));_fullscreen.parent().appendTo(jQuery("#componentWrapper"))}calc_video_height()});jQuery(window).resize(function(){calc_video_height()})});jQuery(document).ready(function(){jQuery(".home-page .wp-pagenavi a").live("click",function(a){jQuery(".home-page .wp-pagenavi img.read-more-loader").css("display","inline");a.preventDefault();link=jQuery(this).attr("href");jQuery.get(link,function(a){jQuery(".home-page .wp-pagenavi img.read-more-loader").remove();jQuery(".home-page .wp-pagenavi").remove();var b=jQuery(a).find(".contentInner").children();jQuery.each(b,function(){jQuery("#content-wrapper #content .contentInner").append(jQuery(this))})})});jQuery(".dedication-profile .home_column_my_dedications a.read-more").live("click",function(a){a.preventDefault();link=jQuery(this).attr("href");jQuery(".dedication-profile .home_column_my_dedications a.read-more").remove();jQuery.get(link,function(a){var b=jQuery(a).find("#content").children();jQuery.each(b,function(){if(jQuery(this).hasClass("post-loop")){jQuery(this).removeClass();jQuery(this).addClass("home-my-dedications post-loop")}jQuery(".dedication-profile .home_column_my_dedications").append(jQuery(this))})})});jQuery(".dedication-profile .home_column_dedicated_2_me a.read-more").live("click",function(a){a.preventDefault();link=jQuery(this).attr("href");jQuery(".dedication-profile .home_column_dedicated_2_me a.read-more").remove();jQuery.get(link,function(a){var b=jQuery(a).find("#content").children();jQuery.each(b,function(){if(jQuery(this).hasClass("post-loop")){jQuery(this).removeClass();jQuery(this).addClass("home-dedicated-2-me post-loop")}jQuery(".dedication-profile .home_column_dedicated_2_me").append(jQuery(this))})})})});var aIndex=-1;var oUrl="";jQuery(window).ready(function(){if(jQuery("#slider-wrapper").length>0){jQuery("#content-wrapper .post-loop .post-thumbnail a").click(function(a){a.preventDefault();var b=jQuery(this).attr("href");jQuery("#playlist li [id^=postdata-link-]").each(function(a,c){var d=jQuery(this).html();if(d==b){jQuery("#componentWrapper").videoGallery.loadMedia(a);jQuery("html, body").animate({scrollTop:0},600);return false}});return false})}});jQuery(document).ready(function(){jQuery("#sidebar .sidebarposts .top_10 .posts").hide();jQuery("#sidebar .sidebarposts .top_10 h3").click(function(){jQuery("#sidebar .sidebarposts .top_10 .posts").toggle("slow",function(){})})});jQuery(document).ready(function(){jQuery("#my-friends-big-avatars div.see_more").hide();jQuery("#my-friends-big-avatars span.see_more").click(function(){jQuery("#my-friends-big-avatars span.see_more").hide();jQuery("#my-friends-big-avatars div.see_more").toggle("fast",function(){})})});jQuery(document).ready(function(){setTimeout(function(){jQuery("#content-wrapper #message.updated").toggle("slow")},3e3)}) \ No newline at end of file