From ad61ffdbaf004dd3b33adf8f2780500069fa097b Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Sat, 28 Jan 2012 14:45:42 +0700 Subject: JS, CSS, PNG --- web/scripts3.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 web/scripts3.js (limited to 'web/scripts3.js') diff --git a/web/scripts3.js b/web/scripts3.js new file mode 100644 index 00000000..ec86d39e --- /dev/null +++ b/web/scripts3.js @@ -0,0 +1,48 @@ +function inlinevideo(mid) { + var flashvars={ + file:'http://i.juick.com/video/'+mid+'.mp4', + image:'http://i.juick.com/thumbs/'+mid+'.jpg', + skin:'http://static.juick.com/glow.zip' + }; + var params={ + allowfullscreen:'true' + }; + swfobject.embedSWF('http://static.juick.com/player.swf','video-'+mid,'640','390','9.0.115','false',flashvars,params,null); +} + +function postformListener(formEl,ev) { + if(ev.ctrlKey && (ev.keyCode==10 || ev.keyCode==13)) formEl.submit(); +} + +function showMoreReplies(id) { + $('#'+id+' .msg-comments').hide(); + + var replies=$('#replies>li'); + var flagshow=0; + for(var i=0; i'); + c.before(''); + c.append(''); + } + $('#replies #'+rid+' .msg-links').hide(); + $('#replies #'+rid+' .msg-comment').show(); + $('#replies #'+rid+' textarea')[0].focus(); + return false; +} -- cgit v1.2.3