Skip to content

Instantly share code, notes, and snippets.

@hinaloe
Last active December 5, 2017 02:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hinaloe/ce079eef093c9bdd463b to your computer and use it in GitHub Desktop.
Save hinaloe/ce079eef093c9bdd463b to your computer and use it in GitHub Desktop.
jQuery(function($){
var height = $('#container').outerHeight();
height = height + 'px';
$('#main').css('height',height);
$('#sidebar').css('height',height);
// sidebarプルダウンメニュー
$("ul.children").hide();
$("li.page_item").hover(function() {
$("ul.children",this).slideDown("fast");
},
function() {
$("ul.children",this).slideUp("fast");
});
//ページ上部へ戻る
$(".btn_top").click(function () {
$('html,body').animate({ scrollTop: 0 }, 'fast');
return false;
});
});
jQuery(function($){var height=$('#container').outerHeight();height=height+'px';$('#main').css('height',height);$('#sidebar').css('height',height);$("#sidebar.menu li").hover(function(){$(this).children('ul').show();},function(){$(this).children('ul').hide();});});var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-18943219-1']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();jQuery(function($){$("ul.children").hide();$("li.page_item").hover(function(){$("ul.children",this).slideDown("fast");},function(){$("ul.children",this).slideUp("fast");});});$(function(){$(".btn_top").click(function(){$('html,body').animate({scrollTop:0},'fast');return false;});});(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-36441752-1','omakihan.com');ga('send','pageview');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment