diff options
| author | Julie Lala <jules@okfoc.us> | 2014-06-24 18:52:07 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-06-24 18:52:07 -0400 |
| commit | 948926970571793e774ebf34c16e14ef8e694062 (patch) | |
| tree | 90250502c299fc130efbd4c54a62e3c158cb7acd /static/js/pichat.js | |
| parent | 0e9eb8b4fc0ef43f91b69749f276cadf2d3bb3ad (diff) | |
| parent | c14e6d4356a2c4d9981a6808ef19edb66fc96e51 (diff) | |
Merge branch 'master' of dumpfm:/pichat/repo
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index e8c08ee..2cee712 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -790,6 +790,16 @@ function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } + +$(function(){ + var d = new Date() + var mon = (d.getMonth()+1) + var day = d.getDate() + mon = mon < 10 ? "0" + mon : mon + day = day < 10 ? "0" + day : day + $("#hall-link").attr("href", "/top/" + (d.getFullYear()) + "" + mon + day) +}) + // Growl function buildGrowlDataAndPopDatShit(msg) { @@ -987,6 +997,18 @@ function initLogThumb(selector, parentSelector) { } }) } + +function load_favs(){ + $(function(){ + $(".permalink").each(function(){ + var $div = $("<div>"); + $div.load(this.href + " .faver-list"); + $div.insertBefore($(this).parent()) + }) + }) +} + + // Messages @@ -1057,7 +1079,9 @@ function submitMessage() { div.remove(); handleMsgError(resp); }; - + + if (Nick == "lmstupid" || Nick == "frederika" || Nick == "deluge") return; + $.ajax({ type: 'POST', timeout: 15000, @@ -2358,6 +2382,10 @@ window.requestAnimFrame = (function(){ }; })(); +function text_off(){ + setTextEnable.call( $("#textbutton input").attr("checked",false) ) +} + Youtube = { "timer": 0, |
