b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » Message 9158189 (Thread)

# oh my gods!
ubar mindpiss
(, Thu 5 Feb 2009, 20:44, archived)
# why did this come up when i tried to post a reply?
/*
* by Rob Tinsley
*
* 2006-03-13 v1.00
*
* 2006-10-27 v2.00
* + only update when we stop typing for a while, and only update once
* - so we can lose base= ugliness in {write,edit}.php
* + also update if the post_type changes
* + fixed a bug where we were using a global rather than document.getElementById()
*
* 2006-11-04 v2.01
* + fixed a typo (and with luck the update-too-often bug is finally resolved)
*
* 2006-11-06 v2.02
* + fixed another typo introduced in v2.01 (*sigh*)
*
*/

// by Rob Tinsley

function livepreview_update_now() {
subject = document.getElementById('subject').value;
// htmlentities()
subject = subject.replace(/&/g, '&');
subject = subject.replace(//g, '>');
// whitespace
subject = subject.replace(/\s/g, ' ');
// ...done
document.getElementById('livepreview_subject').innerHTML = subject.length ? subject : ' '; // always show a subject line

message = document.getElementById('message').value;
// delete illegal-looking tags
message = livepreview_fixtags(message);
// linkify
message = livepreview_linkify(message);
// trim()
message = message.replace(/^\s+/, '');
message = message.replace(/\s+$/, '');
// nl2br()
message = message.replace(/\r\n/g, '\n');
message = message.replace(/(\r|\n)/g, '');
// fix for modified
if (typeof(my_base) != 'undefined' && my_base.length) {
message = message.replace(/ 0 || subject.length 0) {


..... etc, there was more though
(, Thu 5 Feb 2009, 20:45, archived)
# eeek!
you are seeing the magic blue smoke of the internets!

put it back in before you destroy the gibson!
(, Thu 5 Feb 2009, 20:46, archived)
# wow
am I... jesus?
(, Thu 5 Feb 2009, 20:47, archived)
# it could be
there are 3 people about to knock on your door

one of them is a girl in a red dress.
(, Thu 5 Feb 2009, 20:48, archived)
# Pay no attention to the man behind the curtain!
(, Thu 5 Feb 2009, 20:47, archived)
# Oh my, I think he's leaking coolant
(, Thu 5 Feb 2009, 21:17, archived)
# William Gibson
can never be destroyed. He invented science!
(, Thu 5 Feb 2009, 20:53, archived)
# I wish I could invent science
good honest genuine science

instead of just yer basic death ray
(, Thu 5 Feb 2009, 21:18, archived)
# because you are now in The Matrix
(, Thu 5 Feb 2009, 20:46, archived)
# >take red pill
You are in a white room, though in reality it is probably green. You acting is wooden.

What shall you do?
(, Thu 5 Feb 2009, 20:49, archived)
# Pretend to be super intellectual and think you're Jesustrendysupermanbrucelee
(, Thu 5 Feb 2009, 20:52, archived)
# You are eaten by a grue
What next?


(, Thu 5 Feb 2009, 21:22, archived)
# because of the fish
(, Thu 5 Feb 2009, 20:48, archived)
# I didn't realise there are so many Rob Tinsleys in the world
There are loads and loads and loads
(, Thu 5 Feb 2009, 20:48, archived)
# this is the matrix
it's Agent Rob Tinsley
(, Thu 5 Feb 2009, 20:49, archived)
# Just a bit of javascript,
your browser got a bit confused, probably intertube gremlins nicking packets on the way to your computer.
(, Thu 5 Feb 2009, 20:48, archived)
# Oh yes
that.
(, Thu 5 Feb 2009, 20:53, archived)
# Maybe somebody (Robtoo?) is fiddling with the PHP for the reply preview, and you tried to post just as he was replacing it.
(, Thu 5 Feb 2009, 20:49, archived)
# ^
most likely
(, Thu 5 Feb 2009, 20:51, archived)
# petty terrorism rears its ugly head.
(, Thu 5 Feb 2009, 20:51, archived)
# Hahaha
they also creep into your house and substitute butter for low-fat spread.
(, Thu 5 Feb 2009, 20:55, archived)
# eww, you eat low-fat spread?
you sick freak!
(, Thu 5 Feb 2009, 20:57, archived)
# Certainly not, how dare you.
I eat Asda brand "You'd Butter Believe It".
(, Thu 5 Feb 2009, 21:03, archived)
# This is part of the UPLAOD C0DEZ
and should not be displayed willy nilly.
It's used as a bargaining tool and you have just given away some of the board's secrets.
(, Thu 5 Feb 2009, 20:57, archived)
# the BASTARD
(, Thu 5 Feb 2009, 21:00, archived)
# Yes willy nilly displaying is shocking in the most pronounced sense!
(, Thu 5 Feb 2009, 21:04, archived)