« 2014年02月 | メイン | 2014年04月 »
2014年03月28日
paddingに背景を表示しない
background-clip てのがあるそうな。
background-clip:padding-box;
background-clipをpadding-boxに指定すると、背景はborderの背後には描画されません。
投稿者 muuming : 16:31
2014年03月13日
あんかーりんくをスムーズ移動のソース
アイディアメモ投稿者 muuming : 18:22
2014年03月12日
ちとメモ
$(window).scroll(function() { if ( $(window).scrollTop() > 10) { $("#headerWrapper").addClass("darken"); } else { $("#headerWrapper").removeClass("darken"); } if ( $(window).scrollTop() >= stickyNavTop && $(window).width() >= 760) { subNav.addClass('sticky'); subNavSpacer.show(); anchors.each(function(index) { if ($(window).scrollTop() >= $(this).offset().top-offsetVal-40) { activeTab = index; } }); if (activeTab != oldActiveTab && !disableChange) { $(".scrollElement").removeClass("active"); $("#scrollE" + activeTab).addClass("active"); oldActiveTab = activeTab; } } else { subNav.removeClass('sticky'); subNavSpacer.hide(); activeTab = 0; $(".scrollElement").removeClass("active"); } });
投稿者 muuming : 16:03
特定のIPからアクセス拒否 linux
iptables -I INPUT -s 216.251.77.186 -j DROP
iptables -I INPUT -s 69.0.0.0/24 -j DROP
投稿者 muuming : 11:41
2014年03月04日
PDFをinline インライン表示
header("Content-Type: application/pdf"); header("Content-Disposition: inline;filename=\"".mb_convert_encoding($dat["newsdat_pdfname"],"SJIS-win","UTF-8")."\""); print pg_unescape_bytea($dat["newsdat_pdfdat"]);
投稿者 muuming : 12:27